mirror of
https://github.com/Kuingsmile/PicList.git
synced 2025-01-24 07:08:13 -05:00
7 lines
209 B
TypeScript
7 lines
209 B
TypeScript
|
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)
|
||
|
}
|