Move app name translations into config file.

This commit is contained in:
N-Pex 2021-09-25 14:46:48 +02:00
parent 46a4268245
commit f9745ddb7d
11 changed files with 19 additions and 19 deletions

View file

@ -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 + "]";
}