Guides
Internationalization (i18n)
Guide for using internationalization with FNE Client
Internationalization (i18n)
This guide shows you how to use internationalization with FNE Client for error messages and translations.
Overview
FNE Client supports internationalization for error messages and translations. Supported languages are French (fr) and English (en).
Configuration
For Laravel / Symfony / Native PHP:
Usage
Error messages are automatically translated according to the configured locale:
Change Locale
Globally
Per Call
Locale is determined by global configuration. To change locale per call, you must configure the translator:
Translated Messages
All error messages are translated:
- Validation: Field validation messages
- API: API error messages
- Exceptions: Exception messages
Next Steps
- Error Handling - Handle errors with translated messages
- Configuration - Configure locale
Need help? Check out the complete documentation or open an issue on GitHub.
