Highlighted

I18n translation fallback

dipanjanc686649

02-02-2018

Hi All,

We're implementing translations using the Dictionary. Using the I18n class, we get a key and attempt to retrieve it in a provided Locale.

We're aware it always falls back to the name of the key if the translation isn't available. However, we need to log the failure somewhere.

Looking at the ResourceBundle class, it's supposed to be sending a MissingResourceException, however we're never getting it.

Do you know of a way we can log if the translation attempt failed?

Thanks in Advance.

Dipanjan

Replies

Highlighted