Add custom language support feature. - #253
Conversation
| var lang = this.config.language; | ||
| var i18n = this.theme.i18n; | ||
|
|
||
| function mergeLang(lang) { |
There was a problem hiding this comment.
Function declarations should not be placed in blocks. Use a function expression or move the statement to the top of the outer function.
| @@ -1,4 +1,4 @@ | |||
| /* global hexo */ | |||
| 'use strict'; | |||
There was a problem hiding this comment.
Use the function form of "use strict".
| @@ -1,5 +1,7 @@ | |||
| /* global hexo */ | |||
|
|
|||
| 'use strict'; | |||
There was a problem hiding this comment.
Use the function form of "use strict".
|
I couldn't find a |
stickler-ci
left a comment
There was a problem hiding this comment.
Your eslint config file is missing or invalid. Please ensure that ./eslintrc.json exists and is valid.
stickler-ci
left a comment
There was a problem hiding this comment.
Your eslint config file is missing or invalid. Please ensure that ./eslintrc.json exists and is valid.
stickler-ci
left a comment
There was a problem hiding this comment.
Your eslint config file is missing or invalid. Please ensure that ./eslintrc.json exists and is valid.
| hexo.on('generateBefore', function() { | ||
| if (hexo.locals.get) { | ||
| var data = hexo.locals.get('data'); | ||
| /** |
There was a problem hiding this comment.
Expected line before comment. (lines-around-comment)
stickler-ci
left a comment
There was a problem hiding this comment.
Your ESLint configuration is not valid, and output the following errors:
Cannot read config file: /src/index.js
Error: Cannot find module '/src/index.js'
Error: Cannot read config file: /src/index.js
Error: Cannot find module '/src/index.js'
at Function.Module._resolveFilename (module.js:538:15)
stickler-ci
left a comment
There was a problem hiding this comment.
Your ESLint configuration is not valid, and output the following errors:
Cannot read config file: /src/https:/github.com/theme-next/eslint-config-theme-next/index.js
Error: Cannot find module '/src/https:/github.com/theme-next/eslint-config-theme-next/index.js'
Error: Cannot read config file: /src/https:/github.com/theme-next/eslint-config-theme-next/index.js
Error: Cannot find module '/src/https:/github.com/theme-next/eslint-config-theme-next/index.js'
at Function.Module._resolveFilename (module.js:538:15)
hexo/source/_data/languages.ymlYou can replace any string in NexT, see
hexo-theme-next/languages/en.ymlfor all possible strings.