mirror of
https://github.com/Kuingsmile/PicList.git
synced 2025-01-23 22:58:14 -05:00
7 lines
235 B
TypeScript
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)
|
|
}
|