mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-25 05:29:07 +01:00
Create type definition for ./locales (#4117)
This commit is contained in:
parent
6822b908bf
commit
97db296887
5
locales/index.d.ts
vendored
Normal file
5
locales/index.d.ts
vendored
Normal file
@ -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';
|
import { licenseHtml } from '../../misc/license';
|
||||||
const constants = require('../../const.json');
|
const constants = require('../../const.json');
|
||||||
import endpoints from '../api/endpoints';
|
import endpoints from '../api/endpoints';
|
||||||
const locales = require('../../../locales');
|
import locales from '../../../locales';
|
||||||
import * as nestedProperty from 'nested-property';
|
import * as nestedProperty from 'nested-property';
|
||||||
|
|
||||||
function getLang(lang: string): string {
|
function getLang(lang: string): string {
|
||||||
|
Loading…
Reference in New Issue
Block a user