Move duration translations from server defaults to JS SDK
Duration strings are static and not customizable through the console, so they belong in the frontend cookie-banner package instead. Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
@@ -48,19 +48,6 @@ var defaultUIStringsByLanguage = map[string]map[string]string{
|
||||
"privacy_policy_link_text": "Privacy Policy",
|
||||
"placeholder_text": "This content requires {{category}} cookies.",
|
||||
"placeholder_button": "Manage cookie preferences",
|
||||
"duration_year_one": "{{count}} year",
|
||||
"duration_year_other": "{{count}} years",
|
||||
"duration_month_one": "{{count}} month",
|
||||
"duration_month_other": "{{count}} months",
|
||||
"duration_week_one": "{{count}} week",
|
||||
"duration_week_other": "{{count}} weeks",
|
||||
"duration_day_one": "{{count}} day",
|
||||
"duration_day_other": "{{count}} days",
|
||||
"duration_hour_one": "{{count}} hour",
|
||||
"duration_hour_other": "{{count}} hours",
|
||||
"duration_minute_one": "{{count}} minute",
|
||||
"duration_minute_other": "{{count}} minutes",
|
||||
"duration_session": "session",
|
||||
},
|
||||
"fr": {
|
||||
"banner_title": "Préférences de cookies",
|
||||
@@ -80,19 +67,6 @@ var defaultUIStringsByLanguage = map[string]map[string]string{
|
||||
"privacy_policy_link_text": "Politique de confidentialité",
|
||||
"placeholder_text": "Ce contenu nécessite les cookies {{category}}.",
|
||||
"placeholder_button": "Gérer les préférences de cookies",
|
||||
"duration_year_one": "{{count}} an",
|
||||
"duration_year_other": "{{count}} ans",
|
||||
"duration_month_one": "{{count}} mois",
|
||||
"duration_month_other": "{{count}} mois",
|
||||
"duration_week_one": "{{count}} semaine",
|
||||
"duration_week_other": "{{count}} semaines",
|
||||
"duration_day_one": "{{count}} jour",
|
||||
"duration_day_other": "{{count}} jours",
|
||||
"duration_hour_one": "{{count}} heure",
|
||||
"duration_hour_other": "{{count}} heures",
|
||||
"duration_minute_one": "{{count}} minute",
|
||||
"duration_minute_other": "{{count}} minutes",
|
||||
"duration_session": "session",
|
||||
},
|
||||
"de": {
|
||||
"banner_title": "Cookie-Einstellungen",
|
||||
@@ -112,19 +86,6 @@ var defaultUIStringsByLanguage = map[string]map[string]string{
|
||||
"privacy_policy_link_text": "Datenschutzrichtlinie",
|
||||
"placeholder_text": "Dieser Inhalt erfordert {{category}}-Cookies.",
|
||||
"placeholder_button": "Cookie-Einstellungen verwalten",
|
||||
"duration_year_one": "{{count}} Jahr",
|
||||
"duration_year_other": "{{count}} Jahre",
|
||||
"duration_month_one": "{{count}} Monat",
|
||||
"duration_month_other": "{{count}} Monate",
|
||||
"duration_week_one": "{{count}} Woche",
|
||||
"duration_week_other": "{{count}} Wochen",
|
||||
"duration_day_one": "{{count}} Tag",
|
||||
"duration_day_other": "{{count}} Tage",
|
||||
"duration_hour_one": "{{count}} Stunde",
|
||||
"duration_hour_other": "{{count}} Stunden",
|
||||
"duration_minute_one": "{{count}} Minute",
|
||||
"duration_minute_other": "{{count}} Minuten",
|
||||
"duration_session": "Sitzung",
|
||||
},
|
||||
"es": {
|
||||
"banner_title": "Preferencias de cookies",
|
||||
@@ -144,18 +105,5 @@ var defaultUIStringsByLanguage = map[string]map[string]string{
|
||||
"privacy_policy_link_text": "Política de privacidad",
|
||||
"placeholder_text": "Este contenido requiere cookies de {{category}}.",
|
||||
"placeholder_button": "Gestionar preferencias de cookies",
|
||||
"duration_year_one": "{{count}} año",
|
||||
"duration_year_other": "{{count}} años",
|
||||
"duration_month_one": "{{count}} mes",
|
||||
"duration_month_other": "{{count}} meses",
|
||||
"duration_week_one": "{{count}} semana",
|
||||
"duration_week_other": "{{count}} semanas",
|
||||
"duration_day_one": "{{count}} día",
|
||||
"duration_day_other": "{{count}} días",
|
||||
"duration_hour_one": "{{count}} hora",
|
||||
"duration_hour_other": "{{count}} horas",
|
||||
"duration_minute_one": "{{count}} minuto",
|
||||
"duration_minute_other": "{{count}} minutos",
|
||||
"duration_session": "sesión",
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user