-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.d.ts
53 lines (49 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
53
import { Locale } from 'vue-i18n-locale-message'
/**
* POEditor Provider configuration for vue-i18n-locale-message CLI --conf option
* e.g.
* {
* "provider": {
* "token": "xxx",
* "id": "12345"
* }
* }
*/
export type POEditorProviderConfiguration = {
/**
* project id
*/
id: string
/**
* API token.
* if it's ommitted, use the value of `POEDITOR_API_TOKEN` ENV.
*/
token?: string
/**
* API call interval (due to limit for API calling, see https://poeditor.com/docs/api_rates).
* if it's omitted, internally set 30 sec as default.
*/
interval?: number
/**
* Normalize locale messages file indend, default indent 2 space
*/
indent?: number
}
export type POEditorLocaleMessage = {
term: string
definition: string
context: string
term_plural: string
reference: string
comment: string
}
export type POEditorLanguage = {
name: string
code: string
translations: number
percentage: number
}
export type UploadFileInfo = {
locale: Locale
path: string
}