Skip to content

Commit

Permalink
feat(i18n): add spanish #33
Browse files Browse the repository at this point in the history
  • Loading branch information
johannesjo committed Jul 17, 2019
1 parent 6f0c376 commit d150aba
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/app/app.constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export const HANDLED_ERROR = '--HANDLED_ERROR--';

export enum LanguageCodes {
en = 'en',
es = 'es',
de = 'de',
ar = 'ar',
fr = 'fr',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@ export const LANGUAGE_SELECTION_FORM_FORM: ConfigFormSection = {
templateOptions: {
label: T.F_LANG.LABEL,
options: [
{label: T.F_LANG.EN, value: LanguageCodes.en},
{label: T.F_LANG.AR, value: LanguageCodes.ar},
{label: T.F_LANG.ZH, value: LanguageCodes.zh},
{label: T.F_LANG.EN, value: LanguageCodes.en},
{label: T.F_LANG.DE, value: LanguageCodes.de},
{label: T.F_LANG.FR, value: LanguageCodes.fr},
{label: T.F_LANG.RU, value: LanguageCodes.ru},
{label: T.F_LANG.JA, value: LanguageCodes.ja},
{label: T.F_LANG.DE, value: LanguageCodes.de},
{label: T.F_LANG.AR, value: LanguageCodes.ar},
{label: T.F_LANG.RU, value: LanguageCodes.ru},
{label: T.F_LANG.ES, value: LanguageCodes.es},
{label: T.F_LANG.TR, value: LanguageCodes.tr},
],
},
Expand Down
3 changes: 2 additions & 1 deletion src/app/t.const.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,13 @@ export const T = {
},
'F_LANG': {
'TITLE': 'F_LANG.TITLE',
'LABEL': 'F_LANG.LABEL',
'AR': 'F_LANG.AR',
'DE': 'F_LANG.DE',
'EN': 'F_LANG.EN',
'ES': 'F_LANG.ES',
'FR': 'F_LANG.FR',
'JA': 'F_LANG.JA',
'LABEL': 'F_LANG.LABEL',
'RU': 'F_LANG.RU',
'TR': 'F_LANG.TR',
'ZH': 'F_LANG.ZH'
Expand Down
3 changes: 2 additions & 1 deletion src/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,13 @@
},
"F_LANG": {
"TITLE": "Language",
"LABEL": "Please select a language",
"AR": "Arabic",
"DE": "German",
"EN": "English",
"ES": "Spanish",
"FR": "French",
"JA": "Japanese",
"LABEL": "Please select a language",
"RU": "Russian",
"TR": "Turkish",
"ZH": "Chinese"
Expand Down

0 comments on commit d150aba

Please sign in to comment.