PicList/src/main/utils/handleI18n.ts

7 lines
209 B
TypeScript
Raw Normal View History

2022-02-20 08:30:22 -05:00
import db from '~/main/apis/core/datastore'
import { i18n } from '#/i18n'
export const initI18n = () => {
const currentLanguage = db.get('settings.language') || 'zh-CN'
i18n.setLanguage(currentLanguage)
}