From d0754765779a6a009d95e6191d378540c99b7280 Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Sat, 6 Jan 2018 19:07:50 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20=D1=83=D0=BF=D1=80=D0=BE=D1=89=D1=91=D0=BD=D0=BD=D1=8B?= =?UTF-8?q?=D0=B9=20=D0=BA=D0=B8=D1=82=D0=B0=D0=B9=D1=81=D0=BA=D0=B8=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/i18n-onesky.js | 3 +++ src/components/i18n/localeFlags.js | 3 ++- src/i18n/index.json | 9 ++++++++- src/i18n/pt.json | 18 +++++++++--------- 4 files changed, 22 insertions(+), 11 deletions(-) diff --git a/scripts/i18n-onesky.js b/scripts/i18n-onesky.js index 8463c55..a5a1dbb 100644 --- a/scripts/i18n-onesky.js +++ b/scripts/i18n-onesky.js @@ -24,6 +24,7 @@ const LOCALES_MAP = { de: 'de-DE', sr: 'sr-RS', lt: 'lt-LT', + zh: 'zh-Hans-CN', }; /** @@ -33,6 +34,7 @@ const LOCALES_MAP = { const ORIGINAL_NAMES_MAP = { en: 'English, UK', pt: 'Português do Brasil', + zh: '简体中文', }; /** @@ -42,6 +44,7 @@ const ORIGINAL_NAMES_MAP = { const ENGLISH_NAMES_MAP = { en: 'English, UK', pt: 'Portuguese, Brazilian', + zh: 'Simplified Chinese', }; // https://ely-translates.oneskyapp.com/admin/site/settings diff --git a/src/components/i18n/localeFlags.js b/src/components/i18n/localeFlags.js index 8e22171..e7309ad 100644 --- a/src/components/i18n/localeFlags.js +++ b/src/components/i18n/localeFlags.js @@ -8,6 +8,7 @@ const localeToCountryCode = { uk: 'ua', vi: 'vn', sl: 'si', + zh: 'cn', }; const SUPPORTED_LANGUAGES: Array = Object.keys(supportedLocales); @@ -26,5 +27,5 @@ export default { */ getIconUrl(locale: string): string { return require(`flag-icon-css/flags/4x3/${localeToCountryCode[locale] || locale}.svg`); - } + }, }; diff --git a/src/i18n/index.json b/src/i18n/index.json index 2ee7031..f96548b 100644 --- a/src/i18n/index.json +++ b/src/i18n/index.json @@ -45,7 +45,7 @@ "code": "pt", "name": "Português do Brasil", "englishName": "Portuguese, Brazilian", - "progress": 96.2, + "progress": 100, "isReleased": true }, "ro": { @@ -82,5 +82,12 @@ "englishName": "Vietnamese", "progress": 96.2, "isReleased": true + }, + "zh": { + "code": "zh", + "name": "简体中文", + "englishName": "Simplified Chinese", + "progress": 100, + "isReleased": false } } diff --git a/src/i18n/pt.json b/src/i18n/pt.json index 2038ff2..dd49a05 100644 --- a/src/i18n/pt.json +++ b/src/i18n/pt.json @@ -95,15 +95,15 @@ "components.contact.youMessageReceived": "Sua mensagem foi enviada. Vamos responder você logo. A resposta chegará ao seu E-mail:", "components.footerMenu.contactUs": "Contate conosco", "components.footerMenu.rules": "Regras", - "components.footerMenu.siteLanguage": "Site language", - "components.languageSwitcher.improveTranslates": "Improve Ely.by translation", - "components.languageSwitcher.improveTranslatesArticleLink": "this article", - "components.languageSwitcher.improveTranslatesDescription": "Ely.by’s localization is a community effort. If you want to see Ely.by translated into another language, we'd love your help. To apply read {articleLink}.", - "components.languageSwitcher.mayBeInaccurate": "May be inaccurate", - "components.languageSwitcher.siteLanguage": "Site language", - "components.languageSwitcher.startTyping": "Start typing…", - "components.languageSwitcher.translationProgress": "{progress}% translated", - "components.languageSwitcher.weDoNotSupportThisLang": "Sorry, we do not support this language", + "components.footerMenu.siteLanguage": "Idioma do site", + "components.languageSwitcher.improveTranslates": "Melhorar a tradução do Ely.by", + "components.languageSwitcher.improveTranslatesArticleLink": "esse artículo", + "components.languageSwitcher.improveTranslatesDescription": "A linguagem do Ely.by é um esforço comunitário. Se você quer ver o Ely.by traduzido em outra linguagem, nós amaríamos sua ajuda. Para aplicar leia {articleLink}", + "components.languageSwitcher.mayBeInaccurate": "Pode estar imprecisa", + "components.languageSwitcher.siteLanguage": "Idioma do site", + "components.languageSwitcher.startTyping": "Comece a escrever…", + "components.languageSwitcher.translationProgress": "{progress}% traduzido", + "components.languageSwitcher.weDoNotSupportThisLang": "Desculpe, nós não suportamos este idioma", "components.profile.accountDescription": "A conta Ely.by lhe dá acesso a muitos recursos do Minecraft, mas cuidado com a sua conta e mude a senha regularmente.", "components.profile.accountPreferencesTitle": "Preferências da conta Ely.by", "components.profile.back": "Voltar",