新增首次运行时自动根据当前系统使用的语言设置软件显示的语言

This commit is contained in:
lyswhut
2020-06-24 16:12:02 +08:00
parent 637727faa0
commit cc5d119ba4
71 changed files with 91 additions and 14 deletions
+6 -1
View File
@@ -9,7 +9,12 @@ const requireLang = require.context(
const messages = {}
for (const file of requireLang.keys()) {
if (file === './index.js') continue
switch (file) {
case './index.js':
case './languages.json':
case './Readme.md':
continue
}
const path = file.replace(/(\.\/|\.json$)/g, '').split('/')