mirror of https://github.com/YunYouJun/valaxy
fix(theme-press): i18n menu
This commit is contained in:
parent
0862c12d8c
commit
b09dd4c1a9
|
@ -1,11 +1,7 @@
|
|||
gallery:
|
||||
tip: search
|
||||
|
||||
button:
|
||||
get-started: Get Started
|
||||
view-github: View Github
|
||||
|
||||
menu:
|
||||
nav:
|
||||
guide: Guide
|
||||
theme: Themes
|
||||
addon: Addons
|
||||
|
@ -38,3 +34,8 @@ banner:
|
|||
static: Static
|
||||
blog: Blog
|
||||
framework: Framework
|
||||
|
||||
hero:
|
||||
actions:
|
||||
get-started: Get Started
|
||||
view-github: View Github
|
||||
|
|
|
@ -1,11 +1,7 @@
|
|||
gallery:
|
||||
tip: 搜索
|
||||
|
||||
button:
|
||||
get-started: 快速上手
|
||||
view-github: 查看 Github
|
||||
|
||||
menu:
|
||||
nav:
|
||||
guide: 指南
|
||||
theme: 主题
|
||||
addon: 插件
|
||||
|
@ -38,3 +34,8 @@ banner:
|
|||
static: 静态
|
||||
blog: 博客
|
||||
framework: 框架
|
||||
|
||||
hero:
|
||||
actions:
|
||||
get-started: 快速上手
|
||||
view-github: 查看 Github
|
||||
|
|
|
@ -9,9 +9,9 @@
|
|||
"dev": "nodemon -w \"../packages/valaxy/dist/*.mjs\" --exec \"valaxy .\"",
|
||||
"rss": "valaxy rss",
|
||||
"serve": "vite preview",
|
||||
"docs:dev": "vitepress dev",
|
||||
"docs:build": "vitepress build",
|
||||
"docs:preview": "vitepress preview"
|
||||
"vitepress:dev": "vitepress dev",
|
||||
"vitepress:build": "vitepress build",
|
||||
"vitepress:preview": "vitepress preview"
|
||||
},
|
||||
"dependencies": {
|
||||
"valaxy": "link:../packages/valaxy",
|
||||
|
|
|
@ -9,10 +9,10 @@ hero:
|
|||
tagline: Simple, powerful, and performant. Meet the modern BLOG framework you've always wanted.
|
||||
actions:
|
||||
- theme: brand
|
||||
text: button.get-started
|
||||
text: hero.actions.get-started
|
||||
link: /guide/getting-started
|
||||
- theme: alt
|
||||
text: button.view-github
|
||||
text: hero.actions.view-github
|
||||
link: https://github.com/YunYouJun/valaxy
|
||||
|
||||
# todo, rewrite with valaxy
|
||||
|
|
|
@ -41,52 +41,52 @@ export default defineValaxyConfig<PressTheme.Config>({
|
|||
],
|
||||
nav: [
|
||||
{
|
||||
text: 'menu.guide',
|
||||
text: 'nav.guide',
|
||||
items: [
|
||||
{
|
||||
text: 'menu.getting-started',
|
||||
text: 'nav.getting-started',
|
||||
link: '/guide/getting-started',
|
||||
},
|
||||
{
|
||||
text: 'menu.migrate-from-other',
|
||||
text: 'nav.migrate-from-other',
|
||||
link: '/migration/',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
text: 'menu.theme',
|
||||
text: 'nav.theme',
|
||||
items: [
|
||||
{
|
||||
text: 'menu.use-a-theme',
|
||||
text: 'nav.use-a-theme',
|
||||
link: '/themes/use',
|
||||
},
|
||||
{
|
||||
text: 'menu.write-a-theme',
|
||||
text: 'nav.write-a-theme',
|
||||
link: '/themes/write',
|
||||
},
|
||||
{
|
||||
text: 'menu.themes-gallery',
|
||||
text: 'nav.themes-gallery',
|
||||
link: '/themes/gallery',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
text: 'menu.addon',
|
||||
text: 'nav.addon',
|
||||
items: [
|
||||
{
|
||||
text: 'menu.why-need-addons',
|
||||
text: 'nav.why-need-addons',
|
||||
link: '/addons',
|
||||
},
|
||||
{
|
||||
text: 'menu.use-an-addon',
|
||||
text: 'nav.use-an-addon',
|
||||
link: '/addons/use',
|
||||
},
|
||||
{
|
||||
text: 'menu.write-an-addon',
|
||||
text: 'nav.write-an-addon',
|
||||
link: '/addons/write',
|
||||
},
|
||||
{
|
||||
text: 'menu.addons-gallery',
|
||||
text: 'nav.addons-gallery',
|
||||
link: '/addons/gallery',
|
||||
},
|
||||
],
|
||||
|
|
|
@ -33,8 +33,8 @@
|
|||
"dev:lib": "pnpm -C packages/valaxy run dev",
|
||||
"dev": "pnpm -r --filter=./packages/** --parallel run dev",
|
||||
"docs": "pnpm -C docs run dev",
|
||||
"docs:dev": "pnpm -C docs run docs:dev",
|
||||
"docs:build": "pnpm -C docs run docs:build",
|
||||
"docs:dev": "pnpm -C docs run dev",
|
||||
"docs:vitepress": "pnpm -C docs run vitepress:dev",
|
||||
"lint": "eslint .",
|
||||
"prepublishOnly": "npm run build",
|
||||
"release": "tsx scripts/release.ts",
|
||||
|
|
Loading…
Reference in New Issue