Localization, RTL and SEO
Language context, authoritative URLs and one SEO output.
Language is explicit
MARS content translations are locale-keyed JSON, read through explicit translation access. The public context provides localization.locale, localization.direction and prepared alternates. Use these facts on the document element; avoid global model attribute overrides or route composition.
<html lang="{{ $localization['locale'] }}"
dir="{{ $localization['direction'] }}">
Theme UI labels belong in the Theme's localized UI resources. Editorial translations belong in Content or source-controlled demo packs. They never require twelve duplicated Theme implementations.
Official demo locale status is explicit. The current twelve-locale collection uses draft: required copy is authored and structurally tested, while native-language editorial approval remains open. Structural completeness and human approval are separate facts. Required records must not silently fall back to English.
Design a true RTL experience
Persian and Arabic require RTL reading order, navigation, breadcrumbs and grids. Prefer logical properties such as padding-inline and border-inline-start. Keep logos, photography and technical code unmirrored. Isolate code blocks as LTR when their syntax requires it, while surrounding prose follows the locale.
Test long labels, narrow screens, focus order and technical tables. RTL declaration alone is not visual verification.
Render the prepared SEO contract once
The owning SEO service supplies title, description, robots, canonical, alternates, Open Graph, Twitter and structured data. Use the established SEO partial pattern. A Theme must not add another canonical generator or infer URLs from translated slugs.
Public demo pages are deliberately noindex,follow. They use their own namespace for canonical and alternate links and remain outside the main product sitemap. Local static artifacts carry namespace-relative canonicals until a verified hosting origin exists. Production customer SEO continues to come from the owning services.
Return to rendering for the page context.