massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-json / node_modules / vscode-nls / lib / main.d.ts
1 export declare enum MessageFormat {\r
2     file = "file",\r
3     bundle = "bundle",\r
4     both = "both"\r
5 }\r
6 export declare enum BundleFormat {\r
7     standalone = "standalone",\r
8     languagePack = "languagePack"\r
9 }\r
10 export interface Options {\r
11     locale?: string;\r
12     cacheLanguageResolution?: boolean;\r
13     messageFormat?: MessageFormat;\r
14     bundleFormat?: BundleFormat;\r
15 }\r
16 export interface LocalizeInfo {\r
17     key: string;\r
18     comment: string[];\r
19 }\r
20 export interface LocalizeFunc {\r
21     (info: LocalizeInfo, message: string, ...args: (string | number | boolean | undefined | null)[]): string;\r
22     (key: string, message: string, ...args: (string | number | boolean | undefined | null)[]): string;\r
23 }\r
24 export interface LoadFunc {\r
25     (file?: string): LocalizeFunc;\r
26 }\r
27 export declare type KeyInfo = string | LocalizeInfo;\r
28 export declare function loadMessageBundle(file?: string): LocalizeFunc;\r
29 export declare function config(opts?: Options): LoadFunc;\r