feat(i18n): add Brazilian Portuguese (pt-BR) locale
This commit is contained in:
@@ -8,6 +8,7 @@ import deTranslations from './locales/de.json';
|
|||||||
import ruTranslations from './locales/ru.json';
|
import ruTranslations from './locales/ru.json';
|
||||||
import ptTranslations from './locales/pt.json';
|
import ptTranslations from './locales/pt.json';
|
||||||
import nlTranslations from './locales/nl.json';
|
import nlTranslations from './locales/nl.json';
|
||||||
|
import ptBrTranslations from './locales/pt-br.json';
|
||||||
|
|
||||||
i18n
|
i18n
|
||||||
.use(HttpBackend)
|
.use(HttpBackend)
|
||||||
@@ -33,19 +34,22 @@ i18n
|
|||||||
nl: {
|
nl: {
|
||||||
translation: nlTranslations,
|
translation: nlTranslations,
|
||||||
},
|
},
|
||||||
|
'pt-BR': {
|
||||||
|
translation: ptBrTranslations,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
interpolation: {
|
interpolation: {
|
||||||
escapeValue: false,
|
escapeValue: false,
|
||||||
},
|
},
|
||||||
|
|
||||||
// Use v4 format for pluralization (_one/_other instead of _plural suffix)
|
// Use v4 format for pluralization (_one/_other instead of _plural suffix)
|
||||||
compatibilityJSON: 'v4',
|
compatibilityJSON: 'v4',
|
||||||
|
|
||||||
detection: {
|
detection: {
|
||||||
order: ['localStorage', 'cookie', 'navigator', 'htmlTag'],
|
order: ['localStorage', 'cookie', 'navigator', 'htmlTag'],
|
||||||
caches: ['localStorage', 'cookie'],
|
caches: ['localStorage', 'cookie'],
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
export default i18n;
|
export default i18n;
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user