Language Translation: French (#778)

This commit is contained in:
Fuegovic 2023-08-09 09:27:32 -04:00 committed by GitHub
parent de34d8b47c
commit b896225bd8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 219 additions and 7 deletions

View file

@ -1,9 +1,10 @@
import English from './languages/Eng';
import Chinese from './languages/Zh';
import German from './languages/De';
import Italian from './languages/It';
import Portuguese from './languages/Br';
import Spanish from './languages/Es';
import German from './languages/De';
import French from './languages/Fr';
// === import additional language files here === //
// New method on String allow using "{\d}" placeholder for
@ -31,6 +32,12 @@ export const getTranslations = (langCode: string) => {
if (langCode === 'cn') {
return Chinese;
}
if (langCode === 'fr') {
return French;
}
if (langCode === 'de') {
return German;
}
if (langCode === 'it') {
return Italian;
}
@ -40,9 +47,7 @@ export const getTranslations = (langCode: string) => {
if (langCode === 'es') {
return Spanish;
}
if (langCode === 'de') {
return German;
}
// === add conditionals here for additional languages here === //
return English; // default to English
};