Skip to content
prod e051e98
Browse

Localization

Objective — Expand to new locales without forking vendor Blade — language files, locale middleware, and payment methods per region.

  • Rank markets by revenue potential, support cost, and regulatory burden.
  • List UI strings scope (admin vs customer-facing) before quoting translation.
  • Store strings in lang/{locale}/ — never hardcode in vendor views; use @lang or __() in customizations.
  • Locale switcher + session/app()->setLocale() middleware.
  • Fallback locale defined; missing keys log in staging only
graph LR
EN["lang/en/*.php"] --> FR["lang/fr/*.php"]
FR --> UI["Blade / JSON responses"]
UI --> SEO["hreflang + regional URLs"]
  • Export keys → vendor or CAT tool → import → QA in staging per locale.
  • Freeze string freeze window before major releases.
  • hreflang tags and locale-prefixed URLs or subdomain strategy (pick one).
  • Local payment methods (Stripe Payment Methods API) where checkout supports them.