agroptima-design-system 0.31.8 → 0.31.9
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/package.json
CHANGED
|
@@ -88,7 +88,7 @@ function Footer({
|
|
|
88
88
|
)
|
|
89
89
|
.replace('${to}', formatDatePickerFooterDate(selected?.to, lng as string))
|
|
90
90
|
}
|
|
91
|
-
return translations[lng].
|
|
91
|
+
return translations[lng].selectedDate.replace(
|
|
92
92
|
'${from}',
|
|
93
93
|
formatDatePickerFooterDate(selected?.from, lng as string),
|
|
94
94
|
)
|
|
@@ -54,7 +54,7 @@ export function DateSinglePicker({
|
|
|
54
54
|
)
|
|
55
55
|
}
|
|
56
56
|
function Footer({ lng, selected }: { selected?: Date; lng: Locale }): string {
|
|
57
|
-
if (!selected) return translations[lng].
|
|
57
|
+
if (!selected) return translations[lng].pickDate
|
|
58
58
|
|
|
59
59
|
return translations[lng].selectedDate.replace(
|
|
60
60
|
'${date}',
|
|
@@ -18,17 +18,13 @@ export type Locale = keyof typeof availableLocales
|
|
|
18
18
|
|
|
19
19
|
export const translations: Translation = {
|
|
20
20
|
en: {
|
|
21
|
-
pickDate: 'Pick a
|
|
22
|
-
pickSingleDate: 'Pick a date',
|
|
21
|
+
pickDate: 'Pick a date or a range of dates',
|
|
23
22
|
selectedDate: 'Selected date: ${date}',
|
|
24
23
|
selectedRangeOfDates: 'Selected dates range: from ${from} to ${to}',
|
|
25
|
-
selectedOnlyFrom: 'Selected dates range: from ${from}',
|
|
26
24
|
},
|
|
27
25
|
es: {
|
|
28
|
-
pickDate: 'Selecciona
|
|
29
|
-
pickSingleDate: 'Selecciona una fecha',
|
|
26
|
+
pickDate: 'Selecciona una fecha o un rango de fechas',
|
|
30
27
|
selectedDate: 'Fecha seleccionada: ${date}',
|
|
31
28
|
selectedRangeOfDates: 'Rango de fechas seleccionado: desde ${from} a ${to}',
|
|
32
|
-
selectedOnlyFrom: 'Rango de fechas seleccionado: desde ${from}',
|
|
33
29
|
},
|
|
34
30
|
}
|