diff --git a/locales/en.json b/locales/en.json index 3be9ee3..ccc944a 100644 --- a/locales/en.json +++ b/locales/en.json @@ -1,10 +1,12 @@ { - "intro": { - "whats-your-name": "What's your name?", - "hi": "Hi, {name}!" - }, "button": { - "go": "GO", - "back": "Back" + "back": "Back", + "go": "GO" + }, + "intro": { + "desc": "Opinionated Vite Starter Template", + "dynamic-route": "Demo of dynamic route", + "hi": "Hi, {name}!", + "whats-your-name": "What's your name?" } } diff --git a/locales/fr.json b/locales/fr.json index 6e9aac3..f8b4397 100644 --- a/locales/fr.json +++ b/locales/fr.json @@ -1,10 +1,12 @@ { "button": { - "back": "Arrière", - "go": "ALLER" + "back": "Retour", + "go": "Commencer" }, "intro": { + "desc": "Modèle de Vite dogmatique", + "dynamic-route": "Démo de dynamic route", "hi": "Salut, {name}!", - "whats-your-name": "Quel est ton nom?" + "whats-your-name": "Comment tu t'appelles?" } } diff --git a/locales/zh-CN.json b/locales/zh-CN.json index 62d2c2f..29dd20c 100644 --- a/locales/zh-CN.json +++ b/locales/zh-CN.json @@ -4,6 +4,8 @@ "go": "确定" }, "intro": { + "desc": "固执己见的 Vite 项目模板", + "dynamic-route": "动态路由演示", "hi": "你好,{name}!", "whats-your-name": "输入你的名字" } diff --git a/package.json b/package.json index 89b2d91..b154886 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "@vueuse/core": "^4.0.0-beta.4", "variantwind": "^0.6.0", "vue": "^3.0.0-rc.5", - "vue-i18n": "9.0.0-alpha.10", + "vue-i18n": "9.0.0-alpha.11", "vue-router": "^4.0.0-beta.6" }, "devDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6acf861..c03550b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -3,7 +3,7 @@ dependencies: '@vueuse/core': 4.0.0-beta.4_vue@3.0.0-rc.5 variantwind: 0.6.0 vue: 3.0.0-rc.5 - vue-i18n: 9.0.0-alpha.10_vue@3.0.0-rc.5 + vue-i18n: 9.0.0-alpha.11_vue@3.0.0-rc.5 vue-router: 4.0.0-beta.6_vue@3.0.0-rc.5 devDependencies: '@antfu/eslint-config-vue': 0.2.14_eslint@7.6.0+typescript@3.9.7 @@ -3905,19 +3905,20 @@ packages: eslint: '>=5.0.0' resolution: integrity: sha512-Kr21uPfthDc63nDl27AGQEhtt9VrZ9nkYk/NTftJ2ws9XiJwzJJCnCr3AITQ2jpRMA0XPGDECxYH8E027qMK9Q== - /vue-i18n/9.0.0-alpha.10_vue@3.0.0-rc.5: + /vue-i18n/9.0.0-alpha.11_vue@3.0.0-rc.5: dependencies: vue: 3.0.0-rc.5 dev: false engines: node: '>= 10' peerDependencies: - vue: ^3.0.0-beta.14 + vue: ^3.0.0-beta.15 resolution: - integrity: sha512-tkkMo4i+/kWyq7cepB/Eo+JuOaHqtUHZzqbfKmt2KEZFJ1aOJg+bBRfJuGZUupOCgs2zJJX7R6nM58nKEK5Piw== + integrity: sha512-Ro+85srXAO/eyG/eb1+WOqqxFln7PEP2uv8XSiBfOH1lRGYXu/h5Ixunr1cOHwLJ5cYc1BSkFWW937brYer/tA== /vue-router/4.0.0-beta.6_vue@3.0.0-rc.5: dependencies: vue: 3.0.0-rc.5 + dev: false peerDependencies: vue: ^3.0.0-beta.20 resolution: @@ -4055,5 +4056,5 @@ specifiers: vite-plugin-purge-icons: ^0.2.1 vite-plugin-voie: ^0.2.0 vue: ^3.0.0-rc.5 - vue-i18n: 9.0.0-alpha.10 + vue-i18n: 9.0.0-alpha.11 vue-router: ^4.0.0-beta.6 diff --git a/src/components/Footer.vue b/src/components/Footer.vue index 80b8f2e..6f6ca0d 100644 --- a/src/components/Footer.vue +++ b/src/components/Footer.vue @@ -10,6 +10,16 @@ /> +
+ +
+ - -
- -
diff --git a/src/components/Icon.vue b/src/components/Icon.vue index ff1e575..d6ce3e3 100644 --- a/src/components/Icon.vue +++ b/src/components/Icon.vue @@ -17,6 +17,7 @@ const update = async() => { await nextTick() const svg = Iconify.renderSVG(props.icon, {}) if (svg) { + el.value.textContent = '' el.value.appendChild(svg) } else { diff --git a/src/pages/hi/[name].vue b/src/pages/hi/[name].vue index c0e1d94..4eca2ef 100644 --- a/src/pages/hi/[name].vue +++ b/src/pages/hi/[name].vue @@ -7,6 +7,9 @@

{{ t('intro.hi', {name}) }}

+

+ {{ t('intro.dynamic-route') }} +