The Transifex Native SDK solution protects the application from errors caused during rendering. All options are safe-guarding an uninterrupted experience, securing your application from errors introduced by globalization process or unspecified rendering errors, like:
- Missing variables (variables that exist in the translation but their value is not provided)
- Malformed ICU messages (those would break the rendering of the ICU message)
Error handling is always applied, by checking the string to be rendered. If an error is found and the rendering of that translation string fails, an error policy is invoked, which defines what to render instead.
By default, the
SourceStringErrorPolicy is implemented, which tries to render the source string. If this also fails, a default text is rendered instead.
The default text is configured by setting the
TRANSIFEX_ERROR_POLICY setting. An example of setting a different default text would be configuring the setting as such:
Updated about 1 year ago