Skip to content

Commit

Permalink
add static translations dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
luacmartins committed Feb 7, 2025
1 parent d687284 commit 3904953
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 13 deletions.
8 changes: 7 additions & 1 deletion src/CONST.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2517,11 +2517,17 @@ const CONST = {
ES: 'es',
ES_ES: 'es-ES',
ES_ES_ONFIDO: 'es_ES',
PT: 'pt',
IT: 'it',
GE: 'ge',
FR: 'fr',
CN: 'cn',
JP: 'jp',

DEFAULT: 'en',
},

LANGUAGES: ['en', 'es'],
LANGUAGES: ['en', 'es', 'pt', 'it', 'ge', 'fr', 'cn', 'jp'],

PRONOUNS_LIST: [
'coCos',
Expand Down
14 changes: 8 additions & 6 deletions src/languages/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1726,12 +1726,14 @@ const translations = {
languagePage: {
language: 'Language',
languages: {
en: {
label: 'English',
},
es: {
label: 'Spanish',
},
en: 'English',
es: 'Spanish',
pt: 'Portuguese',
it: 'Italian',
ge: 'German',
fr: 'French',
cn: 'Chinese',
jp: 'Japanese',
},
},
themePage: {
Expand Down
14 changes: 8 additions & 6 deletions src/languages/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1729,12 +1729,14 @@ const translations = {
languagePage: {
language: 'Idioma',
languages: {
en: {
label: 'Inglés',
},
es: {
label: 'Español',
},
en: 'Inglés',
es: 'Español',
pt: 'Portugués',
it: 'Italiano',
ge: 'Alemán',
fr: 'Francés',
cn: 'Chino',
jp: 'Japonés',
},
},
themePage: {
Expand Down

0 comments on commit 3904953

Please sign in to comment.