From 9b0e83d9719dd3e97acde94f51e4d69df2ccd1cb Mon Sep 17 00:00:00 2001 From: mei23 Date: Fri, 18 May 2018 10:34:48 +0900 Subject: [PATCH] Fix can't convert i18n docs --- src/client/docs/api/gulpfile.ts | 4 ++-- src/client/docs/gulpfile.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client/docs/api/gulpfile.ts b/src/client/docs/api/gulpfile.ts index 31027c0be..9980ede23 100644 --- a/src/client/docs/api/gulpfile.ts +++ b/src/client/docs/api/gulpfile.ts @@ -127,7 +127,7 @@ gulp.task('doc:api:endpoints', async () => { return; } const i18n = new I18nReplacer(lang); - html = html.replace(i18n.pattern, i18n.replacement.bind(null, null)); + html = html.replace(i18n.pattern, i18n.replacement); html = fa(html); const htmlPath = `./built/client/docs/${lang}/api/endpoints/${ep.endpoint}.html`; mkdirp(path.dirname(htmlPath), (mkdirErr) => { @@ -171,7 +171,7 @@ gulp.task('doc:api:entities', async () => { return; } const i18n = new I18nReplacer(lang); - html = html.replace(i18n.pattern, i18n.replacement.bind(null, null)); + html = html.replace(i18n.pattern, i18n.replacement); html = fa(html); const htmlPath = `./built/client/docs/${lang}/api/entities/${kebab(entity.name)}.html`; mkdirp(path.dirname(htmlPath), (mkdirErr) => { diff --git a/src/client/docs/gulpfile.ts b/src/client/docs/gulpfile.ts index 5e81d6d3b..56bf6188c 100644 --- a/src/client/docs/gulpfile.ts +++ b/src/client/docs/gulpfile.ts @@ -53,7 +53,7 @@ gulp.task('doc:docs', async () => { return; } const i18n = new I18nReplacer(lang); - html = html.replace(i18n.pattern, i18n.replacement.bind(null, null)); + html = html.replace(i18n.pattern, i18n.replacement); html = fa(html); const htmlPath = `./built/client/docs/${lang}/${name}.html`; mkdirp(path.dirname(htmlPath), (mkdirErr) => {