add translation files

This commit is contained in:
Aria Moradi
2023-02-13 20:13:39 +03:30
parent 1c7c3e566c
commit ce83914599
3 changed files with 17 additions and 12 deletions

View File

@@ -0,0 +1,4 @@
{
"DefaultNavBar.navbarItems.Library": "Library",
"screens/Library/Library": "Library"
}

View File

@@ -0,0 +1,4 @@
{
"DefaultNavBar.navbarItems.Library": "fr(Library)",
"screens/Library/Library": "fr(Library)"
}

View File

@@ -5,19 +5,16 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
import en from 'i18n/resources/en.json';
import fr from 'i18n/resources/fr.json';
const translationHelper = (lng: any) => ({
translation: lng,
});
const resources = {
en: {
translation: {
'DefaultNavBar.navbarItems.Library': 'Library',
'screens/Library/Library': 'Library',
},
},
fr: {
translation: {
'DefaultNavBar.navbarItems.Library': 'fr(Library)',
'screens/Library/Library': 'fr(Library)',
},
},
en: translationHelper(en),
fr: translationHelper(fr),
};
export default resources;