Skip to content

Commit

Permalink
improve duration display
Browse files Browse the repository at this point in the history
  • Loading branch information
ddecrulle committed Nov 27, 2024
1 parent c1f9567 commit bdb72c2
Show file tree
Hide file tree
Showing 19 changed files with 662 additions and 202 deletions.
39 changes: 39 additions & 0 deletions web/src/ui/i18n/resources/de.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,9 @@ export const translations: Translations<"de"> = {
: `Dieser Link gewährt für ${params.expiration} Zugriff auf Ihre Daten.`,
"label input link": "Zugriffslink"
},
SelectTime: {
"validity duration label": "Gültigkeitsdauer"
},
MySecrets: {
"page title - my secrets": "Meine Geheimnisse",
"what this page is used for - my secrets":
Expand Down Expand Up @@ -1038,6 +1041,42 @@ Fühlen Sie sich frei, Ihre Kubernetes-Bereitstellungen zu erkunden und die Kont
case "year":
return "in # Jahren";
}
},
singular: ({ divisorKey }) => {
switch (divisorKey) {
case "second":
return "1 Sekunde";
case "minute":
return "1 Minute";
case "hour":
return "1 Stunde";
case "day":
return "1 Tag";
case "week":
return "1 Woche";
case "month":
return "1 Monat";
case "year":
return "1 Jahr";
}
},
plural: ({ divisorKey }) => {
switch (divisorKey) {
case "second":
return "# Sekunden";
case "minute":
return "# Minuten";
case "hour":
return "# Stunden";
case "day":
return "# Tage";
case "week":
return "# Wochen";
case "month":
return "# Monate";
case "year":
return "# Jahre";
}
}
},
CopyToClipboardIconButton: {
Expand Down
39 changes: 39 additions & 0 deletions web/src/ui/i18n/resources/en.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,9 @@ export const translations: Translations<"en"> = {
: `This link will grant access to your data for ${expiration}.`,
"label input link": "Access link"
},
SelectTime: {
"validity duration label": "Validity duration"
},
MySecrets: {
"page title - my secrets": "My Secrets",
"what this page is used for - my secrets":
Expand Down Expand Up @@ -1019,6 +1022,42 @@ Feel free to explore and take charge of your Kubernetes deployments!
case "year":
return "in # years";
}
},
singular: ({ divisorKey }) => {
switch (divisorKey) {
case "second":
return "1 second";
case "minute":
return "1 minute";
case "hour":
return "1 hour";
case "day":
return "1 day";
case "week":
return "1 week";
case "month":
return "1 month";
case "year":
return "1 year";
}
},
plural: ({ divisorKey }) => {
switch (divisorKey) {
case "second":
return "# seconds";
case "minute":
return "# minutes";
case "hour":
return "# hours";
case "day":
return "# days";
case "week":
return "# weeks";
case "month":
return "# months";
case "year":
return "# years";
}
}
},
CopyToClipboardIconButton: {
Expand Down
39 changes: 39 additions & 0 deletions web/src/ui/i18n/resources/es.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,9 @@ export const translations: Translations<"en"> = {
: `Este enlace otorgará acceso a tus datos durante ${expiration}.`,
"label input link": "Enlace de acceso"
},
SelectTime: {
"validity duration label": "Duración de validez"
},
MySecrets: {
"page title - my secrets": "Mis Secretos",
"what this page is used for - my secrets":
Expand Down Expand Up @@ -1033,6 +1036,42 @@ export const translations: Translations<"en"> = {
case "year":
return "en # años";
}
},
singular: ({ divisorKey }) => {
switch (divisorKey) {
case "second":
return "1 segundo";
case "minute":
return "1 minuto";
case "hour":
return "1 hora";
case "day":
return "1 día";
case "week":
return "1 semana";
case "month":
return "1 mes";
case "year":
return "1 año";
}
},
plural: ({ divisorKey }) => {
switch (divisorKey) {
case "second":
return "# segundos";
case "minute":
return "# minutos";
case "hour":
return "# horas";
case "day":
return "# días";
case "week":
return "# semanas";
case "month":
return "# meses";
case "year":
return "# años";
}
}
},
CopyToClipboardIconButton: {
Expand Down
39 changes: 39 additions & 0 deletions web/src/ui/i18n/resources/fi.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,9 @@ export const translations: Translations<"fi"> = {
: `Tämä linkki antaa pääsyn tietoihisi ${expiration} ajaksi.`,
"label input link": "Pääsylinkki"
},
SelectTime: {
"validity duration label": "Voimassaoloaika"
},
MySecrets: {
"page title - my secrets": "Omat salaisuudet",
"what this page is used for - my secrets":
Expand Down Expand Up @@ -1025,6 +1028,42 @@ Tutustu vapaasti ja ota hallintaan Kubernetes-julkaisusi!
case "year":
return "# vuoden kuluttua";
}
},
singular: ({ divisorKey }) => {
switch (divisorKey) {
case "second":
return "1 sekunti";
case "minute":
return "1 minuutti";
case "hour":
return "1 tunti";
case "day":
return "1 päivä";
case "week":
return "1 viikko";
case "month":
return "1 kuukausi";
case "year":
return "1 vuosi";
}
},
plural: ({ divisorKey }) => {
switch (divisorKey) {
case "second":
return "# sekuntia";
case "minute":
return "# minuuttia";
case "hour":
return "# tuntia";
case "day":
return "# päivää";
case "week":
return "# viikkoa";
case "month":
return "# kuukautta";
case "year":
return "# vuotta";
}
}
},
CopyToClipboardIconButton: {
Expand Down
39 changes: 39 additions & 0 deletions web/src/ui/i18n/resources/fr.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,9 @@ export const translations: Translations<"fr"> = {
: `Ce lien donnera un accès à vos données pendant ${expiration}.`,
"label input link": "Lien d'accès"
},
SelectTime: {
"validity duration label": "Durée de validité"
},
MySecrets: {
"page title - my secrets": "My Secrets",
"what this page is used for - my secrets":
Expand Down Expand Up @@ -1043,6 +1046,42 @@ N'hésitez pas à explorer et à prendre en main vos déploiements Kubernetes !
case "year":
return "dans # ans";
}
},
singular: ({ divisorKey }) => {
switch (divisorKey) {
case "second":
return "1 seconde";
case "minute":
return "1 minute";
case "hour":
return "1 heure";
case "day":
return "1 jour";
case "week":
return "1 semaine";
case "month":
return "1 mois";
case "year":
return "1 an";
}
},
plural: ({ divisorKey }) => {
switch (divisorKey) {
case "second":
return "# secondes";
case "minute":
return "# minutes";
case "hour":
return "# heures";
case "day":
return "# jours";
case "week":
return "# semaines";
case "month":
return "# mois";
case "year":
return "# ans";
}
}
},
CopyToClipboardIconButton: {
Expand Down
39 changes: 39 additions & 0 deletions web/src/ui/i18n/resources/it.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,9 @@ export const translations: Translations<"it"> = {
: `Questo link garantirà l'accesso ai tuoi dati per ${expiration}.`,
"label input link": "Link di accesso"
},
SelectTime: {
"validity duration label": "Durata di validità"
},
MySecrets: {
"page title - my secrets": "I miei segreti",
"what this page is used for - my secrets":
Expand Down Expand Up @@ -1034,6 +1037,42 @@ Sentiti libero di esplorare e prendere il controllo dei tuoi deployment Kubernet
case "year":
return "tra # anni";
}
},
singular: ({ divisorKey }) => {
switch (divisorKey) {
case "second":
return "1 secondo";
case "minute":
return "1 minuto";
case "hour":
return "1 ora";
case "day":
return "1 giorno";
case "week":
return "1 settimana";
case "month":
return "1 mese";
case "year":
return "1 anno";
}
},
plural: ({ divisorKey }) => {
switch (divisorKey) {
case "second":
return "# secondi";
case "minute":
return "# minuti";
case "hour":
return "# ore";
case "day":
return "# giorni";
case "week":
return "# settimane";
case "month":
return "# mesi";
case "year":
return "# anni";
}
}
},
CopyToClipboardIconButton: {
Expand Down
39 changes: 39 additions & 0 deletions web/src/ui/i18n/resources/nl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,9 @@ export const translations: Translations<"nl"> = {
: `Deze link geeft toegang tot je gegevens gedurende ${expiration}.`,
"label input link": "Toegangslink"
},
SelectTime: {
"validity duration label": "Geldigheidsduur"
},
MySecrets: {
"page title - my secrets": "My Secrets",
"what this page is used for - my secrets":
Expand Down Expand Up @@ -1036,6 +1039,42 @@ Voel je vrij om te verkennen en de controle over je Kubernetes-implementaties te
case "year":
return "over # jaar";
}
},
singular: ({ divisorKey }) => {
switch (divisorKey) {
case "second":
return "1 seconde";
case "minute":
return "1 minuut";
case "hour":
return "1 uur";
case "day":
return "1 dag";
case "week":
return "1 week";
case "month":
return "1 maand";
case "year":
return "1 jaar";
}
},
plural: ({ divisorKey }) => {
switch (divisorKey) {
case "second":
return "# seconden";
case "minute":
return "# minuten";
case "hour":
return "# uren";
case "day":
return "# dagen";
case "week":
return "# weken";
case "month":
return "# maanden";
case "year":
return "# jaren";
}
}
},
CopyToClipboardIconButton: {
Expand Down
Loading

0 comments on commit bdb72c2

Please sign in to comment.