feat(locales): 避免冲突 src/locales/demo
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
"format:prettier": "prettier --write src/",
|
"format:prettier": "prettier --write src/",
|
||||||
"type-check": "vue-tsc --build",
|
"type-check": "vue-tsc --build",
|
||||||
"lint": "run-s lint:*",
|
"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:stylelint": "stylelint --fix --ignore-path .gitignore \"**/*.{css,less,scss,vue}\"",
|
||||||
"lint:oxlint": "oxlint . --fix -D correctness --ignore-path .gitignore",
|
"lint:oxlint": "oxlint . --fix -D correctness --ignore-path .gitignore",
|
||||||
"lint:eslint": "eslint . --fix",
|
"lint:eslint": "eslint . --fix",
|
||||||
|
|||||||
10
src/locales/demo/en-US.json
Normal file
10
src/locales/demo/en-US.json
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"page": {
|
||||||
|
"i18n-demo": {
|
||||||
|
"title": "Vue I18n Demo",
|
||||||
|
"current-language": "Current Language",
|
||||||
|
"change-language": "Change Language",
|
||||||
|
"hello": "Hello, {name}!"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
10
src/locales/demo/zh-CN.json
Normal file
10
src/locales/demo/zh-CN.json
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"page": {
|
||||||
|
"i18n-demo": {
|
||||||
|
"title": "Vue I18n 示例",
|
||||||
|
"current-language": "当前语言",
|
||||||
|
"change-language": "切换语言",
|
||||||
|
"hello": "你好, {name}!"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,10 +1 @@
|
|||||||
{
|
{}
|
||||||
"page": {
|
|
||||||
"i18n-demo": {
|
|
||||||
"title": "Vue I18n Demo",
|
|
||||||
"current-language": "Current Language",
|
|
||||||
"change-language": "Change Language",
|
|
||||||
"hello": "Hello, {name}!"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,10 +1 @@
|
|||||||
{
|
{}
|
||||||
"page": {
|
|
||||||
"i18n-demo": {
|
|
||||||
"title": "Vue I18n 示例",
|
|
||||||
"current-language": "当前语言",
|
|
||||||
"change-language": "切换语言",
|
|
||||||
"hello": "你好, {name}!"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user