Skip to content

Commit

Permalink
Merge pull request #511 from alexstotsky/upd-lng-options
Browse files Browse the repository at this point in the history
(improvement) Language options
  • Loading branch information
prdn authored Apr 20, 2022
2 parents 8405829 + 7a2193b commit ddd1f1a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
File renamed without changes.
24 changes: 15 additions & 9 deletions src/locales/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,33 +11,39 @@ const { REACT_APP_ENV } = process.env

export const LANGUAGES = {
en: 'en',
es: 'es-EM',
pt: 'pt-PT',
'en-US': 'en',
ru: 'ru',
tr: 'tr',
cn: 'zh-CN',
tw: 'zh-TW',
tr: 'tr',
es: 'es-EM',
pt: 'pt-BR',
'pt-PT': 'pt-BR',
'pt-BR': 'pt-BR',
}

export const LANGUAGE_NAMES = {
en: 'English',
es: 'Español',
pt: 'Português',
ru: 'Русский',
tr: 'Türk',
cn: '中文 (简化)',
tw: '中文 (繁體)',
tr: 'Türkçe',
es: 'Español',
pt: 'Português',
}

// email templates language mapping
export const LANGUAGES_MAP = {
en: 'en',
es: 'es-EM',
pt: 'pt-PT',
'en-US': 'en',
ru: 'ru',
tr: 'tr',
cn: 'zh-CN',
tw: 'zh-TW',
es: 'es-EM',
tr: 'tr',
pt: 'pt-BR',
'pt-PT': 'pt-BR',
'pt-BR': 'pt-BR',
}

i18n
Expand Down

0 comments on commit ddd1f1a

Please sign in to comment.