carbon-react 136.0.4 → 137.0.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/esm/locales/de-de.d.ts +3 -0
- package/esm/locales/de-de.js +206 -0
- package/esm/locales/en-ca.d.ts +3 -0
- package/esm/locales/en-ca.js +12 -0
- package/esm/locales/en-us.d.ts +3 -0
- package/esm/locales/en-us.js +12 -0
- package/esm/locales/es-es.d.ts +3 -0
- package/esm/locales/{__internal__/es-es.js → es-es.js} +40 -40
- package/esm/locales/fr-ca.d.ts +3 -0
- package/esm/locales/fr-ca.js +207 -0
- package/esm/locales/fr-fr.d.ts +3 -0
- package/esm/locales/fr-fr.js +207 -0
- package/esm/locales/index.d.ts +7 -1
- package/esm/locales/index.js +7 -1
- package/lib/locales/de-de.d.ts +3 -0
- package/lib/locales/de-de.js +213 -0
- package/lib/locales/en-ca.d.ts +3 -0
- package/lib/locales/en-ca.js +19 -0
- package/lib/locales/en-us.d.ts +3 -0
- package/lib/locales/en-us.js +19 -0
- package/lib/locales/es-es.d.ts +3 -0
- package/lib/locales/{__internal__/es-es.js → es-es.js} +38 -38
- package/lib/locales/fr-ca.d.ts +3 -0
- package/lib/locales/fr-ca.js +214 -0
- package/lib/locales/fr-fr.d.ts +3 -0
- package/lib/locales/fr-fr.js +214 -0
- package/lib/locales/index.d.ts +7 -1
- package/lib/locales/index.js +43 -1
- package/package.json +1 -1
- package/esm/locales/__internal__/es-es.d.ts +0 -3
- package/lib/locales/__internal__/es-es.d.ts +0 -3
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
import deDEDateLocale from "date-fns/locale/de";
|
|
2
|
+
const isSingular = count => (typeof count === "string" ? parseInt(count) : count) === 1;
|
|
3
|
+
const deDE = {
|
|
4
|
+
locale: () => "de-DE",
|
|
5
|
+
actions: {
|
|
6
|
+
edit: () => "Bearbeiten",
|
|
7
|
+
delete: () => "Löschen"
|
|
8
|
+
},
|
|
9
|
+
actionPopover: {
|
|
10
|
+
ariaLabel: () => "Aktionen"
|
|
11
|
+
},
|
|
12
|
+
advancedColorPicker: {
|
|
13
|
+
ariaLabel: () => "Farbe ändern",
|
|
14
|
+
currentColorDescriptionTerm: () => "Aktuell zugewiesene Farbe:",
|
|
15
|
+
currentColorAssigned: currentColor => currentColor
|
|
16
|
+
},
|
|
17
|
+
batchSelection: {
|
|
18
|
+
selected: count => `${count} ausgewählt`
|
|
19
|
+
},
|
|
20
|
+
breadcrumbs: {
|
|
21
|
+
ariaLabel: () => "Breadcrumbs"
|
|
22
|
+
},
|
|
23
|
+
confirm: {
|
|
24
|
+
no: () => "Nein",
|
|
25
|
+
yes: () => "Ja"
|
|
26
|
+
},
|
|
27
|
+
characterCount: {
|
|
28
|
+
tooManyCharacters: formattedCount => `${formattedCount} Zeichen zu viel`,
|
|
29
|
+
charactersLeft: formattedCount => `${formattedCount} Zeichen übrig`,
|
|
30
|
+
visuallyHiddenHint: formattedCount => `Sie können bis zu ${formattedCount} Zeichen eingeben.`
|
|
31
|
+
},
|
|
32
|
+
date: {
|
|
33
|
+
dateFnsLocale: () => deDEDateLocale,
|
|
34
|
+
ariaLabels: {
|
|
35
|
+
previousMonthButton: () => "Vorheriger Monat",
|
|
36
|
+
nextMonthButton: () => "Nächster Monat"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
dialog: {
|
|
40
|
+
ariaLabels: {
|
|
41
|
+
close: () => "Schließen"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
dialogFullScreen: {
|
|
45
|
+
ariaLabels: {
|
|
46
|
+
close: () => "Schließen"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
dismissibleBox: {
|
|
50
|
+
ariaLabels: {
|
|
51
|
+
close: () => "Schließen"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
errors: {
|
|
55
|
+
messages: {
|
|
56
|
+
formSummary: /* istanbul ignore next */
|
|
57
|
+
(errors, warnings, type) => {
|
|
58
|
+
const warningPlural = isSingular(warnings) ? "Warnung" : "Warnungen";
|
|
59
|
+
if (errors && warnings && type === "warning") {
|
|
60
|
+
return ["und", `${warnings} ${warningPlural}`];
|
|
61
|
+
}
|
|
62
|
+
if (errors) {
|
|
63
|
+
return ["Es gibt", `${errors} Fehler`];
|
|
64
|
+
}
|
|
65
|
+
if (warnings) {
|
|
66
|
+
return ["Es gibt", `${warnings} ${warningPlural}`];
|
|
67
|
+
}
|
|
68
|
+
return null;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
fileInput: {
|
|
73
|
+
dragAndDrop: () => "oder per Drag & Drop ablegen",
|
|
74
|
+
selectFile: () => "Datei auswählen",
|
|
75
|
+
fileUploadStatus: () => "Status",
|
|
76
|
+
actions: {
|
|
77
|
+
cancel: () => "Upload abbrechen",
|
|
78
|
+
clear: () => "Löschen",
|
|
79
|
+
delete: () => "Datei löschen"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
heading: {
|
|
83
|
+
backLinkAriaLabel: () => "Zurück"
|
|
84
|
+
},
|
|
85
|
+
link: {
|
|
86
|
+
skipLinkLabel: () => "Zum Hauptinhalt springen"
|
|
87
|
+
},
|
|
88
|
+
loader: {
|
|
89
|
+
loading: () => "Laden"
|
|
90
|
+
},
|
|
91
|
+
loaderSpinner: {
|
|
92
|
+
loading: () => "Laden..."
|
|
93
|
+
},
|
|
94
|
+
menuFullscreen: {
|
|
95
|
+
ariaLabels: {
|
|
96
|
+
closeButton: () => "Schließen"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
message: {
|
|
100
|
+
closeButtonAriaLabel: () => "Schließen"
|
|
101
|
+
},
|
|
102
|
+
numeralDate: {
|
|
103
|
+
validation: {
|
|
104
|
+
day: (month, daysInMonth) => {
|
|
105
|
+
if (month && daysInMonth) {
|
|
106
|
+
return `Tag in ${month} muss eine Zahl von 1- ${daysInMonth} sein`;
|
|
107
|
+
}
|
|
108
|
+
return "Der Tag muss eine Zahl zwischen 1 und 31 sein.";
|
|
109
|
+
},
|
|
110
|
+
month: () => "Der Monat muss eine Zahl zwischen 1 und 12 sein.",
|
|
111
|
+
year: () => "Das Jahr muss eine Zahl zwischen 1000 und 2200 sein."
|
|
112
|
+
},
|
|
113
|
+
labels: {
|
|
114
|
+
day: () => "Tag",
|
|
115
|
+
month: () => "Monat",
|
|
116
|
+
year: () => "Jahr"
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
pager: {
|
|
120
|
+
show: () => "Anzeigen",
|
|
121
|
+
records: (count, showNumber = true) => {
|
|
122
|
+
const noun = isSingular(count) ? "Element" : "Elemente";
|
|
123
|
+
return showNumber ? `${count} ${noun}` : noun;
|
|
124
|
+
},
|
|
125
|
+
first: () => "Erste",
|
|
126
|
+
last: () => "Letzte",
|
|
127
|
+
next: () => "Weiter",
|
|
128
|
+
previous: () => "Vorherige",
|
|
129
|
+
pageX: () => "Seite",
|
|
130
|
+
ofY: count => `von ${count}`
|
|
131
|
+
},
|
|
132
|
+
password: {
|
|
133
|
+
ariaLiveShownMessage: () => "Ihr Passwort wurde angezeigt. Bewegen Sie den Cursor über das Passwort, um es sich vorlesen zu lassen, wenn dies sicher ist.",
|
|
134
|
+
ariaLiveHiddenMessage: () => "Ihr Passwort ist derzeit ausgeblendet."
|
|
135
|
+
},
|
|
136
|
+
progressTracker: {
|
|
137
|
+
of: () => "von"
|
|
138
|
+
},
|
|
139
|
+
pod: {
|
|
140
|
+
undo: () => "Rückgängig"
|
|
141
|
+
},
|
|
142
|
+
search: {
|
|
143
|
+
searchButtonText: () => "Suchen"
|
|
144
|
+
},
|
|
145
|
+
select: {
|
|
146
|
+
actionButtonText: () => "Neues Element hinzufügen",
|
|
147
|
+
placeholder: () => "Bitte auswählen...",
|
|
148
|
+
noResultsForTerm: term => `Es wurden keine Ergebnisse für ${term} gefunden.`
|
|
149
|
+
},
|
|
150
|
+
sidebar: {
|
|
151
|
+
ariaLabels: {
|
|
152
|
+
close: () => "Schließen"
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
sort: {
|
|
156
|
+
accessibleName: (sortContent, sortType) => `Alle ${sortContent || "inhalte"}${sortType ? ` in der Reihenfolge ${sortType === "ascending" ? "aufsteigend" : "absteigend"} sortieren.` : " in der Reihenfolge aufsteigend oder absteigend sortieren."}`
|
|
157
|
+
},
|
|
158
|
+
splitButton: {
|
|
159
|
+
ariaLabel: () => "Mehr anzeigen"
|
|
160
|
+
},
|
|
161
|
+
stepFlow: {
|
|
162
|
+
stepLabel: (currentStep, totalSteps) => `Schritt ${currentStep} von ${totalSteps}`,
|
|
163
|
+
screenReaderOnlyTitle: (title, currentStep, totalSteps, category) => `${category ? `${category}.` : ""} ${title}. Schritt ${currentStep} von ${totalSteps}.`,
|
|
164
|
+
closeIconAriaLabel: () => "Schließen"
|
|
165
|
+
},
|
|
166
|
+
switch: {
|
|
167
|
+
on: () => "EIN",
|
|
168
|
+
off: () => "AUS"
|
|
169
|
+
},
|
|
170
|
+
textEditor: {
|
|
171
|
+
tooltipMessages: {
|
|
172
|
+
bold: () => "Fett",
|
|
173
|
+
italic: () => "Kursiv",
|
|
174
|
+
bulletList: () => "Aufzählung mit Punkten",
|
|
175
|
+
numberList: () => "Nummerierte Liste"
|
|
176
|
+
},
|
|
177
|
+
ariaLabels: {
|
|
178
|
+
bold: () => "fett",
|
|
179
|
+
italic: () => "kursiv",
|
|
180
|
+
bulletList: () => "Aufzählung mit Punkten",
|
|
181
|
+
numberList: () => "Nummerierte Liste"
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
tileSelect: {
|
|
185
|
+
deselect: () => "Auswahl aufheben"
|
|
186
|
+
},
|
|
187
|
+
time: {
|
|
188
|
+
amText: () => "AM",
|
|
189
|
+
pmText: () => "PM",
|
|
190
|
+
hoursLabelText: () => "h",
|
|
191
|
+
minutesLabelText: () => "min",
|
|
192
|
+
hoursAriaLabelText: () => "Stunden",
|
|
193
|
+
minutesAriaLabelText: () => "Minuten"
|
|
194
|
+
},
|
|
195
|
+
toast: {
|
|
196
|
+
ariaLabels: {
|
|
197
|
+
close: () => "Schließen"
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
verticalMenuFullScreen: {
|
|
201
|
+
ariaLabels: {
|
|
202
|
+
close: () => "Schließen"
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
|
+
export default deDE;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import enCADateLocale from "date-fns/locale/en-CA";
|
|
2
|
+
const enCA = {
|
|
3
|
+
locale: () => "en-CA",
|
|
4
|
+
date: {
|
|
5
|
+
dateFnsLocale: () => enCADateLocale,
|
|
6
|
+
ariaLabels: {
|
|
7
|
+
previousMonthButton: () => "Previous month",
|
|
8
|
+
nextMonthButton: () => "Next month"
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
export default enCA;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import enUSDateLocale from "date-fns/locale/en-US";
|
|
2
|
+
const enUS = {
|
|
3
|
+
locale: () => "en-US",
|
|
4
|
+
date: {
|
|
5
|
+
dateFnsLocale: () => enUSDateLocale,
|
|
6
|
+
ariaLabels: {
|
|
7
|
+
previousMonthButton: () => "Previous month",
|
|
8
|
+
nextMonthButton: () => "Next month"
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
export default enUS;
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import
|
|
1
|
+
import esESDateLocale from "date-fns/locale/es";
|
|
2
2
|
const isSingular = count => (typeof count === "string" ? parseInt(count) : count) === 1;
|
|
3
3
|
const esES = {
|
|
4
4
|
locale: () => "es-ES",
|
|
5
5
|
actions: {
|
|
6
6
|
edit: () => "Editar",
|
|
7
|
-
delete: () => "
|
|
7
|
+
delete: () => "Eliminar"
|
|
8
8
|
},
|
|
9
9
|
actionPopover: {
|
|
10
10
|
ariaLabel: () => "acciones"
|
|
11
11
|
},
|
|
12
12
|
advancedColorPicker: {
|
|
13
13
|
ariaLabel: () => "Cambiar color",
|
|
14
|
-
currentColorDescriptionTerm: () => "Color
|
|
14
|
+
currentColorDescriptionTerm: () => "Color aplicado:",
|
|
15
15
|
currentColorAssigned: currentColor => currentColor
|
|
16
16
|
},
|
|
17
17
|
batchSelection: {
|
|
18
|
-
selected: count =>
|
|
18
|
+
selected: count => `Registros seleccionados: ${count}`
|
|
19
19
|
},
|
|
20
20
|
breadcrumbs: {
|
|
21
21
|
ariaLabel: () => "ruta de navegación"
|
|
22
22
|
},
|
|
23
23
|
confirm: {
|
|
24
24
|
no: () => "No",
|
|
25
|
-
yes: () => "
|
|
25
|
+
yes: () => "Sí"
|
|
26
26
|
},
|
|
27
27
|
characterCount: {
|
|
28
|
-
tooManyCharacters: (count, formattedCount) => count === 1 ?
|
|
29
|
-
charactersLeft: (count, formattedCount) => count === 1 ?
|
|
30
|
-
visuallyHiddenHint: formattedCount => `
|
|
28
|
+
tooManyCharacters: (count, formattedCount) => count === 1 ? `Hay ${formattedCount} carácter de más.` : `Hay ${formattedCount} caracteres de más.`,
|
|
29
|
+
charactersLeft: (count, formattedCount) => count === 1 ? `Queda ${formattedCount} carácter.` : `Quedan ${formattedCount} caracteres.`,
|
|
30
|
+
visuallyHiddenHint: formattedCount => `Puedes introducir hasta ${formattedCount} caracteres.`
|
|
31
31
|
},
|
|
32
32
|
date: {
|
|
33
|
-
dateFnsLocale: () =>
|
|
33
|
+
dateFnsLocale: () => esESDateLocale,
|
|
34
34
|
ariaLabels: {
|
|
35
35
|
previousMonthButton: () => "Mes anterior",
|
|
36
|
-
nextMonthButton: () => "
|
|
36
|
+
nextMonthButton: () => "Mes siguiente"
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
dialog: {
|
|
@@ -56,7 +56,7 @@ const esES = {
|
|
|
56
56
|
formSummary: /* istanbul ignore next */
|
|
57
57
|
(errors, warnings, type) => {
|
|
58
58
|
const errorPlural = isSingular(errors) ? "error" : "errores";
|
|
59
|
-
const warningPlural = isSingular(warnings) ? "
|
|
59
|
+
const warningPlural = isSingular(warnings) ? "aviso" : "avisos";
|
|
60
60
|
if (errors && warnings && type === "warning") {
|
|
61
61
|
return ["y", `${warnings} ${warningPlural}`];
|
|
62
62
|
}
|
|
@@ -71,23 +71,23 @@ const esES = {
|
|
|
71
71
|
}
|
|
72
72
|
},
|
|
73
73
|
fileInput: {
|
|
74
|
-
dragAndDrop: () => "
|
|
75
|
-
selectFile: () => "
|
|
76
|
-
fileUploadStatus: () => "Estado de
|
|
74
|
+
dragAndDrop: () => "También los puedes arrastrar hasta aquí.",
|
|
75
|
+
selectFile: () => "Selecciona un archivo",
|
|
76
|
+
fileUploadStatus: () => "Estado de subida de ficheros",
|
|
77
77
|
actions: {
|
|
78
|
-
cancel: () => "Cancelar
|
|
79
|
-
clear: () => "
|
|
80
|
-
delete: () => "
|
|
78
|
+
cancel: () => "Cancelar subida",
|
|
79
|
+
clear: () => "Borrar",
|
|
80
|
+
delete: () => "Eliminar"
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
83
|
heading: {
|
|
84
|
-
backLinkAriaLabel: () => "
|
|
84
|
+
backLinkAriaLabel: () => "Volver"
|
|
85
85
|
},
|
|
86
86
|
link: {
|
|
87
|
-
skipLinkLabel: () => "
|
|
87
|
+
skipLinkLabel: () => "Ir al contenido principal"
|
|
88
88
|
},
|
|
89
89
|
loader: {
|
|
90
|
-
loading: () => "Cargando"
|
|
90
|
+
loading: () => "Cargando..."
|
|
91
91
|
},
|
|
92
92
|
loaderSpinner: {
|
|
93
93
|
loading: () => "Cargando..."
|
|
@@ -104,12 +104,12 @@ const esES = {
|
|
|
104
104
|
validation: {
|
|
105
105
|
day: (month, daysInMonth) => {
|
|
106
106
|
if (month && daysInMonth) {
|
|
107
|
-
return `El día
|
|
107
|
+
return `El día del mes ${month} debe ser un número comprendido entre 1 y ${daysInMonth}.`;
|
|
108
108
|
}
|
|
109
|
-
return "El día debe ser un número entre 1
|
|
109
|
+
return "El día debe ser un número comprendido entre 1 y 31.";
|
|
110
110
|
},
|
|
111
|
-
month: () => "El mes debe ser un número entre 1
|
|
112
|
-
year: () => "El año debe ser un número entre 1800
|
|
111
|
+
month: () => "El mes debe ser un número comprendido entre 1 y 12.",
|
|
112
|
+
year: () => "El año debe ser un número comprendido entre 1800 y 2200."
|
|
113
113
|
},
|
|
114
114
|
labels: {
|
|
115
115
|
day: () => "Día",
|
|
@@ -131,8 +131,8 @@ const esES = {
|
|
|
131
131
|
ofY: count => `de ${count}`
|
|
132
132
|
},
|
|
133
133
|
password: {
|
|
134
|
-
ariaLiveShownMessage: () => "
|
|
135
|
-
ariaLiveHiddenMessage: () => "
|
|
134
|
+
ariaLiveShownMessage: () => "Tu contraseña se muestra en pantalla. Si estás en un entorno seguro, coloca el cursor sobre ella para que se te lea en voz alta.",
|
|
135
|
+
ariaLiveHiddenMessage: () => "La contraseña está oculta."
|
|
136
136
|
},
|
|
137
137
|
progressTracker: {
|
|
138
138
|
of: () => "de"
|
|
@@ -144,9 +144,9 @@ const esES = {
|
|
|
144
144
|
searchButtonText: () => "Buscar"
|
|
145
145
|
},
|
|
146
146
|
select: {
|
|
147
|
-
actionButtonText: () => "Añadir
|
|
148
|
-
placeholder: () => "
|
|
149
|
-
noResultsForTerm: term => `No hay resultados para
|
|
147
|
+
actionButtonText: () => "Añadir elemento",
|
|
148
|
+
placeholder: () => "Seleccionar...",
|
|
149
|
+
noResultsForTerm: term => `No hay resultados para ${term}.`
|
|
150
150
|
},
|
|
151
151
|
sidebar: {
|
|
152
152
|
ariaLabels: {
|
|
@@ -154,7 +154,7 @@ const esES = {
|
|
|
154
154
|
}
|
|
155
155
|
},
|
|
156
156
|
sort: {
|
|
157
|
-
accessibleName: (sortContent, sortType) => `Ordenar
|
|
157
|
+
accessibleName: (sortContent, sortType) => `Ordenar todos los contenidos ${sortContent && `de tipo ${sortContent}`}${sortType ? ` según orden ${sortType === "ascending" ? "ascendente" : "descendente"}.` : " según orden ascendente o descendente."}`
|
|
158
158
|
},
|
|
159
159
|
splitButton: {
|
|
160
160
|
ariaLabel: () => "Mostrar más"
|
|
@@ -165,31 +165,31 @@ const esES = {
|
|
|
165
165
|
closeIconAriaLabel: () => "Cerrar"
|
|
166
166
|
},
|
|
167
167
|
switch: {
|
|
168
|
-
on: () => "
|
|
169
|
-
off: () => "
|
|
168
|
+
on: () => "SÍ",
|
|
169
|
+
off: () => "NO"
|
|
170
170
|
},
|
|
171
171
|
textEditor: {
|
|
172
172
|
tooltipMessages: {
|
|
173
173
|
bold: () => "Negrita",
|
|
174
|
-
italic: () => "
|
|
174
|
+
italic: () => "Cursiva",
|
|
175
175
|
bulletList: () => "Lista con viñetas",
|
|
176
176
|
numberList: () => "Lista numerada"
|
|
177
177
|
},
|
|
178
178
|
ariaLabels: {
|
|
179
179
|
bold: () => "negrita",
|
|
180
|
-
italic: () => "
|
|
181
|
-
bulletList: () => "lista
|
|
182
|
-
numberList: () => "lista
|
|
180
|
+
italic: () => "cursiva",
|
|
181
|
+
bulletList: () => "lista-con-viñetas",
|
|
182
|
+
numberList: () => "lista-numerada"
|
|
183
183
|
}
|
|
184
184
|
},
|
|
185
185
|
tileSelect: {
|
|
186
186
|
deselect: () => "Deseleccionar"
|
|
187
187
|
},
|
|
188
188
|
time: {
|
|
189
|
-
amText: () => "
|
|
190
|
-
pmText: () => "
|
|
191
|
-
hoursLabelText: () => "
|
|
192
|
-
minutesLabelText: () => "
|
|
189
|
+
amText: () => "a. m.",
|
|
190
|
+
pmText: () => "p. m.",
|
|
191
|
+
hoursLabelText: () => "h",
|
|
192
|
+
minutesLabelText: () => "min",
|
|
193
193
|
hoursAriaLabelText: () => "Horas",
|
|
194
194
|
minutesAriaLabelText: () => "Minutos"
|
|
195
195
|
},
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import frCADateLocale from "date-fns/locale/fr-CA";
|
|
2
|
+
const isSingular = count => (typeof count === "string" ? parseInt(count) : count) === 1;
|
|
3
|
+
const frCA = {
|
|
4
|
+
locale: () => "fr-CA",
|
|
5
|
+
actions: {
|
|
6
|
+
edit: () => "Modifier",
|
|
7
|
+
delete: () => "Supprimer"
|
|
8
|
+
},
|
|
9
|
+
actionPopover: {
|
|
10
|
+
ariaLabel: () => "actions"
|
|
11
|
+
},
|
|
12
|
+
advancedColorPicker: {
|
|
13
|
+
ariaLabel: () => "Changer de couleur",
|
|
14
|
+
currentColorDescriptionTerm: () => "Couleur actuellement attribuée :",
|
|
15
|
+
currentColorAssigned: currentColor => currentColor
|
|
16
|
+
},
|
|
17
|
+
batchSelection: {
|
|
18
|
+
selected: count => `${count} sélectionné(s)`
|
|
19
|
+
},
|
|
20
|
+
breadcrumbs: {
|
|
21
|
+
ariaLabel: () => "chemins de navigation"
|
|
22
|
+
},
|
|
23
|
+
confirm: {
|
|
24
|
+
no: () => "Non",
|
|
25
|
+
yes: () => "Oui"
|
|
26
|
+
},
|
|
27
|
+
characterCount: {
|
|
28
|
+
tooManyCharacters: (count, formattedCount) => count === 1 ? `${formattedCount} caractère de trop` : `${formattedCount} caractères de trop`,
|
|
29
|
+
charactersLeft: (count, formattedCount) => count === 1 ? `${formattedCount} caractère restant` : `${formattedCount} caractères restants`,
|
|
30
|
+
visuallyHiddenHint: formattedCount => `vous pouvez saisir jusqu'à ${formattedCount} caractères.`
|
|
31
|
+
},
|
|
32
|
+
date: {
|
|
33
|
+
dateFnsLocale: () => frCADateLocale,
|
|
34
|
+
ariaLabels: {
|
|
35
|
+
previousMonthButton: () => "Mois précédent",
|
|
36
|
+
nextMonthButton: () => "Mois suivant"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
dialog: {
|
|
40
|
+
ariaLabels: {
|
|
41
|
+
close: () => "Fermer"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
dialogFullScreen: {
|
|
45
|
+
ariaLabels: {
|
|
46
|
+
close: () => "Fermer"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
dismissibleBox: {
|
|
50
|
+
ariaLabels: {
|
|
51
|
+
close: () => "Fermer"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
errors: {
|
|
55
|
+
messages: {
|
|
56
|
+
formSummary: /* istanbul ignore next */
|
|
57
|
+
(errors, warnings, type) => {
|
|
58
|
+
const errorPlural = isSingular(errors) ? "erreur" : "erreurs";
|
|
59
|
+
const warningPlural = isSingular(warnings) ? "avertissement" : "avertissements";
|
|
60
|
+
if (errors && warnings && type === "warning") {
|
|
61
|
+
return ["et", `${warnings} ${warningPlural}`];
|
|
62
|
+
}
|
|
63
|
+
if (errors) {
|
|
64
|
+
return ["Il y a", `${errors} ${errorPlural}`];
|
|
65
|
+
}
|
|
66
|
+
if (warnings) {
|
|
67
|
+
return ["Il y a", `${warnings} ${warningPlural}`];
|
|
68
|
+
}
|
|
69
|
+
return null;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
fileInput: {
|
|
74
|
+
dragAndDrop: () => "ou glissez et déposez-le ici.",
|
|
75
|
+
selectFile: () => "Sélectionnez le fichier",
|
|
76
|
+
fileUploadStatus: () => "État du téléversement des fichiers",
|
|
77
|
+
actions: {
|
|
78
|
+
cancel: () => "Annuler le téléversement",
|
|
79
|
+
clear: () => "Effacer",
|
|
80
|
+
delete: () => "Supprimer le fichier"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
heading: {
|
|
84
|
+
backLinkAriaLabel: () => "Retour"
|
|
85
|
+
},
|
|
86
|
+
link: {
|
|
87
|
+
skipLinkLabel: () => "Passer au contenu principal"
|
|
88
|
+
},
|
|
89
|
+
loader: {
|
|
90
|
+
loading: () => "Chargement"
|
|
91
|
+
},
|
|
92
|
+
loaderSpinner: {
|
|
93
|
+
loading: () => "Chargement..."
|
|
94
|
+
},
|
|
95
|
+
menuFullscreen: {
|
|
96
|
+
ariaLabels: {
|
|
97
|
+
closeButton: () => "Fermer"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
message: {
|
|
101
|
+
closeButtonAriaLabel: () => "Fermer"
|
|
102
|
+
},
|
|
103
|
+
numeralDate: {
|
|
104
|
+
validation: {
|
|
105
|
+
day: (month, daysInMonth) => {
|
|
106
|
+
if (month && daysInMonth) {
|
|
107
|
+
return `Le jour du ${month} doit être un nombre compris entre 1- ${daysInMonth}`;
|
|
108
|
+
}
|
|
109
|
+
return "Le jour doit être un nombre compris entre 1 et 31 jours.";
|
|
110
|
+
},
|
|
111
|
+
month: () => "Le mois doit être un nombre compris entre 1 et 12.",
|
|
112
|
+
year: () => "L'année doit être un nombre compris entre 1800 et 2200."
|
|
113
|
+
},
|
|
114
|
+
labels: {
|
|
115
|
+
day: () => "Jour",
|
|
116
|
+
month: () => "Mois",
|
|
117
|
+
year: () => "Année"
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
pager: {
|
|
121
|
+
show: () => "Afficher",
|
|
122
|
+
records: (count, showNumber = true) => {
|
|
123
|
+
const noun = isSingular(count) ? "élément" : "éléments";
|
|
124
|
+
return showNumber ? `${count} ${noun}` : noun;
|
|
125
|
+
},
|
|
126
|
+
first: () => "Première",
|
|
127
|
+
last: () => "Dernière",
|
|
128
|
+
next: () => "Suivante",
|
|
129
|
+
previous: () => "Précédente",
|
|
130
|
+
pageX: () => "Page",
|
|
131
|
+
ofY: count => `de ${count}`
|
|
132
|
+
},
|
|
133
|
+
password: {
|
|
134
|
+
ariaLiveShownMessage: () => "Votre mot de passe a été affiché. Si vous pouvez le faire en toute sécurité, focalisez sur la zone de saisie du mot de passe pour qu’il vous soit lu.",
|
|
135
|
+
ariaLiveHiddenMessage: () => "Votre mot de passe est actuellement masqué."
|
|
136
|
+
},
|
|
137
|
+
progressTracker: {
|
|
138
|
+
of: () => "de"
|
|
139
|
+
},
|
|
140
|
+
pod: {
|
|
141
|
+
undo: () => "Annuler"
|
|
142
|
+
},
|
|
143
|
+
search: {
|
|
144
|
+
searchButtonText: () => "Chercher"
|
|
145
|
+
},
|
|
146
|
+
select: {
|
|
147
|
+
actionButtonText: () => "Ajouter un nouvel élément",
|
|
148
|
+
placeholder: () => "Sélectionner...",
|
|
149
|
+
noResultsForTerm: term => `Aucun résultat pour ${term}`
|
|
150
|
+
},
|
|
151
|
+
sidebar: {
|
|
152
|
+
ariaLabels: {
|
|
153
|
+
close: () => "Fermer"
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
sort: {
|
|
157
|
+
accessibleName: (sortContent, sortType) => `Trier tous les contenus ${sortContent && `de type ${sortContent}`}${sortType ? ` par ordre ${sortType === "ascending" ? "croissant" : "décroissant"}.` : " par ordre croissant ou décroissant."}`
|
|
158
|
+
},
|
|
159
|
+
splitButton: {
|
|
160
|
+
ariaLabel: () => "Afficher plus"
|
|
161
|
+
},
|
|
162
|
+
stepFlow: {
|
|
163
|
+
stepLabel: (currentStep, totalSteps) => `Étape ${currentStep} de ${totalSteps}`,
|
|
164
|
+
screenReaderOnlyTitle: (title, currentStep, totalSteps, category) => `${category ? `${category}.` : ""} ${title}. Étape ${currentStep} de ${totalSteps}.`,
|
|
165
|
+
closeIconAriaLabel: () => "Fermer"
|
|
166
|
+
},
|
|
167
|
+
switch: {
|
|
168
|
+
on: () => "OUI",
|
|
169
|
+
off: () => "NON"
|
|
170
|
+
},
|
|
171
|
+
textEditor: {
|
|
172
|
+
tooltipMessages: {
|
|
173
|
+
bold: () => "Gras",
|
|
174
|
+
italic: () => "Italique",
|
|
175
|
+
bulletList: () => "Liste à puces",
|
|
176
|
+
numberList: () => "Liste numérotée"
|
|
177
|
+
},
|
|
178
|
+
ariaLabels: {
|
|
179
|
+
bold: () => "gras",
|
|
180
|
+
italic: () => "italique",
|
|
181
|
+
bulletList: () => "liste-à-puces",
|
|
182
|
+
numberList: () => "liste-numérotée"
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
tileSelect: {
|
|
186
|
+
deselect: () => "Désélectionner"
|
|
187
|
+
},
|
|
188
|
+
time: {
|
|
189
|
+
amText: () => "AM",
|
|
190
|
+
pmText: () => "PM",
|
|
191
|
+
hoursLabelText: () => "Hres",
|
|
192
|
+
minutesLabelText: () => "Mins.",
|
|
193
|
+
hoursAriaLabelText: () => "Heures",
|
|
194
|
+
minutesAriaLabelText: () => "Minutes"
|
|
195
|
+
},
|
|
196
|
+
toast: {
|
|
197
|
+
ariaLabels: {
|
|
198
|
+
close: () => "Fermer"
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
verticalMenuFullScreen: {
|
|
202
|
+
ariaLabels: {
|
|
203
|
+
close: () => "Fermer"
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
};
|
|
207
|
+
export default frCA;
|