UNPKG

react-json-schema-editor-antd

Version:

Json Schema Editor

33 lines 604 B
import i18n from 'i18next'; import { initReactI18next } from 'react-i18next'; import en from "./en.json"; import id from "./id_ID.json"; import ja from "./ja_JP.json"; import zh from "./zh.json"; import tw from "./zh_TW.json"; i18n.use(initReactI18next).init({ resources: { en: { translation: en }, zh: { translation: zh }, ja: { translation: ja }, 'zh-Hant': { translation: tw }, id: { translation: id } }, lng: 'en', // 默认语言 fallbackLng: 'en', interpolation: { escapeValue: false } }); export default i18n;