From b8aa48465344cabd9f0afec2716e3923146f07f9 Mon Sep 17 00:00:00 2001 From: Samir Boulahtit Date: Tue, 3 Mar 2026 05:50:06 +0100 Subject: [PATCH] feat(i18n): complete post-launch i18n phases 5-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Phase 5: Translate homepage-modern.html (~90 new locale keys, all hardcoded strings replaced with _() calls for dashboard mock, features, pricing tiers, testimonial sections) - Phase 6: Translate homepage-minimal.html (17 new locale keys for fallback content, features, and CTA sections) - Phase 7: Add multi-language page.title/content support with title_translations and content_translations JSON columns, Alembic migration cms_002, translated title/content resolution in templates, and seed script updates with tt() helper - Phase 8: Complete lb.json audit — fill 6 missing keys (messages, confirmations), also backfill same keys in fr.json and de.json All 4 locale files now have 340 keys with full parity. Co-Authored-By: Claude Opus 4.6 --- .../templates/billing/platform/signup.html | 75 ++--- app/modules/cms/locales/de.json | 150 +++++++++- app/modules/cms/locales/en.json | 140 +++++++++- app/modules/cms/locales/fr.json | 150 +++++++++- app/modules/cms/locales/lb.json | 150 +++++++++- .../cms_002_add_title_content_translations.py | 41 +++ app/modules/cms/models/content_page.py | 37 +++ app/modules/cms/schemas/homepage_sections.py | 10 + .../templates/cms/platform/content-page.html | 36 +-- .../cms/platform/homepage-minimal.html | 28 +- .../cms/platform/homepage-modern.html | 258 +++++++++--------- .../cms/platform/sections/_pricing.html | 46 ++-- .../cms/platform/sections/_products.html | 6 +- .../marketplace/platform/find-shop.html | 2 +- app/templates/platform/base.html | 10 +- scripts/seed/create_default_content_pages.py | 61 ++++- 16 files changed, 965 insertions(+), 235 deletions(-) create mode 100644 app/modules/cms/migrations/versions/cms_002_add_title_content_translations.py diff --git a/app/modules/billing/templates/billing/platform/signup.html b/app/modules/billing/templates/billing/platform/signup.html index fb764574..2547651b 100644 --- a/app/modules/billing/templates/billing/platform/signup.html +++ b/app/modules/billing/templates/billing/platform/signup.html @@ -2,7 +2,7 @@ {# 3-Step Signup Wizard: Plan → Account → Payment #} {% extends "platform/base.html" %} -{% block title %}Start Your Free Trial - Orion{% endblock %} +{% block title %}{{ _("cms.platform.signup.page_title") }} - {{ platform.name if platform else 'Orion' }}{% endblock %} {% block extra_head %} {# Stripe.js for payment #} @@ -16,7 +16,7 @@ {# Progress Steps #}
-