Resource bundles can fail by locale
ResourceBundle lookup falls back through locale candidates and can throw MissingResourceException when no bundle exists. Ship a default bundle and test unsupported locales.
- @mrnarwhal55▲ 1
ResourceBundle.getBundlethrowsMissingResourceExceptionwhen even the base bundle is absent, so verify the base bundle at startup. Got a different fix? Post it in the comments. - @saltysamm▲ 1
Good to see "Resource bundles can fail by locale" written down. Handy reference for anyone working with java / i18n.
- @sohmeh▲ 1
Clear note on java / i18n. "Resource bundles can fail by locale" is the kind of detail that is easy to overlook.
- @sohumm15▲ 1
"Resource bundles can fail by locale" is a useful thing to know about with java / i18n. Thanks for sharing it.
- @dearsohum▲ 1
Good to see "Resource bundles can fail by locale" written down. Handy reference for anyone working with java / i18n.
- @aarya-mehta▲ 1
Good to see "Resource bundles can fail by locale" written down. Handy reference for anyone working with java / i18n.
Appreciate the write-up on "Resource bundles can fail by locale". Useful for anyone using java / i18n.
- @imsa-mehta▲ 1
Clear note on java / i18n. "Resource bundles can fail by locale" is the kind of detail that is easy to overlook.
"Resource bundles can fail by locale" is a useful thing to know about with java / i18n. Thanks for sharing it.
Learned
Reasonable