mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-05 21:51:23 +02:00
Merge pull request #421 from wreuel/feature/brazilianPortugueseTranslation
Added translation to Brazilian Portuguese on existing strings.
This commit is contained in:
@@ -168,6 +168,7 @@ Translations live in `frontend/src/i18n/locales/`:
|
||||
| `de.ts` | German |
|
||||
| `fr.ts` | French |
|
||||
| `ja.ts` | Japanese |
|
||||
| `pt-BR.ts` | Brazilian Portuguese |
|
||||
|
||||
### Adding New Strings
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@ import de from './locales/de';
|
||||
import fr from './locales/fr';
|
||||
import ja from './locales/ja';
|
||||
import it from './locales/it';
|
||||
import ptBR from './locales/pt-BR';
|
||||
|
||||
const resources = {
|
||||
en: { translation: en },
|
||||
@@ -15,6 +16,7 @@ const resources = {
|
||||
fr: { translation: fr },
|
||||
ja: { translation: ja },
|
||||
it: { translation: it },
|
||||
'pt-BR': { translation: ptBR },
|
||||
};
|
||||
|
||||
i18n
|
||||
@@ -23,7 +25,7 @@ i18n
|
||||
.init({
|
||||
resources,
|
||||
fallbackLng: 'en',
|
||||
supportedLngs: ['en', 'de', 'fr', 'ja', 'it'],
|
||||
supportedLngs: ['en', 'de', 'fr', 'ja', 'it', 'pt-BR'],
|
||||
|
||||
detection: {
|
||||
// Order of detection methods
|
||||
@@ -52,4 +54,5 @@ export const availableLanguages = [
|
||||
{ code: 'fr', name: 'French', nativeName: 'Français' },
|
||||
{ code: 'ja', name: 'Japanese', nativeName: '日本語' },
|
||||
{ code: 'it', name: 'Italian', nativeName: 'Italiano' },
|
||||
{ code: 'pt-BR', name: 'Portuguese (Brazil)', nativeName: 'Português (Brasil)' },
|
||||
];
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user