Skip to content

Commit

Permalink
feat(locale): add zh-cn
Browse files Browse the repository at this point in the history
  • Loading branch information
QingWei-Li committed Mar 14, 2017
1 parent d10933f commit 2c5e19f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
11 changes: 11 additions & 0 deletions bin/locales/zh.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"usageDesc": "例子",
"commandInitDesc": "创建 docs",
"commandInitOptionLocalDesc": "拷贝 docsify 到本地",
"commandInitOptionThemeDesc": "选择主题",
"commandServeDesc": "本地预览",
"commandServeOptionPortDesc": "端口",
"optionHelpDesc": "帮助",
"optionVersionDesc": "当先版本号",
"epilogDesc": "文档"
}
6 changes: 3 additions & 3 deletions lib/commands/serve.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = function (path, port) {
var indexFile = resolve(path, 'index.html')

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

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

0 comments on commit 2c5e19f

Please sign in to comment.