generated from graasp/graasp-repo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
154 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
import i18n from 'i18next'; | ||
import { initReactI18next } from 'react-i18next'; | ||
import en from '../langs/en.json'; | ||
import fr from '../langs/fr.json'; | ||
|
||
i18n.use(initReactI18next).init({ | ||
resources: { | ||
en, | ||
fr, | ||
}, | ||
lng: 'en', | ||
fallbackLng: 'en', | ||
// debug only when not in production | ||
debug: process.env.NODE_ENV !== 'production', | ||
ns: ['translations'], | ||
defaultNS: 'translations', | ||
keySeparator: false, | ||
interpolation: { | ||
escapeValue: false, | ||
formatSeparator: ',', | ||
}, | ||
react: { | ||
wait: true, | ||
}, | ||
}); | ||
|
||
const langs = { | ||
// bg: "български", | ||
// ca: "Català", | ||
// cs: "čeština", | ||
// de: "Deutsch", | ||
// el: "Ελληνικά", | ||
en: 'English', | ||
// es: "Español", | ||
// et: "Eesti", | ||
// fi: "Suomi", | ||
fr: 'Français', | ||
// hu: "Magyar", | ||
// it: "Italiano", | ||
// ja: '日本語', | ||
// ka: "ქართული", | ||
// lt: "lietuvių kalba", | ||
// lv: "Latviešu", | ||
// nl: "Nederlands", | ||
// pt: "Português", | ||
// ro: "Română", | ||
// ru: "Русский", | ||
// sk: "Slovenský", | ||
// sl: "Slovenščina", | ||
// sr: "српски језик", | ||
// sw: 'Kiswahili', | ||
// tr: "Türkçe", | ||
// uk: "Українська", | ||
// vi: "Tiếng Việt", | ||
// zh: "简体中文", | ||
// zh_tw: "繁體中文", | ||
}; | ||
|
||
export { langs }; | ||
|
||
export default i18n; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters