Create type definition for ./locales (#4117)
This commit is contained in:
parent
c4f7491322
commit
5891135ac1
|
@ -0,0 +1,5 @@
|
|||
type Locale = { [key: string]: string };
|
||||
|
||||
declare const locales: { [lang: string]: Locale };
|
||||
|
||||
export default locales;
|
|
@ -16,7 +16,7 @@ import config from '../../config';
|
|||
import { licenseHtml } from '../../misc/license';
|
||||
const constants = require('../../const.json');
|
||||
import endpoints from '../api/endpoints';
|
||||
const locales = require('../../../locales');
|
||||
import locales from '../../../locales';
|
||||
import * as nestedProperty from 'nested-property';
|
||||
|
||||
function getLang(lang: string): string {
|
||||
|
|
Loading…
Reference in New Issue