diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2018-11-09 03:44:35 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-11-09 03:44:35 +0900 |
| commit | 25a69ec1b69cb7f380949ef9cf1c3599eaa4face (patch) | |
| tree | 6f10016d32f94140d3953446c4b1fdb474e216e8 /src/server/web/docs.ts | |
| parent | Update CircleCI configuration (#3163) (diff) | |
| download | sharkey-25a69ec1b69cb7f380949ef9cf1c3599eaa4face.tar.gz sharkey-25a69ec1b69cb7f380949ef9cf1c3599eaa4face.tar.bz2 sharkey-25a69ec1b69cb7f380949ef9cf1c3599eaa4face.zip | |
Refactoring of i18n (#3165)
Refactoring of i18n
Diffstat (limited to 'src/server/web/docs.ts')
| -rw-r--r-- | src/server/web/docs.ts | 5 |
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; } |