-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.d.ts
More file actions
34 lines (23 loc) · 761 Bytes
/
index.d.ts
File metadata and controls
34 lines (23 loc) · 761 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
declare module "oftn-l10n" {
export interface LocalizationOptions {
path?: string;
lang?: string;
}
export interface Localization {
[key: string]: {
[key: string]: string | undefined;
} | string | undefined;
}
export interface LocalizationTargetProxy {
[key: string]: string;
}
export class Localizer {
constructor(options: LocalizationOptions);
apply(options: LocalizationOptions): void;
getLocalization(filename: string): Localization;
load(filename: string, from: string, recurse: boolean): void;
get(name: string): string;
}
export function proxy(options_argument: LocalizationOptions): LocalizationTargetProxy;
export function format(format: string, ...args: string[]): string;
}