Skip to content

Commit 2c5e19f

Browse files
committed
feat(locale): add zh-cn
1 parent d10933f commit 2c5e19f

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

bin/locales/zh.json

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"usageDesc": "例子",
3+
"commandInitDesc": "创建 docs",
4+
"commandInitOptionLocalDesc": "拷贝 docsify 到本地",
5+
"commandInitOptionThemeDesc": "选择主题",
6+
"commandServeDesc": "本地预览",
7+
"commandServeOptionPortDesc": "端口",
8+
"optionHelpDesc": "帮助",
9+
"optionVersionDesc": "当先版本号",
10+
"epilogDesc": "文档"
11+
}

lib/commands/serve.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module.exports = function (path, port) {
1313
var indexFile = resolve(path, 'index.html')
1414

1515
if (!exists(indexFile)) {
16-
const msg = '\nNo docs found, please run ' + chalk.inverse('docsify init') + ' first.\n'
16+
const msg = '\nNo docs found, please run ' + chalk.green('docsify init') + ' first.\n'
1717
console.log(msg)
1818
process.exit(0)
1919
}
@@ -27,7 +27,7 @@ module.exports = function (path, port) {
2727
exts: ['md']
2828
}).watch(path)
2929

30-
const msg = '\nServing ' + chalk.inverse(`${path}`) + ' now.\n' +
31-
'Listening at ' + chalk.inverse(`http://localhost:${port}`) + '\n'
30+
const msg = '\nServing ' + chalk.green(`${path}`) + ' now.\n' +
31+
'Listening at ' + chalk.green(`http://localhost:${port}`) + '\n'
3232
console.log(msg)
3333
}

0 commit comments

Comments
 (0)