I18n translation fallback

Avatar

Avatar

dipanjanc686649

Avatar

dipanjanc686649

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

Avatar

Avatar

dipanjanc686649

Avatar

dipanjanc686649

dipanjanc686649

08-02-2018

Can anybody please respond ?

Avatar

Avatar

kautuk_sahni

Community Manager

Total Posts

6.0K

Likes

1.1K

Correct Reply

1.1K

Avatar

kautuk_sahni

Community Manager

Total Posts

6.0K

Likes

1.1K

Correct Reply

1.1K
kautuk_sahni
Community Manager

12-02-2018

Checking internally!!

Avatar

Avatar

sofiyans8042875

Avatar

sofiyans8042875

sofiyans8042875

01-11-2018

Hi,

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

Regards

Sofiyan

Avatar

Avatar

sofiyans8042875

Avatar

sofiyans8042875

sofiyans8042875

01-11-2018

Hi Kautuk,

Did you get any updates fro the team?

Avatar

Avatar

atulj76172708

Avatar

atulj76172708

atulj76172708

07-11-2018

trying to find similar solution.. any suggestions?