summaryrefslogtreecommitdiff
path: root/src/client/docs/api/gulpfile.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2018-05-18 15:34:38 +0900
committerGitHub <noreply@github.com>2018-05-18 15:34:38 +0900
commit0d0c45a4cfa541c2d2d4abc2a332ee06ff8e89ef (patch)
treebb848206ce941fdf784418ad18060522d51eec18 /src/client/docs/api/gulpfile.ts
parentNew translations ja.yml (Korean) (diff)
parent2.10.0 (diff)
downloadmisskey-0d0c45a4cfa541c2d2d4abc2a332ee06ff8e89ef.tar.gz
misskey-0d0c45a4cfa541c2d2d4abc2a332ee06ff8e89ef.tar.bz2
misskey-0d0c45a4cfa541c2d2d4abc2a332ee06ff8e89ef.zip
Merge branch 'master' into l10n_master
Diffstat (limited to 'src/client/docs/api/gulpfile.ts')
-rw-r--r--src/client/docs/api/gulpfile.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/docs/api/gulpfile.ts b/src/client/docs/api/gulpfile.ts
index 31027c0be3..9980ede231 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) => {