Skip to content

Commit

Permalink
feat: added new translations in Makefile and updated all the translat…
Browse files Browse the repository at this point in the history
…ions
  • Loading branch information
abdullahwaheed authored and arbrandes committed Nov 30, 2022
1 parent 0fbb53a commit b6d272e
Show file tree
Hide file tree
Showing 16 changed files with 3,115 additions and 27 deletions.
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"
transifex_langs = "ar,fr,es_419,zh_CN,pt,it,de,uk,ru,hi,fr_CA"

transifex_utils = ./node_modules/.bin/transifex-utils.js
i18n = ./src/i18n
Expand Down
30 changes: 13 additions & 17 deletions src/i18n/index.jsx
Original file line number Diff line number Diff line change
@@ -1,31 +1,27 @@
import arMessages from './messages/ar.json';
import caMessages from './messages/ca.json';
// no need to import en messages-- they are in the defaultMessage field
import es419Messages from './messages/es_419.json';
import frMessages from './messages/fr.json';
import es419Messages from './messages/es_419.json';
import zhcnMessages from './messages/zh_CN.json';
import heMessages from './messages/he.json';
import idMessages from './messages/id.json';
import kokrMessages from './messages/ko_kr.json';
import plMessages from './messages/pl.json';
import ptbrMessages from './messages/pt_br.json';
import ruMessages from './messages/ru.json';
import thMessages from './messages/th.json';
import ptMessages from './messages/pt.json';
import itMessages from './messages/it.json';
import ukMessages from './messages/uk.json';
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';
// no need to import en messages-- they are in the defaultMessage field

const messages = {
ar: arMessages,
'es-419': es419Messages,
fr: frMessages,
'zh-cn': zhcnMessages,
ca: caMessages,
he: heMessages,
id: idMessages,
'ko-kr': kokrMessages,
pl: plMessages,
'pt-br': ptbrMessages,
pt: ptMessages,
it: itMessages,
de: deMessages,
hi: hiMessages,
'fr-ca': frCAMessages,
ru: ruMessages,
th: thMessages,
uk: ukMessages,
};

Expand Down
1 change: 0 additions & 1 deletion src/i18n/messages/ca.json

This file was deleted.

443 changes: 443 additions & 0 deletions src/i18n/messages/de.json

Large diffs are not rendered by default.

443 changes: 443 additions & 0 deletions src/i18n/messages/fr_CA.json

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion src/i18n/messages/he.json

This file was deleted.

443 changes: 443 additions & 0 deletions src/i18n/messages/hi.json

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion src/i18n/messages/id.json

This file was deleted.

443 changes: 443 additions & 0 deletions src/i18n/messages/it.json

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion src/i18n/messages/ko_kr.json

This file was deleted.

1 change: 0 additions & 1 deletion src/i18n/messages/pl.json

This file was deleted.

443 changes: 443 additions & 0 deletions src/i18n/messages/pt.json

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion src/i18n/messages/pt_br.json

This file was deleted.

444 changes: 443 additions & 1 deletion src/i18n/messages/ru.json

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion src/i18n/messages/th.json

This file was deleted.

444 changes: 443 additions & 1 deletion src/i18n/messages/uk.json

Large diffs are not rendered by default.

0 comments on commit b6d272e

Please sign in to comment.