add i19n
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"files": "Files",
|
||||
"search": "Search",
|
||||
"configuration": "Settings",
|
||||
"add_folder": "Add a folder",
|
||||
"no_folders_yet": "No folders yet. Tap \"Add a folder\" to sync a folder.",
|
||||
"folder": "Folder",
|
||||
"empty_folder": "Empty folder — next syncDevice will refresh it.",
|
||||
"bytes": "B",
|
||||
"kilobytes": "KB",
|
||||
"megabytes": "MB"
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"files": "Fichiers",
|
||||
"search": "Recherche",
|
||||
"configuration": "Configuration",
|
||||
"add_folder": "Ajouter un dossier",
|
||||
"no_folders_yet": "Aucun dossier pour le moment. Appuie sur « Ajouter un dossier » pour synchroniser un dossier.",
|
||||
"folder": "Dossier",
|
||||
"empty_folder": "Dossier vide — le prochain syncDevice l'actualisera.",
|
||||
"bytes": "o",
|
||||
"kilobytes": "Ko",
|
||||
"megabytes": "Mo"
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
import { I18n } from 'i18n-js';
|
||||
import { getLocales } from 'expo-localization';
|
||||
import fr from './fr.json';
|
||||
import en from './en.json';
|
||||
|
||||
const i18n = new I18n({ fr, en });
|
||||
|
||||
i18n.defaultLocale = 'fr';
|
||||
i18n.enableFallback = true;
|
||||
i18n.locale = getLocales()[0]?.languageCode ?? 'fr';
|
||||
|
||||
export default i18n;
|
||||
Reference in New Issue
Block a user