From 48ff7cd2a49379e5ae32173b461302e28af1b4c8 Mon Sep 17 00:00:00 2001 From: Luca Date: Mon, 24 Aug 2020 17:01:09 +0200 Subject: [PATCH 1/3] Added Japanese, Spanish (Mexico) as languages and fixed the non displaying Subscribe translation --- src/renderer/components/watch-video-info/watch-video-info.js | 2 +- src/renderer/main.js | 2 +- static/locales/{es_MX.yaml => es-MX.yaml} | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename static/locales/{es_MX.yaml => es-MX.yaml} (100%) diff --git a/src/renderer/components/watch-video-info/watch-video-info.js b/src/renderer/components/watch-video-info/watch-video-info.js index fccdd3ed5..2ccb2e434 100644 --- a/src/renderer/components/watch-video-info/watch-video-info.js +++ b/src/renderer/components/watch-video-info/watch-video-info.js @@ -100,7 +100,7 @@ export default Vue.extend({ }, subscribedText: function () { - return `${this.$t('Subscribe').toUpperCase()} ${this.subscriptionCountText}` + return `${this.$t('Channel.Subscribe').toUpperCase()} ${this.subscriptionCountText}` }, dateString() { diff --git a/src/renderer/main.js b/src/renderer/main.js index 1222c3cbd..a98d02bed 100644 --- a/src/renderer/main.js +++ b/src/renderer/main.js @@ -23,7 +23,7 @@ Vue.component('font-awesome-icon', FontAwesomeIcon) Vue.use(VueI18n) // List of locales approved for use -const activeLocales = ['en-US', 'de-DE', 'fi', 'fr-FR', 'pt-BR', 'pt-PT', 'ru', 'vi', 'zh-CN', 'zh-TW'] +const activeLocales = ['en-US', 'de-DE', 'es-MX', 'fi', 'fr-FR', 'ja', 'pt-BR', 'pt-PT', 'ru', 'vi', 'zh-CN', 'zh-TW'] const messages = {} // Take active locales and load respective YAML file diff --git a/static/locales/es_MX.yaml b/static/locales/es-MX.yaml similarity index 100% rename from static/locales/es_MX.yaml rename to static/locales/es-MX.yaml From f7b17adb474a9022b8a8627352b92912f274308c Mon Sep 17 00:00:00 2001 From: Luca Date: Mon, 24 Aug 2020 22:13:05 +0200 Subject: [PATCH 2/3] Fixed 3 static strings to use the translations --- src/renderer/views/Channel/Channel.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/renderer/views/Channel/Channel.vue b/src/renderer/views/Channel/Channel.vue index 68ef0e412..5781b4694 100644 --- a/src/renderer/views/Channel/Channel.vue +++ b/src/renderer/views/Channel/Channel.vue @@ -40,7 +40,7 @@