From c3d483a6c654a934b15ced0d3d6b5534849dc49e Mon Sep 17 00:00:00 2001 From: Luca Date: Thu, 20 Aug 2020 21:20:07 +0200 Subject: [PATCH] Translations added to menu, Translation files renamed Added: Translations added to menu - The currently available file for translation are now available in the settings menu (however some are still missing a lot of strings) Refactored: Translation files renamed - Changed the french and chinese YAML file's names according to the ElectronJS locales guide. (assuming french is french-French) --- src/renderer/main.js | 2 +- static/locales/{fr.yaml => fr-FR.yaml} | 0 static/locales/{zh_Hans.yaml => zh-CN.yaml} | 0 static/locales/{zh_Hant.yaml => zh-TW.yaml} | 0 4 files changed, 1 insertion(+), 1 deletion(-) rename static/locales/{fr.yaml => fr-FR.yaml} (100%) rename static/locales/{zh_Hans.yaml => zh-CN.yaml} (100%) rename static/locales/{zh_Hant.yaml => zh-TW.yaml} (100%) diff --git a/src/renderer/main.js b/src/renderer/main.js index 8a8031bb..e9232927 100644 --- a/src/renderer/main.js +++ b/src/renderer/main.js @@ -33,7 +33,7 @@ fs.readdir('.', (err, dir) => { }) // List of locales approved for use -const activeLocales = ['en-US', 'de-DE', 'pt-PT'] +const activeLocales = ['en-US', 'de-DE', 'pt-PT', 'fi', 'fr-FR', 'ja', 'pt-BR', 'vi', 'zh-CN', 'zh-TW'] const messages = {} // Take active locales and load respective YAML file diff --git a/static/locales/fr.yaml b/static/locales/fr-FR.yaml similarity index 100% rename from static/locales/fr.yaml rename to static/locales/fr-FR.yaml diff --git a/static/locales/zh_Hans.yaml b/static/locales/zh-CN.yaml similarity index 100% rename from static/locales/zh_Hans.yaml rename to static/locales/zh-CN.yaml diff --git a/static/locales/zh_Hant.yaml b/static/locales/zh-TW.yaml similarity index 100% rename from static/locales/zh_Hant.yaml rename to static/locales/zh-TW.yaml