clean up translations
This commit is contained in:
@@ -19,7 +19,8 @@ const i18n = use(initReactI18next)
|
||||
interpolation: {
|
||||
escapeValue: false,
|
||||
},
|
||||
debug: true,
|
||||
returnNull: false,
|
||||
debug: process.env.NODE_ENV !== 'production',
|
||||
});
|
||||
|
||||
export default i18n;
|
||||
|
||||
11
src/i18n/locale/en.json
Normal file
11
src/i18n/locale/en.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"screens": {
|
||||
"Library": {
|
||||
"Library": "Library",
|
||||
"could-not-load-categories": "Could not load categories",
|
||||
"your-library-is-empty": "Your Library is empty",
|
||||
"category-is-empty": "Category is Empty",
|
||||
"could-not-load-manga": "Could not load manga"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
{
|
||||
"DefaultNavBar.navbarItems.Library": "Library",
|
||||
"screens/Library/Library": "Library"
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
{
|
||||
"DefaultNavBar.navbarItems.Library": "fr(Library)",
|
||||
"screens/Library/Library": "fr(Library)"
|
||||
}
|
||||
@@ -5,8 +5,7 @@
|
||||
* 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';
|
||||
import en from 'i18n/locale/en.json';
|
||||
|
||||
const translationHelper = (lng: any) => ({
|
||||
translation: lng,
|
||||
@@ -14,7 +13,6 @@ const translationHelper = (lng: any) => ({
|
||||
|
||||
const resources = {
|
||||
en: translationHelper(en),
|
||||
fr: translationHelper(fr),
|
||||
};
|
||||
|
||||
export default resources;
|
||||
|
||||
Reference in New Issue
Block a user