feat: 20250612 i18n Demo

This commit is contained in:
mac·ufutx 2025-06-12 11:50:00 +08:00
parent 481ec5ecf7
commit 893e34bdcc
2 changed files with 2 additions and 0 deletions

View File

@ -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"
},

View File

@ -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 }) }}-->