Documentation · Chapter 11

Install and configure PHPAML i18n.

The optional i18n module creates catalogs, manifest settings, environment defaults, and a translator service.

Every lesson starts from the problem, explains the mechanism, then gives a concrete verification.

Install the module

aml install i18n installs phpaml/i18n and creates initial en/fr JSON catalogs in src/locales.

phpaml — zsh
aml install i18n
aml i18n:list
aml i18n:check

Read the manifest

The i18n section enables the module, names the catalog directory, lists supported locales, and orders detection strategies.

Understand the environment

APP_LOCALE and APP_FALLBACK_LOCALE override defaults on one installation without changing the shared manifest.