summaryrefslogtreecommitdiff
path: root/src/localization.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/localization.js')
-rw-r--r--src/localization.js43
1 files changed, 43 insertions, 0 deletions
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