Localising AEM components across language copies

AEM's I18n and Localization: Managing Language Copies of Components is ultimately a systems-design problem. A translated string may look correct while its component loses a link, breaks a layout or leaks an untranslated property. Internationalisation (i18n) prepares content and code for multiple languages; localisation (l10n) adapts it to a particular market and locale.

Language copies separate market content from shared component definitions, but that separation works only when authoring, translation, delivery and testing agree on the same boundaries. CIRCUIT’s developer audience therefore needed architecture that preserved reuse without publishing every component separately by hand.

For Australian teams, those boundaries matter. Sydney and Melbourne contain large Chinese, Vietnamese, Arabic, Greek and other multilingual communities, while tourism and education campaigns often address Japanese-speaking travellers. Business copy usually follows Australian English conventions, yet dates, currency, time zones and regional campaigns require their own treatment.

Mobile use is routine on trains and buses, and customers move between metropolitan and regional connections with uneven bandwidth. Personalisation and preference data must also respect the Privacy Act 1988 and the Australian Privacy Principles. Localisation should cover language, locale, devices, accessibility and data handling as one discipline.

Treat language copies as an architectural layer

A typical AEM Sites structure can place an English language master at /content/brand/en and copies at /content/brand/fr or /content/brand/ja. The cq:languageMaster and cq:language mixins can make that hierarchy explicit. Use /content/brand/en-au only when copy, offers or compliance differ; otherwise, en-AU can remain a rendering locale within the English master.

Language copies should own locale-specific content, not duplicate code, scripts or business logic. Components continue to resolve the same resource type and properties, giving architects one implementation surface. This prevents teams from forking a hero banner or form for every market and clarifies which fields translators may change.

That architecture-first approach was a recurring strength of CIRCUIT sessions, and the archived session recordings remain useful references for implementation patterns, workshop discussions and AEM architecture decisions made by the developer community.

Model components for stable localisation

Begin with a contract for each component: stable identifiers and structure on one side, translatable values on the other. Component paths, resource types, link targets, scripts and configuration should not change merely because the language changes. This lets AEM reuse one implementation while language copies safely vary headings, body text, calls to action and metadata.

Dialog fields need equally clear rules. Put author-facing labels and help text in shared dictionaries or localisation projects, not hard-coded in interfaces. Store rich text and alternative text as translatable fields, keep validation locale-neutral, and represent quantities with message keys rather than concatenating words. Sightly expressions should consume resolved values without assuming sentence order.

The model should also describe assets and behaviour. Images may need culturally appropriate crops, while videos may require captions and transcripts in each language. Date and number fields should retain semantic values until presentation, and links should point to the correct locale-neutral or locale-specific target. Clear ownership prevents translators from changing fields that drive JavaScript behaviour or analytics dimensions.

Build translation into the content lifecycle

A dependable flow moves content from source authoring through extraction, translation, review and publication, with status visible to editors. Context matters as much as the extracted string: screenshots, field names, intended audiences and usage examples reduce false friends and mistranslated terminology. Translators should work within the same project used for extraction so updates and re-use remain traceable.

Machine translation can accelerate first drafts for low-risk content, but it needs controlled deployment, terminology rules and human review. Australian reviewers should check local spelling, tone, campaign claims and regulated wording rather than accepting idioms imported from US or UK English. A nominated language owner can approve each market, while central governance protects shared terminology and accessibility language.

Localisation also has a wider developer-community dimension. The WordPress Melbourne event highlights how translation concerns extend beyond one CMS, particularly for organisations publishing through several channels. Shared glossaries, asset naming rules and review responsibilities then become more valuable than isolated per-platform translation settings.

Design locale-aware experience delivery

Language detection should be predictable and visible. Give visitors an explicit language selector, preserve their choice, and retain locale-specific URLs where search visibility or campaign attribution requires them. Use hreflang and canonical tags consistently for equivalent pages, and avoid automatic redirects that make content difficult to share. Missing translations should follow a deliberate fallback policy rather than silently mixing languages inside one component.

Format values with internationalisation APIs and locale data instead of manually appending units. Australian English uses day-month-year ordering, A$ currency and Australian date and time conventions, but every market still needs its own defaults. Pluralisation, right-to-left layout for Arabic and Hebrew, font coverage and text expansion must be considered at component level, not patched after a page fails in production.

Keep preference storage proportionate. A remembered locale may be necessary for navigation, but it should not become an undisclosed tracking identifier. Under the Privacy Act 1988, teams should document the purpose of preference data, apply the Australian Privacy Principles, and obtain consent where required. Separating functional locale storage from analytics identifiers also gives privacy and marketing teams clearer controls.

Validate components in real market conditions

Automation should catch missing keys, copied source strings, invalid encodings and obvious layout overflow before human review. Pseudo-localisation can simulate longer text and unusual characters, while visual regression tests compare the same component across every supported locale. Unit tests should verify that translated values reach the correct template locations and that non-translatable configuration remains untouched.

Functional testing must follow the user journey, not merely inspect pages. Exercise navigation, forms, search, downloads and calls to action in each language, including keyboard operation and screen-reader labels. Confirm that validation messages appear in the selected language and that error recovery retains the visitor’s input. This is particularly important when a shared component contains both translated content and stable tracking identifiers.

Australian conditions add useful edge cases. Test on the mobile devices and variable connections used during a commute in Sydney or Melbourne, then check pages served to regional areas around Perth or Brisbane. Localised pages may cross Australian Eastern, Central and Western time zones, so event times need explicit time-zone handling. Review language switching with daylight-saving changes alongside everyday browser and assistive-technology combinations.

Connect AEM to the wider technology estate

A localisation platform often exchanges content with translation management, analytics, digital asset management and publishing services. Use stable identifiers and documented APIs so a corrected string can return to the correct language copy without overwriting an editor’s later change. Webhooks and scheduled jobs should be idempotent, observable and secure, particularly when they move unpublished content between systems.

Organisations with a mixed content estate need consistent policies rather than identical tools. Teams running Drupal alongside AEM can compare editorial and translation practices through resources such as Drupal 8 Day, while preserving AEM-specific language-master behaviour. Shared glossaries and acceptance criteria allow each platform to remain flexible without producing inconsistent terminology for customers.

Identity, consent and localisation should meet without becoming entangled. Some teams store locale and regional preferences in an authenticated profile, while others use anonymous session data. Define which attributes are functional, which are personal information and who may change them. That separation supports privacy review and prevents a display-language preference from silently altering unrelated personalisation or marketing profiles.

Start with a measurable component pilot

Choose one reusable, high-traffic component and map every field before changing the content model. Decide what belongs in a language copy, what stays in a shared component, which values require context and what happens when a translation is missing. Run the pilot with en-AU and one strategically important market locale so regional differences and translation expansion are both visible.

Measure the pilot with editor effort, translation turnaround, missing-content rates, accessibility defects and page performance. If locale preferences depend on single sign-on, validate that flow separately; the existing AEM SAML guide provides a useful reference for the identity boundary without treating authentication as a translation feature.

  • Inventory component fields and classify translatable, localisable and immutable values.
  • Define language-master inheritance, fallback behaviour and market ownership before translation begins.
  • Pilot one reusable component with en-AU and a second locale before scaling.
  • Automate extraction, pseudo-localisation, accessibility checks and visual regression.

To begin, select one component, document its translation contract, and run it through an Australian pilot with a second language copy before extending the pattern across the AEM estate.