diff --git a/package.json b/package.json index 0acf68e..39c4334 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "format:prettier": "prettier --write src/", "type-check": "vue-tsc --build", "lint": "run-s lint:*", - "lint:vue-i18n-extract": "vue-i18n-extract report --vueFiles './src/**/*.?(ts|tsx|vue)' --languageFiles './src/locales/*.?(json|yml|yaml|js)' --ci", + "lint:vue-i18n-extract": "vue-i18n-extract report --vueFiles './src/**/*.?(ts|tsx|vue)' --languageFiles './src/locales/**/*.?(json|yml|yaml|js)' --ci", "lint:stylelint": "stylelint --fix --ignore-path .gitignore \"**/*.{css,less,scss,vue}\"", "lint:oxlint": "oxlint . --fix -D correctness --ignore-path .gitignore", "lint:eslint": "eslint . --fix", diff --git a/src/locales/demo/en-US.json b/src/locales/demo/en-US.json new file mode 100644 index 0000000..dd704a3 --- /dev/null +++ b/src/locales/demo/en-US.json @@ -0,0 +1,10 @@ +{ + "page": { + "i18n-demo": { + "title": "Vue I18n Demo", + "current-language": "Current Language", + "change-language": "Change Language", + "hello": "Hello, {name}!" + } + } +} diff --git a/src/locales/demo/zh-CN.json b/src/locales/demo/zh-CN.json new file mode 100644 index 0000000..c47a038 --- /dev/null +++ b/src/locales/demo/zh-CN.json @@ -0,0 +1,10 @@ +{ + "page": { + "i18n-demo": { + "title": "Vue I18n 示例", + "current-language": "当前语言", + "change-language": "切换语言", + "hello": "你好, {name}!" + } + } +} diff --git a/src/locales/en-US.json b/src/locales/en-US.json index dd704a3..0967ef4 100644 --- a/src/locales/en-US.json +++ b/src/locales/en-US.json @@ -1,10 +1 @@ -{ - "page": { - "i18n-demo": { - "title": "Vue I18n Demo", - "current-language": "Current Language", - "change-language": "Change Language", - "hello": "Hello, {name}!" - } - } -} +{} diff --git a/src/locales/zh-CN.json b/src/locales/zh-CN.json index c47a038..0967ef4 100644 --- a/src/locales/zh-CN.json +++ b/src/locales/zh-CN.json @@ -1,10 +1 @@ -{ - "page": { - "i18n-demo": { - "title": "Vue I18n 示例", - "current-language": "当前语言", - "change-language": "切换语言", - "hello": "你好, {name}!" - } - } -} +{}