forked from sombochea/verdaccio-ui
feat: spanish translations to UI (#440)
* feat: spanish translations to UI * chore: enable spanish
This commit is contained in:
committed by
GitHub
parent
7428384b55
commit
0abe1ef41c
@@ -3,6 +3,7 @@ import { initReactI18next } from 'react-i18next';
|
||||
|
||||
import translationEN from './translations/en-US.json';
|
||||
import translationPT from './translations/pt-BR.json';
|
||||
import translationES from './translations/es-ES.json';
|
||||
|
||||
i18n
|
||||
// pass the i18n instance to react-i18next.
|
||||
@@ -13,7 +14,7 @@ i18n
|
||||
// in case window.VEDACCIO_LANGUAGE is undefined,it will fall back to 'en-US'
|
||||
lng: window?.__VERDACCIO_BASENAME_UI_OPTIONS?.language,
|
||||
fallbackLng: 'en-US',
|
||||
whitelist: ['en-US', 'pt-BR'],
|
||||
whitelist: ['en-US', 'pt-BR', 'es-ES'],
|
||||
load: 'currentOnly',
|
||||
resources: {
|
||||
'en-US': {
|
||||
@@ -22,6 +23,9 @@ i18n
|
||||
'pt-BR': {
|
||||
translation: translationPT,
|
||||
},
|
||||
'es-ES': {
|
||||
translation: translationES,
|
||||
},
|
||||
},
|
||||
debug: false,
|
||||
interpolation: {
|
||||
|
||||
Reference in New Issue
Block a user