PicList/src/main/utils/handleI18n.ts
2022-08-20 16:44:55 +08:00

7 lines
235 B
TypeScript

import db from '~/main/apis/core/datastore'
import { i18nManager } from '~/main/i18n'
export const initI18n = () => {
const currentLanguage = db.get('settings.language') || 'zh-CN'
i18nManager.setCurrentLanguage(currentLanguage)
}