-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.d.ts
52 lines (46 loc) · 1.04 KB
/
index.d.ts
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import { Module } from "i18next";
type AllowedHostsFunction = (hostname: string) => boolean;
export interface LocizeLastusedOptions {
/**
* your locize projectId
*/
projectId: string;
/**
* your locize apikey (only use this in development) to add / update translations
*/
apiKey: string;
/**
* the reference (source) language of your project (default "en")
*/
referenceLng?: string;
/**
* the version of translations to load
*/
version?: string;
/**
* path to post last used information
*/
lastUsedPath?: string;
/**
* allow cross domain requests
*/
crossDomain?: boolean;
/**
* set JSON as content type
*/
setContentTypeJSON?: boolean;
/**
* hostnames that are allowed to create & update keys
*/
allowedHosts?: string[] | AllowedHostsFunction;
}
declare class LocizeLastusedBackend implements Module
{
static type: "3rdParty";
init(
options?: LocizeLastusedOptions,
): void;
type: "3rdParty";
options: LocizeLastusedOptions;
}
export default LocizeLastusedBackend;