The localizedErrorMessage service retrieves a localized error message based on a given error code and a mandatory language parameter, ensuring an enhanced user experience with clear and specific error information.
This service supports the following languages: French, Spanish, English, and German.
The language parameter is mandatory and must be provided in one of the following formats:
- Short format:
fr,en,es,de. - Full format: as returned by
applicationLanguageCodein userProfile, e.g.,fr-FR.
For example, if the error code is global.businessErrors.invalidSteuernumberNumber and the requested language is en, the response will be The identification number is not valid.