mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-25 16:16:20 +08:00
chore(i18n): add ts,js file support (#3552)
This commit is contained in:
4
.vscode/settings.json
vendored
4
.vscode/settings.json
vendored
@@ -108,9 +108,7 @@
|
||||
"i18n-ally.sortKeys": true,
|
||||
"i18n-ally.namespace": true,
|
||||
"i18n-ally.pathMatcher": "{locale}/{namespaces}.{ext}",
|
||||
"i18n-ally.enabledParsers": [
|
||||
"json"
|
||||
],
|
||||
"i18n-ally.enabledParsers": ["json","ts","js"],
|
||||
"i18n-ally.sourceLanguage": "en",
|
||||
"i18n-ally.displayLanguage": "zh-CN",
|
||||
"i18n-ally.enabledFrameworks": [
|
||||
|
@@ -1,7 +1,7 @@
|
||||
import { genMessage } from '../helper';
|
||||
import antdLocale from 'ant-design-vue/es/locale/en_US';
|
||||
|
||||
const modules = import.meta.glob('./en/**/*.json', { eager: true });
|
||||
const modules = import.meta.glob('./en/**/*.{json,ts,js}', { eager: true });
|
||||
export default {
|
||||
message: {
|
||||
...genMessage(modules as Recordable<Recordable>, 'en'),
|
||||
|
@@ -2,7 +2,7 @@ import { genMessage } from '../helper';
|
||||
import antdLocale from 'ant-design-vue/es/locale/zh_CN';
|
||||
import { deepMerge } from '@/utils';
|
||||
|
||||
const modules = import.meta.glob('./zh-CN/**/*.json', { eager: true });
|
||||
const modules = import.meta.glob('./zh-CN/**/*.{json,ts,js}', { eager: true });
|
||||
|
||||
export default {
|
||||
message: {
|
||||
|
Reference in New Issue
Block a user