From c4969b8261fd1d98ab2b3740d52b097dc0fe840c Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Thu, 5 Nov 2020 15:13:52 +0900 Subject: initial commit --- src/localization.js | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 src/localization.js (limited to 'src/localization.js') diff --git a/src/localization.js b/src/localization.js new file mode 100644 index 0000000..a265996 --- /dev/null +++ b/src/localization.js @@ -0,0 +1,43 @@ +import i18n from "i18next" +import LanguageDetector from 'i18next-browser-languagedetector'; +import { initReactI18next } from "react-i18next"; + +i18n + .use(LanguageDetector) + .use(initReactI18next) + .init({ + initImmediate: false, + resources: { + jp: { + translation: { + 'DoujinSea': 'DoujinSea', + 'Search': 'サーチ', + 'Store': 'ストア', + 'Library': 'ライブラリー', + 'Account': 'アカウント', + 'Download': 'ダウンロード', + 'No description': '作品内容なし', + 'Featured': '目玉商品', + 'Popular': '人気', + 'Latest': '最新', + 'Category': '範疇', + 'Manga': '漫画', + 'Audio': '音響', + 'Video': '動画', + 'Game': 'ゲーム', + 'Audience': '観客', + 'All ages': '老弱', + 'Heterosexual': '異性愛者', + 'Homosexual': '同性愛', + 'Keywords': 'キーワード', + } + } + }, + lng: 'jp', + fallbackLng: 'cimode', + keySeparator: false, + interpolation: { escapeValue: false }, + debug: true, + }); + +export default i18n -- cgit v1.2.3