@maz-ui/translations 4.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +262 -0
- package/dist/chunks/de.mjs +81 -0
- package/dist/chunks/en.mjs +144 -0
- package/dist/chunks/es.mjs +81 -0
- package/dist/chunks/fr.mjs +81 -0
- package/dist/chunks/it.mjs +81 -0
- package/dist/chunks/ja.mjs +81 -0
- package/dist/chunks/pt.mjs +81 -0
- package/dist/chunks/zh-CN.mjs +81 -0
- package/dist/index.d.mts +202 -0
- package/dist/index.d.ts +202 -0
- package/dist/index.mjs +184 -0
- package/package.json +66 -0
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
const it = {
|
|
2
|
+
selectCountry: {
|
|
3
|
+
searchPlaceholder: "Cerca paese"
|
|
4
|
+
},
|
|
5
|
+
inputPhoneNumber: {
|
|
6
|
+
countrySelect: {
|
|
7
|
+
placeholder: "Codice paese",
|
|
8
|
+
error: "Scegli paese",
|
|
9
|
+
searchPlaceholder: "Cerca paese"
|
|
10
|
+
},
|
|
11
|
+
phoneInput: {
|
|
12
|
+
placeholder: "Numero di telefono",
|
|
13
|
+
example: "Esempio: {example}"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
dropzone: {
|
|
17
|
+
dragAndDrop: "Trascina i tuoi file",
|
|
18
|
+
selectFile: "Seleziona file",
|
|
19
|
+
divider: "o",
|
|
20
|
+
fileMaxCount: "Massimo {count} file",
|
|
21
|
+
fileMaxSize: "Massimo {size} MB",
|
|
22
|
+
fileTypes: "Tipi di file consentiti: {types}"
|
|
23
|
+
},
|
|
24
|
+
datePicker: {
|
|
25
|
+
shortcuts: {
|
|
26
|
+
lastSevenDays: "Ultimi 7 giorni",
|
|
27
|
+
lastThirtyDays: "Ultimi 30 giorni",
|
|
28
|
+
thisWeek: "Questa settimana",
|
|
29
|
+
lastWeek: "Settimana scorsa",
|
|
30
|
+
thisMonth: "Questo mese",
|
|
31
|
+
thisYear: "Quest'anno",
|
|
32
|
+
lastYear: "Anno scorso"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
dropdown: {
|
|
36
|
+
screenReaderDescription: "Apri menu a discesa"
|
|
37
|
+
},
|
|
38
|
+
select: {
|
|
39
|
+
searchPlaceholder: "Cerca"
|
|
40
|
+
},
|
|
41
|
+
table: {
|
|
42
|
+
noResults: "Nessun risultato",
|
|
43
|
+
actionColumnTitle: "Azioni",
|
|
44
|
+
searchByInput: {
|
|
45
|
+
all: "Tutti",
|
|
46
|
+
placeholder: "Cerca per"
|
|
47
|
+
},
|
|
48
|
+
searchInput: {
|
|
49
|
+
placeholder: "Cerca"
|
|
50
|
+
},
|
|
51
|
+
pagination: {
|
|
52
|
+
all: "Tutti",
|
|
53
|
+
rowsPerPage: "Righe per pagina",
|
|
54
|
+
of: "di"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
pagination: {
|
|
58
|
+
navAriaLabel: "navigazione pagine",
|
|
59
|
+
screenReader: {
|
|
60
|
+
firstPage: "Prima pagina, pagina {page}",
|
|
61
|
+
previousPage: "Pagina precedente, pagina {page}",
|
|
62
|
+
page: "Pagina {page}",
|
|
63
|
+
nextPage: "Pagina successiva, pagina {page}",
|
|
64
|
+
lastPage: "Ultima pagina, pagina {page}"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
carousel: {
|
|
68
|
+
ariaLabel: {
|
|
69
|
+
previousButton: "Scorri agli elementi precedenti",
|
|
70
|
+
nextButton: "Scorri agli elementi successivi"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
checklist: {
|
|
74
|
+
noResultsFound: "Nessun risultato trovato",
|
|
75
|
+
searchInput: {
|
|
76
|
+
placeholder: "Cerca"
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
export { it as default };
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
const ja = {
|
|
2
|
+
selectCountry: {
|
|
3
|
+
searchPlaceholder: "\u56FD\u3092\u691C\u7D22"
|
|
4
|
+
},
|
|
5
|
+
inputPhoneNumber: {
|
|
6
|
+
countrySelect: {
|
|
7
|
+
placeholder: "\u56FD\u756A\u53F7",
|
|
8
|
+
error: "\u56FD\u3092\u9078\u629E",
|
|
9
|
+
searchPlaceholder: "\u56FD\u3092\u691C\u7D22"
|
|
10
|
+
},
|
|
11
|
+
phoneInput: {
|
|
12
|
+
placeholder: "\u96FB\u8A71\u756A\u53F7",
|
|
13
|
+
example: "\u4F8B\uFF1A{example}"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
dropzone: {
|
|
17
|
+
dragAndDrop: "\u30D5\u30A1\u30A4\u30EB\u3092\u30C9\u30ED\u30C3\u30D7",
|
|
18
|
+
selectFile: "\u30D5\u30A1\u30A4\u30EB\u3092\u9078\u629E",
|
|
19
|
+
divider: "\u307E\u305F\u306F",
|
|
20
|
+
fileMaxCount: "\u6700\u5927 {count} \u30D5\u30A1\u30A4\u30EB",
|
|
21
|
+
fileMaxSize: "\u6700\u5927 {size} MB",
|
|
22
|
+
fileTypes: "\u8A31\u53EF\u3055\u308C\u308B\u30D5\u30A1\u30A4\u30EB\u30BF\u30A4\u30D7\uFF1A{types}"
|
|
23
|
+
},
|
|
24
|
+
datePicker: {
|
|
25
|
+
shortcuts: {
|
|
26
|
+
lastSevenDays: "\u904E\u53BB7\u65E5\u9593",
|
|
27
|
+
lastThirtyDays: "\u904E\u53BB30\u65E5\u9593",
|
|
28
|
+
thisWeek: "\u4ECA\u9031",
|
|
29
|
+
lastWeek: "\u5148\u9031",
|
|
30
|
+
thisMonth: "\u4ECA\u6708",
|
|
31
|
+
thisYear: "\u4ECA\u5E74",
|
|
32
|
+
lastYear: "\u6628\u5E74"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
dropdown: {
|
|
36
|
+
screenReaderDescription: "\u30C9\u30ED\u30C3\u30D7\u30C0\u30A6\u30F3\u30E1\u30CB\u30E5\u30FC\u3092\u958B\u304F"
|
|
37
|
+
},
|
|
38
|
+
select: {
|
|
39
|
+
searchPlaceholder: "\u691C\u7D22"
|
|
40
|
+
},
|
|
41
|
+
table: {
|
|
42
|
+
noResults: "\u7D50\u679C\u306A\u3057",
|
|
43
|
+
actionColumnTitle: "\u30A2\u30AF\u30B7\u30E7\u30F3",
|
|
44
|
+
searchByInput: {
|
|
45
|
+
all: "\u3059\u3079\u3066",
|
|
46
|
+
placeholder: "\u691C\u7D22\u6761\u4EF6"
|
|
47
|
+
},
|
|
48
|
+
searchInput: {
|
|
49
|
+
placeholder: "\u691C\u7D22"
|
|
50
|
+
},
|
|
51
|
+
pagination: {
|
|
52
|
+
all: "\u3059\u3079\u3066",
|
|
53
|
+
rowsPerPage: "\u30DA\u30FC\u30B8\u3042\u305F\u308A\u306E\u884C\u6570",
|
|
54
|
+
of: "/"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
pagination: {
|
|
58
|
+
navAriaLabel: "\u30DA\u30FC\u30B8\u30CA\u30D3\u30B2\u30FC\u30B7\u30E7\u30F3",
|
|
59
|
+
screenReader: {
|
|
60
|
+
firstPage: "\u6700\u521D\u306E\u30DA\u30FC\u30B8\u3001\u30DA\u30FC\u30B8 {page}",
|
|
61
|
+
previousPage: "\u524D\u306E\u30DA\u30FC\u30B8\u3001\u30DA\u30FC\u30B8 {page}",
|
|
62
|
+
page: "\u30DA\u30FC\u30B8 {page}",
|
|
63
|
+
nextPage: "\u6B21\u306E\u30DA\u30FC\u30B8\u3001\u30DA\u30FC\u30B8 {page}",
|
|
64
|
+
lastPage: "\u6700\u5F8C\u306E\u30DA\u30FC\u30B8\u3001\u30DA\u30FC\u30B8 {page}"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
carousel: {
|
|
68
|
+
ariaLabel: {
|
|
69
|
+
previousButton: "\u524D\u306E\u30A2\u30A4\u30C6\u30E0\u306B\u30B9\u30AF\u30ED\u30FC\u30EB",
|
|
70
|
+
nextButton: "\u6B21\u306E\u30A2\u30A4\u30C6\u30E0\u306B\u30B9\u30AF\u30ED\u30FC\u30EB"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
checklist: {
|
|
74
|
+
noResultsFound: "\u7D50\u679C\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093",
|
|
75
|
+
searchInput: {
|
|
76
|
+
placeholder: "\u691C\u7D22"
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
export { ja as default };
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
const pt = {
|
|
2
|
+
selectCountry: {
|
|
3
|
+
searchPlaceholder: "Pesquisar pa\xEDs"
|
|
4
|
+
},
|
|
5
|
+
inputPhoneNumber: {
|
|
6
|
+
countrySelect: {
|
|
7
|
+
placeholder: "C\xF3digo do pa\xEDs",
|
|
8
|
+
error: "Escolher pa\xEDs",
|
|
9
|
+
searchPlaceholder: "Pesquisar pa\xEDs"
|
|
10
|
+
},
|
|
11
|
+
phoneInput: {
|
|
12
|
+
placeholder: "N\xFAmero de telefone",
|
|
13
|
+
example: "Exemplo: {example}"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
dropzone: {
|
|
17
|
+
dragAndDrop: "Solte seus arquivos",
|
|
18
|
+
selectFile: "Selecionar arquivo",
|
|
19
|
+
divider: "ou",
|
|
20
|
+
fileMaxCount: "M\xE1ximo {count} arquivos",
|
|
21
|
+
fileMaxSize: "M\xE1ximo {size} MB",
|
|
22
|
+
fileTypes: "Tipos de arquivo permitidos: {types}"
|
|
23
|
+
},
|
|
24
|
+
datePicker: {
|
|
25
|
+
shortcuts: {
|
|
26
|
+
lastSevenDays: "\xDAltimos 7 dias",
|
|
27
|
+
lastThirtyDays: "\xDAltimos 30 dias",
|
|
28
|
+
thisWeek: "Esta semana",
|
|
29
|
+
lastWeek: "Semana passada",
|
|
30
|
+
thisMonth: "Este m\xEAs",
|
|
31
|
+
thisYear: "Este ano",
|
|
32
|
+
lastYear: "Ano passado"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
dropdown: {
|
|
36
|
+
screenReaderDescription: "Abrir menu suspenso"
|
|
37
|
+
},
|
|
38
|
+
select: {
|
|
39
|
+
searchPlaceholder: "Pesquisar"
|
|
40
|
+
},
|
|
41
|
+
table: {
|
|
42
|
+
noResults: "Sem resultados",
|
|
43
|
+
actionColumnTitle: "A\xE7\xF5es",
|
|
44
|
+
searchByInput: {
|
|
45
|
+
all: "Todos",
|
|
46
|
+
placeholder: "Pesquisar por"
|
|
47
|
+
},
|
|
48
|
+
searchInput: {
|
|
49
|
+
placeholder: "Pesquisar"
|
|
50
|
+
},
|
|
51
|
+
pagination: {
|
|
52
|
+
all: "Todos",
|
|
53
|
+
rowsPerPage: "Linhas por p\xE1gina",
|
|
54
|
+
of: "de"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
pagination: {
|
|
58
|
+
navAriaLabel: "navega\xE7\xE3o de p\xE1ginas",
|
|
59
|
+
screenReader: {
|
|
60
|
+
firstPage: "Primeira p\xE1gina, p\xE1gina {page}",
|
|
61
|
+
previousPage: "P\xE1gina anterior, p\xE1gina {page}",
|
|
62
|
+
page: "P\xE1gina {page}",
|
|
63
|
+
nextPage: "Pr\xF3xima p\xE1gina, p\xE1gina {page}",
|
|
64
|
+
lastPage: "\xDAltima p\xE1gina, p\xE1gina {page}"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
carousel: {
|
|
68
|
+
ariaLabel: {
|
|
69
|
+
previousButton: "Rolar para itens anteriores",
|
|
70
|
+
nextButton: "Rolar para pr\xF3ximos itens"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
checklist: {
|
|
74
|
+
noResultsFound: "Nenhum resultado encontrado",
|
|
75
|
+
searchInput: {
|
|
76
|
+
placeholder: "Pesquisar"
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
export { pt as default };
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
const zhCN = {
|
|
2
|
+
selectCountry: {
|
|
3
|
+
searchPlaceholder: "\u641C\u7D22\u56FD\u5BB6"
|
|
4
|
+
},
|
|
5
|
+
inputPhoneNumber: {
|
|
6
|
+
countrySelect: {
|
|
7
|
+
placeholder: "\u56FD\u5BB6\u4EE3\u7801",
|
|
8
|
+
error: "\u9009\u62E9\u56FD\u5BB6",
|
|
9
|
+
searchPlaceholder: "\u641C\u7D22\u56FD\u5BB6"
|
|
10
|
+
},
|
|
11
|
+
phoneInput: {
|
|
12
|
+
placeholder: "\u7535\u8BDD\u53F7\u7801",
|
|
13
|
+
example: "\u793A\u4F8B\uFF1A{example}"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
dropzone: {
|
|
17
|
+
dragAndDrop: "\u62D6\u653E\u6587\u4EF6",
|
|
18
|
+
selectFile: "\u9009\u62E9\u6587\u4EF6",
|
|
19
|
+
divider: "\u6216",
|
|
20
|
+
fileMaxCount: "\u6700\u591A {count} \u4E2A\u6587\u4EF6",
|
|
21
|
+
fileMaxSize: "\u6700\u5927 {size} MB",
|
|
22
|
+
fileTypes: "\u5141\u8BB8\u7684\u6587\u4EF6\u7C7B\u578B\uFF1A{types}"
|
|
23
|
+
},
|
|
24
|
+
datePicker: {
|
|
25
|
+
shortcuts: {
|
|
26
|
+
lastSevenDays: "\u6700\u8FD17\u5929",
|
|
27
|
+
lastThirtyDays: "\u6700\u8FD130\u5929",
|
|
28
|
+
thisWeek: "\u672C\u5468",
|
|
29
|
+
lastWeek: "\u4E0A\u5468",
|
|
30
|
+
thisMonth: "\u672C\u6708",
|
|
31
|
+
thisYear: "\u4ECA\u5E74",
|
|
32
|
+
lastYear: "\u53BB\u5E74"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
dropdown: {
|
|
36
|
+
screenReaderDescription: "\u6253\u5F00\u4E0B\u62C9\u83DC\u5355"
|
|
37
|
+
},
|
|
38
|
+
select: {
|
|
39
|
+
searchPlaceholder: "\u641C\u7D22"
|
|
40
|
+
},
|
|
41
|
+
table: {
|
|
42
|
+
noResults: "\u65E0\u7ED3\u679C",
|
|
43
|
+
actionColumnTitle: "\u64CD\u4F5C",
|
|
44
|
+
searchByInput: {
|
|
45
|
+
all: "\u5168\u90E8",
|
|
46
|
+
placeholder: "\u641C\u7D22\u6761\u4EF6"
|
|
47
|
+
},
|
|
48
|
+
searchInput: {
|
|
49
|
+
placeholder: "\u641C\u7D22"
|
|
50
|
+
},
|
|
51
|
+
pagination: {
|
|
52
|
+
all: "\u5168\u90E8",
|
|
53
|
+
rowsPerPage: "\u6BCF\u9875\u884C\u6570",
|
|
54
|
+
of: "\u5171"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
pagination: {
|
|
58
|
+
navAriaLabel: "\u9875\u9762\u5BFC\u822A",
|
|
59
|
+
screenReader: {
|
|
60
|
+
firstPage: "\u7B2C\u4E00\u9875\uFF0C\u7B2C {page} \u9875",
|
|
61
|
+
previousPage: "\u4E0A\u4E00\u9875\uFF0C\u7B2C {page} \u9875",
|
|
62
|
+
page: "\u7B2C {page} \u9875",
|
|
63
|
+
nextPage: "\u4E0B\u4E00\u9875\uFF0C\u7B2C {page} \u9875",
|
|
64
|
+
lastPage: "\u6700\u540E\u4E00\u9875\uFF0C\u7B2C {page} \u9875"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
carousel: {
|
|
68
|
+
ariaLabel: {
|
|
69
|
+
previousButton: "\u6EDA\u52A8\u5230\u4E0A\u4E00\u9879",
|
|
70
|
+
nextButton: "\u6EDA\u52A8\u5230\u4E0B\u4E00\u9879"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
checklist: {
|
|
74
|
+
noResultsFound: "\u672A\u627E\u5230\u7ED3\u679C",
|
|
75
|
+
searchInput: {
|
|
76
|
+
placeholder: "\u641C\u7D22"
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
export { zhCN as default };
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
import { Ref, App } from 'vue';
|
|
3
|
+
|
|
4
|
+
type DeepKeyOf<T> = T extends object ? {
|
|
5
|
+
[K in keyof T]: K extends string ? T[K] extends object ? `${K}.${DeepKeyOf<T[K]>}` : K : never;
|
|
6
|
+
}[keyof T] : never;
|
|
7
|
+
|
|
8
|
+
type DeepPartial<T> = T extends object ? {
|
|
9
|
+
[P in keyof T]?: DeepPartial<T[P]>;
|
|
10
|
+
} : T;
|
|
11
|
+
|
|
12
|
+
type FlattenObjectKeys<T extends Record<string, any>, Prefix extends string = ''> = {
|
|
13
|
+
[K in keyof T]: T[K] extends Record<string, any> ? FlattenObjectKeys<T[K], `${Prefix}${K extends string ? K : ''}.`> : `${Prefix}${K extends string ? K : ''}`;
|
|
14
|
+
}[keyof T];
|
|
15
|
+
|
|
16
|
+
declare const _default: {
|
|
17
|
+
/**
|
|
18
|
+
* This is the translation for the input phone number component.
|
|
19
|
+
* The keys are:
|
|
20
|
+
* - countrySelect: The translation for the country select.
|
|
21
|
+
* - phoneInput: The translation for the phone input.
|
|
22
|
+
*/
|
|
23
|
+
selectCountry: {
|
|
24
|
+
searchPlaceholder: string;
|
|
25
|
+
};
|
|
26
|
+
inputPhoneNumber: {
|
|
27
|
+
/**
|
|
28
|
+
* This is the translation for the country select component.
|
|
29
|
+
* The keys are:
|
|
30
|
+
* - placeholder: The translation for the placeholder text.
|
|
31
|
+
* - error: The translation for the error text.
|
|
32
|
+
* - searchPlaceholder: The translation for the search placeholder text.
|
|
33
|
+
*/
|
|
34
|
+
countrySelect: {
|
|
35
|
+
placeholder: string;
|
|
36
|
+
error: string;
|
|
37
|
+
searchPlaceholder: string;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* This is the translation for the phone input component.
|
|
41
|
+
* The keys are:
|
|
42
|
+
* - placeholder: The translation for the placeholder text.
|
|
43
|
+
* - example: The translation for the example text.
|
|
44
|
+
*/
|
|
45
|
+
phoneInput: {
|
|
46
|
+
placeholder: string;
|
|
47
|
+
example: string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* This is the translation for the dropzone component.
|
|
52
|
+
* The keys are:
|
|
53
|
+
* - dragAndDrop: The translation for the drag and drop text.
|
|
54
|
+
* - selectFile: The translation for the select file button.
|
|
55
|
+
* - divider: The translation for the divider text.
|
|
56
|
+
* - fileMaxCount: The translation for the maximum number of files.
|
|
57
|
+
* - fileMaxSize: The translation for the maximum size of the files.
|
|
58
|
+
* - fileTypes: The translation for the allowed file types.
|
|
59
|
+
*/
|
|
60
|
+
dropzone: {
|
|
61
|
+
dragAndDrop: string;
|
|
62
|
+
selectFile: string;
|
|
63
|
+
divider: string;
|
|
64
|
+
fileMaxCount: string;
|
|
65
|
+
fileMaxSize: string;
|
|
66
|
+
fileTypes: string;
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* This is the translation for the date picker component.
|
|
70
|
+
* The keys are:
|
|
71
|
+
* - shortcuts: The translation for the shortcuts.
|
|
72
|
+
*/
|
|
73
|
+
datePicker: {
|
|
74
|
+
shortcuts: {
|
|
75
|
+
lastSevenDays: string;
|
|
76
|
+
lastThirtyDays: string;
|
|
77
|
+
thisWeek: string;
|
|
78
|
+
lastWeek: string;
|
|
79
|
+
thisMonth: string;
|
|
80
|
+
thisYear: string;
|
|
81
|
+
lastYear: string;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* This is the translation for the dropdown component.
|
|
86
|
+
* The keys are:
|
|
87
|
+
* - screenReaderDescription: The translation for the screen reader description.
|
|
88
|
+
*/
|
|
89
|
+
dropdown: {
|
|
90
|
+
screenReaderDescription: string;
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* This is the translation for the select component.
|
|
94
|
+
* The keys are:
|
|
95
|
+
* - searchPlaceholder: The translation for the search placeholder text.
|
|
96
|
+
*/
|
|
97
|
+
select: {
|
|
98
|
+
searchPlaceholder: string;
|
|
99
|
+
};
|
|
100
|
+
/**
|
|
101
|
+
* This is the translation for the table component.
|
|
102
|
+
* The keys are:
|
|
103
|
+
* - noResults: The translation for the no results text.
|
|
104
|
+
* - actionColumnTitle: The translation for the action column title.
|
|
105
|
+
* - searchByInput: The translation for the search by input.
|
|
106
|
+
* - searchInput: The translation for the search input.
|
|
107
|
+
* - pagination: The translation for the pagination component.
|
|
108
|
+
*/
|
|
109
|
+
table: {
|
|
110
|
+
noResults: string;
|
|
111
|
+
actionColumnTitle: string;
|
|
112
|
+
searchByInput: {
|
|
113
|
+
all: string;
|
|
114
|
+
placeholder: string;
|
|
115
|
+
};
|
|
116
|
+
searchInput: {
|
|
117
|
+
placeholder: string;
|
|
118
|
+
};
|
|
119
|
+
pagination: {
|
|
120
|
+
all: string;
|
|
121
|
+
rowsPerPage: string;
|
|
122
|
+
of: string;
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
/**
|
|
126
|
+
* This is the translation for the pagination component.
|
|
127
|
+
* The keys are:
|
|
128
|
+
* - navAriaLabel: The aria-label for the navigation (nav) element.
|
|
129
|
+
* - screenReader.firstPage: The translation for the first page button (screen reader).
|
|
130
|
+
* - screenReader.previousPage: The translation for the previous page button (screen reader).
|
|
131
|
+
* - screenReader.page: The translation for the current page button (screen reader).
|
|
132
|
+
* - screenReader.nextPage: The translation for the next page button (screen reader).
|
|
133
|
+
* - screenReader.lastPage: The translation for the last page button (screen reader).
|
|
134
|
+
*/
|
|
135
|
+
pagination: {
|
|
136
|
+
navAriaLabel: string;
|
|
137
|
+
screenReader: {
|
|
138
|
+
firstPage: string;
|
|
139
|
+
previousPage: string;
|
|
140
|
+
page: string;
|
|
141
|
+
nextPage: string;
|
|
142
|
+
lastPage: string;
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
carousel: {
|
|
146
|
+
ariaLabel: {
|
|
147
|
+
previousButton: string;
|
|
148
|
+
nextButton: string;
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
checklist: {
|
|
152
|
+
noResultsFound: string;
|
|
153
|
+
searchInput: {
|
|
154
|
+
placeholder: string;
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
type TranslationKey = NonNullable<DeepKeyOf<MazTranslationsSchema>>;
|
|
160
|
+
interface MazTranslationsOptions {
|
|
161
|
+
locale?: string;
|
|
162
|
+
fallbackLocale?: string;
|
|
163
|
+
preloadFallback?: boolean;
|
|
164
|
+
messages?: Record<string, MazTranslationsSchema | (() => Promise<MazTranslationsSchema>)>;
|
|
165
|
+
}
|
|
166
|
+
interface MazTranslationsInstance {
|
|
167
|
+
locale: Ref<string>;
|
|
168
|
+
t: (key: TranslationKey, variables?: Record<string, any>) => string;
|
|
169
|
+
setLocale: (locale: string) => Promise<void>;
|
|
170
|
+
}
|
|
171
|
+
type MazTranslationsFlattenSchema = Record<FlattenObjectKeys<typeof _default>, string>;
|
|
172
|
+
type MazTranslationsNestedSchema = typeof _default;
|
|
173
|
+
type MazTranslationsSchema = DeepPartial<MazTranslationsFlattenSchema | MazTranslationsNestedSchema>;
|
|
174
|
+
|
|
175
|
+
declare function createMazTranslations(options?: MazTranslationsOptions): Promise<{
|
|
176
|
+
locale: vue.Ref<string, string>;
|
|
177
|
+
t: (key: TranslationKey, variables?: Record<string, any>) => string;
|
|
178
|
+
setLocale: (newLocale: string) => Promise<void>;
|
|
179
|
+
}>;
|
|
180
|
+
declare function useMazTranslations(): Promise<MazTranslationsInstance>;
|
|
181
|
+
declare function setGlobalMazTranslations(instance: MazTranslationsInstance): void;
|
|
182
|
+
|
|
183
|
+
declare const MazTranslations: {
|
|
184
|
+
install(app: App, options?: MazTranslationsOptions): Promise<{
|
|
185
|
+
locale: vue.Ref<string, string>;
|
|
186
|
+
t: (key: TranslationKey, variables?: Record<string, any>) => string;
|
|
187
|
+
setLocale: (newLocale: string) => Promise<void>;
|
|
188
|
+
}>;
|
|
189
|
+
};
|
|
190
|
+
declare module '@vue/runtime-core' {
|
|
191
|
+
interface ComponentCustomProperties {
|
|
192
|
+
/**
|
|
193
|
+
* Maz translations instance
|
|
194
|
+
*/
|
|
195
|
+
$mazTranslations: MazTranslationsInstance;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
declare function useTranslations(): MazTranslationsInstance;
|
|
200
|
+
|
|
201
|
+
export { MazTranslations, createMazTranslations, setGlobalMazTranslations, useMazTranslations, useTranslations };
|
|
202
|
+
export type { MazTranslationsInstance, MazTranslationsOptions, MazTranslationsSchema };
|