Move app name translations into config file.
This commit is contained in:
parent
46a4268245
commit
f9745ddb7d
11 changed files with 19 additions and 19 deletions
|
|
@ -84,10 +84,14 @@ export default {
|
|||
return this.$store.state.auth.user;
|
||||
},
|
||||
appName() {
|
||||
return this.$config.appName;
|
||||
var translated = undefined;
|
||||
if (this.$config.appNames) {
|
||||
translated = this.$config.appNames[this.$i18n.locale];
|
||||
}
|
||||
return translated || this.$config.appName;
|
||||
},
|
||||
title() {
|
||||
var title = this.$t(this.appName);
|
||||
var title = this.appName;
|
||||
if (this.$matrix.notificationCount > 0) {
|
||||
title += " [" + this.$matrix.notificationCount + "]";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue