summaryrefslogtreecommitdiff
path: root/src/client/docs/api
diff options
context:
space:
mode:
authormei23 <m@m544.net>2018-05-18 10:34:48 +0900
committermei23 <m@m544.net>2018-05-18 11:00:50 +0900
commit9b0e83d9719dd3e97acde94f51e4d69df2ccd1cb (patch)
tree1850480a07850ec0cdb9159b91d6bfae7d8ef945 /src/client/docs/api
parentUpdate appveyor.yml (diff)
downloadsharkey-9b0e83d9719dd3e97acde94f51e4d69df2ccd1cb.tar.gz
sharkey-9b0e83d9719dd3e97acde94f51e4d69df2ccd1cb.tar.bz2
sharkey-9b0e83d9719dd3e97acde94f51e4d69df2ccd1cb.zip
Fix can't convert i18n docs
Diffstat (limited to 'src/client/docs/api')
-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) => {