forked from lokalise/i18n-ally
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeta.ts
34 lines (28 loc) · 979 Bytes
/
meta.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
export const EXT_NAMESPACE = 'i18n-ally'
export const EXT_ID = 'lokalise.i18n-ally'
export const EXT_NAME = 'i18n Ally'
export const EXT_EDITOR_ID = 'i18n-ally-editor'
export const EXT_REVIEW_ID = 'i18n-ally-review'
export const EXT_LEGACY_NAMESPACE = 'vue-i18n-ally'
export const KEY_REG_DEFAULT = '[\\w\\d\\. \\-\\[\\]\\/:]*?'
export const KEY_REG_ALL = '.*?'
export const QUOTE_SYMBOLS = '\'"`'
export const THROTTLE_DELAY = 800
export const FILEWATCHER_TIMEOUT = 100
export const linkKeyMatcher = /(?:@(?:\.[a-z]+)?:(?:[\w\-_|.]+|\([\w\-_|.]+\)))/g
export const linkKeyPrefixMatcher = /^@(?:\.([a-z]+))?:/
export const bracketsMatcher = /[()]/g
export const linkedKeyModifiers = {
upper: (str: string) => str.toLocaleUpperCase(),
lower: (str: string) => str.toLocaleLowerCase(),
} as Record<string, (str: string) => string>
export const DEFAULT_LOCALE_COUNTRY_MAP = {
en: 'us',
zh: 'cn',
de: 'de',
fr: 'fr',
ja: 'ja',
es: 'es',
vi: 'vn',
lb: 'lu'
}