summaryrefslogtreecommitdiff
path: root/src/server
diff options
context:
space:
mode:
Diffstat (limited to 'src/server')
-rw-r--r--src/server/web/docs.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/server/web/docs.ts b/src/server/web/docs.ts
index 1fd0157795..292f3135b5 100644
--- a/src/server/web/docs.ts
+++ b/src/server/web/docs.ts
@@ -13,7 +13,6 @@ import { Context, ObjectContext } from 'cafy';
import * as glob from 'glob';
import * as yaml from 'js-yaml';
import config from '../../config';
-import I18n from '../../misc/i18n';
import { licenseHtml } from '../../misc/license';
const constants = require('../../const.json');
import endpoints from '../api/endpoints';
@@ -54,8 +53,8 @@ async function genVars(lang: string): Promise<{ [key: string]: any }> {
vars['license'] = licenseHtml;
- const i18n = new I18n(lang);
- vars['i18n'] = (key: string) => i18n.get(null, key);
+ //const i18n = new I18n(lang);
+ //vars['i18n'] = (key: string) => i18n.get(null, key);
return vars;
}