Skip to content

Commit

Permalink
Add full translations for Calendar and DateInput components
Browse files Browse the repository at this point in the history
  • Loading branch information
connor-baer committed Dec 3, 2024
1 parent b327347 commit 2da7283
Show file tree
Hide file tree
Showing 84 changed files with 535 additions and 75 deletions.
27 changes: 3 additions & 24 deletions packages/circuit-ui/components/Calendar/Calendar.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,30 +52,9 @@ export const Localized = ({ selection, ...args }: CalendarProps) => {
const [date, setDate] = useState(selection);
return (
<Stack>
<Calendar
{...args}
selection={date}
onSelect={setDate}
locale="de-DE"
prevMonthButtonLabel="Vorheriger Monat"
nextMonthButtonLabel="Nächster Monat"
/>
<Calendar
{...args}
selection={date}
onSelect={setDate}
locale="bg-BG"
prevMonthButtonLabel="Предишния месец"
nextMonthButtonLabel="Следващият месец"
/>
<Calendar
{...args}
selection={date}
onSelect={setDate}
locale="pt-BR"
prevMonthButtonLabel="Mês anterior"
nextMonthButtonLabel="Mês próximo"
/>
<Calendar {...args} selection={date} onSelect={setDate} locale="de-DE" />
<Calendar {...args} selection={date} onSelect={setDate} locale="bg-BG" />
<Calendar {...args} selection={date} onSelect={setDate} locale="pt-BR" />
</Stack>
);
};
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"prevMonthButtonLabel": "Предходен месец",
"nextMonthButtonLabel": "Следващ месец"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"prevMonthButtonLabel": "Předchozí měsíc",
"nextMonthButtonLabel": "Další měsíc"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"prevMonthButtonLabel": "Forrige måned",
"nextMonthButtonLabel": "Næste måned"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"prevMonthButtonLabel": "Vorheriger Monat",
"nextMonthButtonLabel": "Nächster Monat"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"prevMonthButtonLabel": "Vorheriger Monat",
"nextMonthButtonLabel": "Nächster Monat"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"prevMonthButtonLabel": "Vorheriger Monat",
"nextMonthButtonLabel": "Nächster Monat"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"prevMonthButtonLabel": "Προηγούμενος μήνας",
"nextMonthButtonLabel": "Επόμενος μήνας"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"prevMonthButtonLabel": "Προηγούμενος μήνας",
"nextMonthButtonLabel": "Επόμενος μήνας"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"prevMonthButtonLabel": "Previous month",
"nextMonthButtonLabel": "Next month"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"prevMonthButtonLabel": "Previous month",
"nextMonthButtonLabel": "Next month"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"prevMonthButtonLabel": "Previous month",
"nextMonthButtonLabel": "Next month"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"prevMonthButtonLabel": "Previous month",
"nextMonthButtonLabel": "Next month"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"prevMonthButtonLabel": "Mes anterior",
"nextMonthButtonLabel": "Mes siguiente"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"prevMonthButtonLabel": "Mes anterior",
"nextMonthButtonLabel": "Mes siguiente"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"prevMonthButtonLabel": "Mes anterior",
"nextMonthButtonLabel": "Mes siguiente"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"prevMonthButtonLabel": "Previous month",
"nextMonthButtonLabel": "Next month"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"prevMonthButtonLabel": "Mes anterior",
"nextMonthButtonLabel": "Mes siguiente"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"prevMonthButtonLabel": "Mes anterior",
"nextMonthButtonLabel": "Mes siguiente"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"prevMonthButtonLabel": "Eelmine kuu",
"nextMonthButtonLabel": "Järgmine kuu"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"prevMonthButtonLabel": "Edellinen kuukausi",
"nextMonthButtonLabel": "Seuraava kuukausi"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"prevMonthButtonLabel": "Mois précédent",
"nextMonthButtonLabel": "Mois suivant"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"prevMonthButtonLabel": "Mois précédent",
"nextMonthButtonLabel": "Mois suivant"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"prevMonthButtonLabel": "Mois précédent",
"nextMonthButtonLabel": "Mois suivant"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"prevMonthButtonLabel": "Mois précédent",
"nextMonthButtonLabel": "Mois suivant"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"prevMonthButtonLabel": "Prethodni mjesec",
"nextMonthButtonLabel": "Sljedeći mjesec"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"prevMonthButtonLabel": "Előző hónap",
"nextMonthButtonLabel": "Következő hónap"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"prevMonthButtonLabel": "Mese precedente",
"nextMonthButtonLabel": "Mese successivo"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"prevMonthButtonLabel": "Mese precedente",
"nextMonthButtonLabel": "Mese successivo"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"prevMonthButtonLabel": "Praėjęs mėnuo",
"nextMonthButtonLabel": "Kitas mėnuo"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"prevMonthButtonLabel": "Iepriekšējais mēnesis",
"nextMonthButtonLabel": "Nākamais mēnesis"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"prevMonthButtonLabel": "Forrige måned",
"nextMonthButtonLabel": "Neste måned"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"prevMonthButtonLabel": "Vorige maand",
"nextMonthButtonLabel": "Volgende maand"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"prevMonthButtonLabel": "Vorige maand",
"nextMonthButtonLabel": "Volgende maand"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"prevMonthButtonLabel": "Poprzedni miesiąc",
"nextMonthButtonLabel": "Następny miesiąc"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"prevMonthButtonLabel": "Mês anterior",
"nextMonthButtonLabel": "Mês seguinte"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"prevMonthButtonLabel": "Mês anterior",
"nextMonthButtonLabel": "Mês seguinte"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"prevMonthButtonLabel": "Luna precedentă",
"nextMonthButtonLabel": "Luna următoare"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"prevMonthButtonLabel": "Predchádzajúci mesiac",
"nextMonthButtonLabel": "Nasledujúci mesiac"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"prevMonthButtonLabel": "Prejšnji mesec",
"nextMonthButtonLabel": "Naslednji mesec"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"prevMonthButtonLabel": "Föregående månad",
"nextMonthButtonLabel": "Nästa månad"
}
45 changes: 3 additions & 42 deletions packages/circuit-ui/components/DateInput/DateInput.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,48 +120,9 @@ Disabled.args = {

export const Locales = (args: DateInputProps) => (
<Stack>
<DateInput
{...args}
locale="de-DE"
label="Geburtsdatum"
prevMonthButtonLabel="Vorheriger Monat"
nextMonthButtonLabel="Nächster Monat"
openCalendarButtonLabel="Datum ändern"
closeCalendarButtonLabel="Kalendar schließen"
applyDateButtonLabel="Anwenden"
clearDateButtonLabel="Löschen"
yearInputLabel="Jahr"
monthInputLabel="Monat"
dayInputLabel="Tag"
/>
<DateInput
{...args}
locale="es-CL"
label="Fecha de nacimiento"
prevMonthButtonLabel="Mes anterior"
nextMonthButtonLabel="Mes siguiente"
openCalendarButtonLabel="Cambiar fecha"
closeCalendarButtonLabel="Cerrar calendario"
applyDateButtonLabel="Aplicar"
clearDateButtonLabel="Borrar"
yearInputLabel="Año"
monthInputLabel="Mes"
dayInputLabel="Día"
/>
<DateInput
{...args}
locale="pt-BR"
label="Data de nascimento"
prevMonthButtonLabel="Mês anterior"
nextMonthButtonLabel="Próximo mês"
openCalendarButtonLabel="Alterar data"
closeCalendarButtonLabel="Fechar calendário"
applyDateButtonLabel="Aplicar"
clearDateButtonLabel="Limpar"
yearInputLabel="Ano"
monthInputLabel="Mês"
dayInputLabel="Dia"
/>
<DateInput {...args} locale="de-DE" label="Geburtsdatum" />
<DateInput {...args} locale="es-CL" label="Fecha de nacimiento" />
<DateInput {...args} locale="pt-BR" label="Data de nascimento" />
</Stack>
);

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"yearInputLabel": "Година",
"monthInputLabel": "Месец",
"dayInputLabel": "Ден",
"openCalendarButtonLabel": "Промяна на дата",
"closeCalendarButtonLabel": "Затваряне на календар",
"applyDateButtonLabel": "Прилагане на дата",
"clearDateButtonLabel": "Изчистване на дата"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"yearInputLabel": "Rok",
"monthInputLabel": "Měsíc",
"dayInputLabel": "Den",
"openCalendarButtonLabel": "Změnit datum",
"closeCalendarButtonLabel": "Zavřít kalendář",
"applyDateButtonLabel": "Použít datum",
"clearDateButtonLabel": "Vymazat datum"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"yearInputLabel": "År",
"monthInputLabel": "Måned",
"dayInputLabel": "Dag",
"openCalendarButtonLabel": "Skift dato",
"closeCalendarButtonLabel": "Luk kalender",
"applyDateButtonLabel": "Anvend dato",
"clearDateButtonLabel": "Slet dato"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"yearInputLabel": "Jahr",
"monthInputLabel": "Monat",
"dayInputLabel": "Tag",
"openCalendarButtonLabel": "Datum ändern",
"closeCalendarButtonLabel": "Kalender schließen",
"applyDateButtonLabel": "Datum anwenden",
"clearDateButtonLabel": "Datum löschen"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"yearInputLabel": "Jahr",
"monthInputLabel": "Monat",
"dayInputLabel": "Tag",
"openCalendarButtonLabel": "Datum ändern",
"closeCalendarButtonLabel": "Kalender schließen",
"applyDateButtonLabel": "Datum anwenden",
"clearDateButtonLabel": "Datum löschen"
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"monthInputLabel": "Monat",
"dayInputLabel": "Tag",
"openCalendarButtonLabel": "Datum ändern",
"closeCalendarButtonLabel": "Kalendar schließen",
"closeCalendarButtonLabel": "Kalender schließen",
"applyDateButtonLabel": "Datum anwenden",
"clearDateButtonLabel": "Datum löschen"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"yearInputLabel": "Jahr",
"monthInputLabel": "Monat",
"dayInputLabel": "Tag",
"openCalendarButtonLabel": "Datum ändern",
"closeCalendarButtonLabel": "Kalender schließen",
"applyDateButtonLabel": "Datum anwenden",
"clearDateButtonLabel": "Datum löschen"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"yearInputLabel": "Έτος",
"monthInputLabel": "Μήνας",
"dayInputLabel": "Ημέρα",
"openCalendarButtonLabel": "Αλλαγή ημερομηνίας",
"closeCalendarButtonLabel": "Κλείσιμο ημερολογίου",
"applyDateButtonLabel": "Εφαρμογή ημερομηνίας",
"clearDateButtonLabel": "Εκκαθάριση ημερομηνίας"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"yearInputLabel": "Έτος",
"monthInputLabel": "Μήνας",
"dayInputLabel": "Ημέρα",
"openCalendarButtonLabel": "Αλλαγή ημερομηνίας",
"closeCalendarButtonLabel": "Κλείσιμο ημερολογίου",
"applyDateButtonLabel": "Εφαρμογή ημερομηνίας",
"clearDateButtonLabel": "Εκκαθάριση ημερομηνίας"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"yearInputLabel": "Year",
"monthInputLabel": "Month",
"dayInputLabel": "Day",
"openCalendarButtonLabel": "Change date",
"closeCalendarButtonLabel": "Close calendar",
"applyDateButtonLabel": "Apply date",
"clearDateButtonLabel": "Clear date"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"yearInputLabel": "Year",
"monthInputLabel": "Month",
"dayInputLabel": "Day",
"openCalendarButtonLabel": "Change date",
"closeCalendarButtonLabel": "Close calendar",
"applyDateButtonLabel": "Apply date",
"clearDateButtonLabel": "Clear date"
}
Loading

0 comments on commit 2da7283

Please sign in to comment.