Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

I18n translation fallback

dipanjanc686649
Level 1
Level 1

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

0 Replies
sofiyans8042875
Level 2
Level 2

Hi,

I am also trying to get the approach for log the failure.  Anyone got any solution for this?

Regards

Sofiyan

atulj76172708
Level 3
Level 3

trying to find similar solution.. any suggestions?