diff --git a/locales/index.d.ts b/locales/index.d.ts index 4a9672c63f..fe3edb445b 100644 --- a/locales/index.d.ts +++ b/locales/index.d.ts @@ -1,5 +1,3 @@ -type Locale = { [key: string]: string }; +declare const locales: { [lang: string]: any }; -declare const locales: { [lang: string]: Locale }; - -export default locales; +export = locales; diff --git a/src/server/web/docs.ts b/src/server/web/docs.ts index dd37b9821f..5777c03e70 100644 --- a/src/server/web/docs.ts +++ b/src/server/web/docs.ts @@ -16,7 +16,7 @@ import config from '../../config'; import { licenseHtml } from '../../misc/license'; import { copyright } from '../../const.json'; import endpoints from '../api/endpoints'; -import locales from '../../../locales'; +import * as locales from '../../../locales'; import * as nestedProperty from 'nested-property'; function getLang(lang: string): string {