mirror of
https://github.com/coder/code-server.git
synced 2026-02-19 18:01:15 +08:00
25 lines
543 B
TypeScript
25 lines
543 B
TypeScript
import i18next, { init } from "i18next"
|
|
import * as en from "./locales/en.json"
|
|
import * as th from "./locales/th.json"
|
|
import * as zhCn from "./locales/zh-cn.json"
|
|
init({
|
|
lng: "en",
|
|
fallbackLng: "en", // language to use if translations in user language are not available.
|
|
returnNull: false,
|
|
lowerCaseLng: true,
|
|
debug: process.env.NODE_ENV === "development",
|
|
resources: {
|
|
en: {
|
|
translation: en,
|
|
},
|
|
"zh-cn": {
|
|
translation: zhCn,
|
|
},
|
|
th: {
|
|
translation: th,
|
|
},
|
|
},
|
|
})
|
|
|
|
export default i18next
|