summaryrefslogtreecommitdiff
path: root/src/localization.js
blob: f6a6c2d7e6d794bb132da1c269b0c4c1664530a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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''キーワード',
               'Circle''サークル',
               'Release''販売日',
               'Format''ファイル形式',
               'Size''ファイル容量総計',
               'Authors''作家',
            }
         }
      },
      lng: 'jp',
      fallbackLng: 'cimode',
      keySeparator: false,
      interpolation: { escapeValue: false },
      debug: true,
   });

export default i18n