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

View file

@ -1,6 +1,10 @@
{
"appName": "Convene",
"product": "Convene",
"appNames": {
"bo": "ཀེ་ཨ་ནུ་དྲ་གནས།",
"si": "කීනු වෙබ්ලයිට්",
"zh_Hans": "网络灯"
},
"productLink": "letsconvene.im",
"defaultServer": "https://neo.keanu.im",
"rtl": false,

View file

@ -159,7 +159,6 @@
"user_changed_guest_access_open": "{user} མགྲོན་པོ་ཁ་བརྡ་ཁང་དུ་འཛུལ་བཅུག་སོང་།",
"user_changed_guest_access_closed": "{user} མགྲོན་པོ་ཁ་བརྡ་ཁང་དུ་འཛུལ་བཅུག་མ་སོང་།"
},
"Keanu Weblite": "ཀེ་ཨ་ནུ་དྲ་གནས།",
"power_level": {
"moderator": "མདོ་འཛིན་པ།",
"restricted": "དམ་བསྒྲགས།",
@ -226,4 +225,4 @@
"room_deleted": "ཁ་བརྡ་ཁང་མེད་པར་བཟོས་སོང་།"
},
"language_display_name": "ཨིན་ཡིག"
}
}

View file

@ -1,6 +1,5 @@
{
"language_display_name": "English",
"Keanu Weblite": "Keanu Weblite",
"menu": {
"start_private_chat": "Private chat with this user",
"reply": "Reply",
@ -218,4 +217,4 @@
"original_text": "<original text>",
"download_name": "Download"
}
}
}

View file

@ -158,7 +158,6 @@
"start_private_chat": "Chat privado con este usuario",
"edit": "Editar"
},
"Keanu Weblite": "Keanu Weblite",
"fallbacks": {
"download_name": "Descargar",
"original_text": "<original text>",

View file

@ -145,6 +145,5 @@
"reply": "Svar",
"start_private_chat": "Privat sludring med denne brukeren"
},
"Keanu Weblite": "Keanu Weblite",
"language_display_name": "Engelsk"
}
}

View file

@ -210,7 +210,6 @@
"user_created_room": "{user} a creat camera",
"you": "Tu"
},
"Keanu Weblite": "Keanu Weblite",
"language_display_name": "Engleză",
"fallbacks": {
"download_name": "Descărcați",
@ -218,4 +217,4 @@
"video_file": "Fișier video",
"audio_file": "Fișier audio"
}
}
}

View file

@ -14,10 +14,9 @@
"cancel": "අවලංගු කරන්න"
},
"language_display_name": "ඉංග්‍රීසි",
"Keanu Weblite": "කීනු වෙබ්ලයිට්",
"message": {
"download_progress": "{percentage}% බාගත වී ඇත",
"file_prefix": "ගොනුව: ",
"you": "ඔබ"
}
}
}

View file

@ -18,7 +18,6 @@
"reply": "جاۋاب",
"start_private_chat": "قوللانغۇچى بىلەن شەخسى ئۇچۇرلاشماق"
},
"Keanu Weblite": "Keanu Weblite",
"message": {
"upload_progress_with_total": "{ئومۇمىي} نىڭ {سان} يۈكلەندى",
"upload_progress": "يۈكلەندى {سان}",
@ -219,4 +218,4 @@
"blocked": "چەكلەنگەن",
"title": "ئۈسكۈنىلەر"
}
}
}

View file

@ -118,7 +118,6 @@
"join": "加入",
"undo": "撤销"
},
"Keanu Weblite": "网络灯",
"power_level": {
"restricted": "被限制",
"custom": "自定义({level})",
@ -226,4 +225,4 @@
"room_deleted": "聊天室已删除。"
},
"language_display_name": "英语"
}
}

View file

@ -101,7 +101,7 @@ export default {
},
computed: {
product() {
return this.$config.product;
return this.$config.appName;
},
productLink() {
return this.$config.productLink;