Skip to content

Commit

Permalink
chore(playground): add i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
KeJunMao committed Jan 29, 2024
1 parent c40ce69 commit 8f07d70
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 24 deletions.
3 changes: 2 additions & 1 deletion packages/playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"@dcloudio/uni-components": "3.0.0-alpha-3090020230909001",
"@dcloudio/uni-h5": "3.0.0-alpha-3090020230909001",
"@dcloudio/uni-mp-weixin": "3.0.0-alpha-3090020230909001",
"vue": "^3.4.5"
"vue": "^3.4.5",
"vue-i18n": "^9.9.0"
},
"devDependencies": {
"@dcloudio/types": "^3.4.6",
Expand Down
3 changes: 3 additions & 0 deletions packages/playground/src/locale/en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"app.name": "Hello uni-helper"
}
11 changes: 11 additions & 0 deletions packages/playground/src/pages/i18n.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<template>
i18n
</template>

<route lang="json">
{
"style": {
"navigationBarTitleText": "%app.name%"
}
}
</route>
75 changes: 52 additions & 23 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8f07d70

Please sign in to comment.