mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-05-21 16:20:46 +08:00
✨ Feature: add i18n for en
This commit is contained in:
6
src/main/utils/handleI18n.ts
Normal file
6
src/main/utils/handleI18n.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user