replyLocalized
Replies with the localized message at the following path, using the provided locale and parameters.
Bundle resolution
The bundle used is either the defined bundle or one of the BLocalizationConfig.responseBundles.
The locale of the bundle is the best available, for example, if fr_FR is not available, then fr will be used, and otherwise, the root bundle (without any suffix) will be used.
Parameters
The path of the message to translate, will be prefixed with localizationPrefix unless starting with /
The values replacing arguments of the localization template
Throws
If:
localizationBundle is set, but the bundle doesn't exist
No BLocalizationConfig.responseBundles containing the path could be found
If the template requires an argument that was not passed to entries
Deprecated
Pass a Locale instead
Replies with the localized message at the following path, using the provided locale and parameters.
Bundle resolution
The bundle used is either the defined bundle or one of the BLocalizationConfig.responseBundles.
The locale of the bundle is the best available, for example, if fr_FR is not available, then fr will be used, and otherwise, the root bundle (without any suffix) will be used.
Parameters
The path of the message to translate, will be prefixed with localizationPrefix unless starting with /
The values replacing arguments of the localization template
Throws
If:
localizationBundle is set, but the bundle doesn't exist
No BLocalizationConfig.responseBundles containing the path could be found
If the template requires an argument that was not passed to entries