From 48ff7cd2a49379e5ae32173b461302e28af1b4c8 Mon Sep 17 00:00:00 2001 From: Luca Date: Mon, 24 Aug 2020 17:01:09 +0200 Subject: [PATCH] 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 fccdd3ed..2ccb2e43 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 1222c3cb..a98d02be 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