mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-10 18:10:08 +00:00
* refactor: convert translation files from TS to JSON format * feat: add lobe-i18n setup and translation scripts * chore: update translation files for consistency * chore: refine translations in ja_JP.json for natural phrasing * refactor: revert locale file names to original simpler format (e.g., en_US → en)
19 lines
416 B
TypeScript
19 lines
416 B
TypeScript
import { createI18n } from 'vue-i18n'
|
|
import en from './locales/en.json'
|
|
import zh from './locales/zh.json'
|
|
import ru from './locales/ru.json'
|
|
import ja from './locales/ja.json'
|
|
|
|
export const i18n = createI18n({
|
|
// Must set `false`, as Vue I18n Legacy API is for Vue 2
|
|
legacy: false,
|
|
locale: navigator.language.split('-')[0] || 'en',
|
|
fallbackLocale: 'en',
|
|
messages: {
|
|
en,
|
|
zh,
|
|
ru,
|
|
ja
|
|
}
|
|
})
|