Skip to content

Commit

Permalink
chore(i18n): add more languages (#1063)
Browse files Browse the repository at this point in the history
* chore(i18n): add more languages

* chore(i18n): Pylint fixed
  • Loading branch information
Yoiber071 authored Apr 18, 2023
1 parent 01f9d8f commit 6c8ab1a
Show file tree
Hide file tree
Showing 5 changed files with 1,360 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export TRANSIFEX_RESOURCE=frontend-app-learning
transifex_langs = "ar,fr,es_419,zh_CN,pt,it,de,uk,ru,hi,fr_CA"
transifex_langs = "ar,fr,es_419,zh_CN,pt,it,de,uk,ru,hi,fr_CA,it_IT,pt_PT,de_DE"

transifex_utils = ./node_modules/.bin/transifex-utils.js
i18n = ./src/i18n
Expand Down
6 changes: 6 additions & 0 deletions src/i18n/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ import deMessages from './messages/de.json';
import ruMessages from './messages/ru.json';
import hiMessages from './messages/hi.json';
import frCAMessages from './messages/fr_CA.json';
import dedeCAMessages from './messages/de_DE.json';
import ititCAMessages from './messages/it_IT.json';
import ptptCAMessages from './messages/pt_PT.json';
// no need to import en messages-- they are in the defaultMessage field

const messages = {
Expand All @@ -23,6 +26,9 @@ const messages = {
'fr-ca': frCAMessages,
ru: ruMessages,
uk: ukMessages,
'de-de': dedeCAMessages,
'it-it': ititCAMessages,
'pt-pt': ptptCAMessages,
};

export default messages;
Loading

0 comments on commit 6c8ab1a

Please sign in to comment.