Skip to content

Commit 4604cb7

Browse files
committed
frontend: add Portugese
1 parent c71ff5b commit 4604cb7

File tree

4 files changed

+851
-0
lines changed

4 files changed

+851
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@
2525
!/frontends/web/src/locales/ja/
2626
!/frontends/web/src/locales/ru/
2727
!/frontends/web/src/locales/ms/
28+
!/frontends/web/src/locales/pt/

frontends/web/src/components/language/language.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export default class LanguageSwitcher extends Component {
3131
{ code: 'en', display: 'English' },
3232
{ code: 'ja', display: '日本語' },
3333
{ code: 'ms', display: 'Bahasa Melayu' },
34+
{ code: 'pt', display: 'Português' },
3435
{ code: 'ru', display: 'Русский' },
3536
];
3637
if (extraLanguages) {

frontends/web/src/i18n/i18n.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import appTranslationsEN from '../locales/en/app.json';
2020
import appTranslationsJA from '../locales/ja/app.json';
2121
import appTranslationsRU from '../locales/ru/app.json';
2222
import appTranslationsMS from '../locales/ms/app.json';
23+
import appTranslationsPT from '../locales/pt/app.json';
2324
import { apiGet, apiPost } from '../utils/request';
2425
import languageFromConfig from './config';
2526
import Backend from 'i18next-locize-backend';
@@ -81,6 +82,7 @@ if (!i18nEditorActive) {
8182
i18n.addResourceBundle('ja', 'app', appTranslationsJA);
8283
i18n.addResourceBundle('ms', 'app', appTranslationsMS);
8384
i18n.addResourceBundle('ru', 'app', appTranslationsRU);
85+
i18n.addResourceBundle('pt', 'app', appTranslationsPT);
8486
}
8587

8688
i18n.on('languageChanged', (lng) => {

0 commit comments

Comments
 (0)