From db6f3bdf0b6eb04d1ad67fcd13e7fbcd6643d035 Mon Sep 17 00:00:00 2001 From: Spectro <44793891+jspectro@users.noreply.github.com> Date: Sat, 14 Jan 2023 07:09:41 -0300 Subject: [PATCH] feat(translations): Add Portuguese (Brazil) translation (#339) * Update translations.js Signed-off-by: Spectro <44793891+jspectro@users.noreply.github.com> * Update languages.json Signed-off-by: Spectro <44793891+jspectro@users.noreply.github.com> * Update index.jsx Signed-off-by: Spectro <44793891+jspectro@users.noreply.github.com> Signed-off-by: Spectro <44793891+jspectro@users.noreply.github.com> --- src/index.jsx | 1 + src/modules/languages.json | 4 ++++ src/modules/translations.js | 2 ++ 3 files changed, 7 insertions(+) diff --git a/src/index.jsx b/src/index.jsx index c4cbafca..5baa88d3 100644 --- a/src/index.jsx +++ b/src/index.jsx @@ -39,6 +39,7 @@ variables.language = new I18n(variables.languagecode, { zh_CN: translations.zh_CN, id_ID: translations.id_ID, tr_TR: translations.tr_TR, + pt_BR: translations.pt_BR, }); variables.getMessage = (text, optional) => diff --git a/src/modules/languages.json b/src/modules/languages.json index 71557ad0..e7acb7fd 100644 --- a/src/modules/languages.json +++ b/src/modules/languages.json @@ -42,5 +42,9 @@ { "name": "中文 (简体)", "value": "zh_CN" + }, + { + "name": "Portuguese (Brazil)", + "value": "pt_BR" } ] diff --git a/src/modules/translations.js b/src/modules/translations.js index e336465f..d95da6cb 100644 --- a/src/modules/translations.js +++ b/src/modules/translations.js @@ -10,6 +10,7 @@ import * as ru from '../translations/ru.json'; import * as zh_CN from '../translations/zh_CN.json'; import * as id_ID from '../translations/id_ID.json'; import * as tr_TR from '../translations/tr_TR.json'; +import * as pt_BR from '../translations/pt_BR.json'; const translations = { de_DE, @@ -24,6 +25,7 @@ const translations = { zh_CN, id_ID, tr_TR, + pt_BR, }; export default translations;