-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Chu Fan
committed
Mar 1, 2023
1 parent
62a399d
commit 59d6c21
Showing
5 changed files
with
99 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,7 +38,6 @@ export default defineUserConfig({ | |
level: [2, 3, 4] | ||
} | ||
}, | ||
|
||
// 主题配置 | ||
...themeConfig, | ||
// 插件配置 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
import {ThemeLocaleData} from "vuepress-theme-hope"; | ||
|
||
/** | ||
* 支持中文 | ||
* 参考:https://theme-hope.vuejs.press/zh/config/i18n.html | ||
*/ | ||
const localCN: ThemeLocaleData = { | ||
lang: "zh-CN", | ||
navbarLocales: { | ||
langName: "简体中文", | ||
selectLangAriaLabel: "选择语言", | ||
}, | ||
metaLocales: { | ||
author: "作者", | ||
date: "写作日期", | ||
origin: "原创", | ||
views: "访问量", | ||
category: "分类", | ||
tag: "标签", | ||
readingTime: "阅读时间", | ||
words: "字数", | ||
toc: "标题大纲", | ||
prev: "上一页", | ||
next: "下一页", | ||
lastUpdated: "上次编辑于", | ||
contributors: "贡献者", | ||
editLink: "编辑此页", | ||
print: "打印", | ||
}, | ||
|
||
blogLocales: { | ||
article: "文章", | ||
articleList: "文章列表", | ||
category: "分类", | ||
tag: "标签", | ||
timeline: "时间轴", | ||
timelineTitle: "昨日不在", | ||
all: "全部", | ||
intro: "个人介绍", | ||
star: "收藏", | ||
}, | ||
|
||
paginationLocales: { | ||
prev: "上一页", | ||
next: "下一页", | ||
navigate: "跳转到", | ||
action: "前往", | ||
errorText: "请输入 1 到 $page 之前的页码!", | ||
}, | ||
|
||
outlookLocales: { | ||
themeColor: "主题色", | ||
darkmode: "外观", | ||
fullscreen: "全屏", | ||
}, | ||
|
||
encryptLocales: { | ||
iconLabel: "文章已加密", | ||
placeholder: "输入密码", | ||
remember: "记住密码", | ||
errorHint: "请输入正确的密码", | ||
}, | ||
routeLocales: { | ||
skipToContent: "跳至主要內容", | ||
notFoundTitle: "访问的页面不存在,嘤嘤嘤", | ||
notFoundMsg: [ | ||
"这里什么也没有", | ||
"我们是怎么来到这儿的?", | ||
"这 是 四 零 四 !", | ||
"看起来你访问了一个失效的链接", | ||
], | ||
back: "返回", | ||
home: "首页", | ||
openInNewWindow: "新窗口打开", | ||
}, | ||
} | ||
|
||
/** | ||
* 自定义语言,支持文案 | ||
*/ | ||
export const langConfig = { | ||
"/": localCN | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters