feat: 20250612 i18n Demo
This commit is contained in:
parent
481ec5ecf7
commit
893e34bdcc
@ -10,6 +10,7 @@
|
||||
"audit": "npm audit --fix",
|
||||
"lint": "eslint . --ext .vue,.js,.jsx,.ts,.tsx --fix --max-warnings 0",
|
||||
"lint:check": "eslint . --ext .vue,.js,.jsx,.ts,.tsx",
|
||||
"i18n:extract": "vue-i18n-extract --path './src/**/*.{vue,js,ts}'",
|
||||
"prepare": "husky install",
|
||||
"reinstall": "rm -rf node_modules package-lock.json && npm install"
|
||||
},
|
||||
|
||||
@ -33,6 +33,7 @@
|
||||
<!-- 复数示例 -->
|
||||
<div class="plural-demo">
|
||||
<h3>{{ t('demo.plural.title') }}</h3>
|
||||
<span>你好</span>
|
||||
<!-- {{ t('demo.plural.message', 12) }}-->
|
||||
<!-- <p v-for="count in [0, 1, 2, 5]" :key="count">-->
|
||||
<!-- {{ t('demo.plural.message', { count }) }}-->
|
||||
|
||||
Loading…
Reference in New Issue
Block a user