diff --git a/locales/de.json b/locales/de.json index d13e80a..4a85c1f 100644 --- a/locales/de.json +++ b/locales/de.json @@ -291,7 +291,6 @@ "hero_image_path": "Einstellungen > Homepage > Hero-Bild", "featured_products": "Ausgewählte Produkte - Einstellungen > Homepage > Ausgewählte Produkte", "featured_categories": "Ausgewählte Kategorien - Einstellungen > Homepage > Ausgewählte Kategorien", - "promo_banner": "Promo-Banner - Einstellungen > Homepage > Promo-Banner > Überschrift", "on_sale": "Im Angebot - Einstellungen > Homepage > Im Angebot > Produkte", "featured_product": "Ausgewähltes Produkt - Einstellungen > Homepage > Ausgewähltes Produkt" } diff --git a/locales/en.default.json b/locales/en.default.json index 20ebb7a..abd2b42 100644 --- a/locales/en.default.json +++ b/locales/en.default.json @@ -291,7 +291,6 @@ "hero_image_path": "Settings > Homepage > Hero Image", "featured_products": "Featured Products - Settings > Homepage > Featured Products", "featured_categories": "Featured Categories - Settings > Homepage > Featured Categories", - "promo_banner": "Promo Banner - Settings > Homepage > Promo Banner > Heading", "on_sale": "On Sale - Settings > Homepage > On Sale > Products", "featured_product": "Featured Product - Settings > Homepage > Featured Product" } diff --git a/locales/es.json b/locales/es.json index 2cd18f0..45afee2 100644 --- a/locales/es.json +++ b/locales/es.json @@ -291,7 +291,6 @@ "hero_image_path": "Configuración > Inicio > Imagen principal", "featured_products": "Productos destacados - Configuración > Inicio > Productos destacados", "featured_categories": "Categorías destacadas - Configuración > Inicio > Categorías destacadas", - "promo_banner": "Banner promocional - Configuración > Inicio > Banner promocional > Encabezado", "on_sale": "En oferta - Configuración > Inicio > En oferta > Productos", "featured_product": "Producto destacado - Configuración > Inicio > Producto destacado" } diff --git a/locales/fi.json b/locales/fi.json index c996cc2..55bf6b8 100644 --- a/locales/fi.json +++ b/locales/fi.json @@ -291,7 +291,6 @@ "hero_image_path": "Settings > Homepage > Hero Image", "featured_products": "Featured Products - Settings > Homepage > Featured Products", "featured_categories": "Featured Categories - Settings > Homepage > Featured Categories", - "promo_banner": "Promo Banner - Settings > Homepage > Promo Banner > Heading", "on_sale": "On Sale - Settings > Homepage > On Sale > Products", "featured_product": "Featured Product - Settings > Homepage > Featured Product" } diff --git a/locales/fr.json b/locales/fr.json index cac6edd..2611b98 100644 --- a/locales/fr.json +++ b/locales/fr.json @@ -291,7 +291,6 @@ "hero_image_path": "Paramètres > Accueil > Image principale", "featured_products": "Produits en vedette - Paramètres > Accueil > Produits en vedette", "featured_categories": "Catégories en vedette - Paramètres > Accueil > Catégories en vedette", - "promo_banner": "Bannière promotionnelle - Paramètres > Accueil > Bannière promotionnelle > Titre", "on_sale": "En promotion - Paramètres > Accueil > En promotion > Produits", "featured_product": "Produit en vedette - Paramètres > Accueil > Produit en vedette" } diff --git a/locales/it.json b/locales/it.json index a59aaf7..f517f69 100644 --- a/locales/it.json +++ b/locales/it.json @@ -291,7 +291,6 @@ "hero_image_path": "Settings > Homepage > Hero Image", "featured_products": "Featured Products - Settings > Homepage > Featured Products", "featured_categories": "Featured Categories - Settings > Homepage > Featured Categories", - "promo_banner": "Promo Banner - Settings > Homepage > Promo Banner > Heading", "on_sale": "On Sale - Settings > Homepage > On Sale > Products", "featured_product": "Featured Product - Settings > Homepage > Featured Product" } diff --git a/locales/nl.json b/locales/nl.json index dd668ab..1cabc0f 100644 --- a/locales/nl.json +++ b/locales/nl.json @@ -291,7 +291,6 @@ "hero_image_path": "Settings > Homepage > Hero Image", "featured_products": "Featured Products - Settings > Homepage > Featured Products", "featured_categories": "Featured Categories - Settings > Homepage > Featured Categories", - "promo_banner": "Promo Banner - Settings > Homepage > Promo Banner > Heading", "on_sale": "On Sale - Settings > Homepage > On Sale > Products", "featured_product": "Featured Product - Settings > Homepage > Featured Product" } diff --git a/locales/no.json b/locales/no.json index 54d7b51..d71390a 100644 --- a/locales/no.json +++ b/locales/no.json @@ -291,7 +291,6 @@ "hero_image_path": "Settings > Homepage > Hero Image", "featured_products": "Featured Products - Settings > Homepage > Featured Products", "featured_categories": "Featured Categories - Settings > Homepage > Featured Categories", - "promo_banner": "Promo Banner - Settings > Homepage > Promo Banner > Heading", "on_sale": "On Sale - Settings > Homepage > On Sale > Products", "featured_product": "Featured Product - Settings > Homepage > Featured Product" } diff --git a/locales/pt.json b/locales/pt.json index 367aeb8..f3d0e15 100644 --- a/locales/pt.json +++ b/locales/pt.json @@ -291,7 +291,6 @@ "hero_image_path": "Settings > Homepage > Hero Image", "featured_products": "Featured Products - Settings > Homepage > Featured Products", "featured_categories": "Featured Categories - Settings > Homepage > Featured Categories", - "promo_banner": "Promo Banner - Settings > Homepage > Promo Banner > Heading", "on_sale": "On Sale - Settings > Homepage > On Sale > Products", "featured_product": "Featured Product - Settings > Homepage > Featured Product" } diff --git a/locales/sv.json b/locales/sv.json index a964123..6b966a1 100644 --- a/locales/sv.json +++ b/locales/sv.json @@ -291,7 +291,6 @@ "hero_image_path": "Settings > Homepage > Hero Image", "featured_products": "Featured Products - Settings > Homepage > Featured Products", "featured_categories": "Featured Categories - Settings > Homepage > Featured Categories", - "promo_banner": "Promo Banner - Settings > Homepage > Promo Banner > Heading", "on_sale": "On Sale - Settings > Homepage > On Sale > Products", "featured_product": "Featured Product - Settings > Homepage > Featured Product" } diff --git a/locales/th.json b/locales/th.json index 6d55c0b..407ad52 100644 --- a/locales/th.json +++ b/locales/th.json @@ -291,7 +291,6 @@ "hero_image_path": "Settings > Homepage > Hero Image", "featured_products": "Featured Products - Settings > Homepage > Featured Products", "featured_categories": "Featured Categories - Settings > Homepage > Featured Categories", - "promo_banner": "Promo Banner - Settings > Homepage > Promo Banner > Heading", "on_sale": "On Sale - Settings > Homepage > On Sale > Products", "featured_product": "Featured Product - Settings > Homepage > Featured Product" } diff --git a/tests/test_localization_contracts.py b/tests/test_localization_contracts.py index 8e8b64d..b3f057e 100644 --- a/tests/test_localization_contracts.py +++ b/tests/test_localization_contracts.py @@ -76,10 +76,14 @@ def template_paths(): def localized_default_settings_from_templates(): settings = set() + localized_default_vars = set() + + for path in template_paths(): + text = path.read_text() + localized_default_vars.update(LOCALIZED_DEFAULT_ASSIGNMENT_PATTERN.findall(text)) for path in template_paths(): text = path.read_text() - localized_default_vars = set(LOCALIZED_DEFAULT_ASSIGNMENT_PATTERN.findall(text)) for setting_name, default_var in SETTING_DEFAULT_PATTERN.findall(text): if default_var in localized_default_vars: settings.add(setting_name)