feat: 语言采用gpt翻译

This commit is contained in:
lan
2024-06-15 17:38:14 +08:00
parent c09648581c
commit 85054fcba3
23 changed files with 206 additions and 73 deletions
+1
View File
@@ -4,6 +4,7 @@ const language = (
navigator.language || 'zh_cn'
).toLowerCase();
const lang = (localStorage.getItem('language') || language).replace(/-/, '_');
console.log(lang)
const i18n = createI18n({
silentTranslationWarn: true,
globalInjection: true,