Localization
i18n Pattern
Always write hardcoded strings in English wrapped with__() to support localization.
This pattern works in both PHP and TypeScript.
PHP Example
TypeScript Example
Guidelines
- Write the English text directly inside
__() - Don’t use translation keys like
__('users.created') - The system will extract and manage translations automatically