From 2c1a7f43928c03be82f563d4802e378041e8ab1e Mon Sep 17 00:00:00 2001
From: MeiMei <30769358+mei23@users.noreply.github.com>
Date: Mon, 11 Feb 2019 22:37:20 +0900
Subject: [PATCH] Fix #4152 (#4224)

* Fix #4152

* fix

* remove unused code
---
 locales/index.d.ts     | 6 ++----
 src/server/web/docs.ts | 2 +-
 2 files changed, 3 insertions(+), 5 deletions(-)

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 {