# Resource Bundle Look-ups in Modular Java Applications

DevFeed: [Resource Bundle Look-ups in Modular Java Applications](<https://devfeed.tech/articles/resource-bundle-look-ups-in-modular-java-applications-18863.md>)

Original publisher: [Read original article](<https://www.morling.dev/blog/resource-bundle-lookups-in-modular-java-applications/>)

Published: 2021-08-29T16:30:00Z

Content type: tutorial

Language: en

Sources: [Gunnar Morling](<https://devfeed.tech/sources/gunnar-morling.md>)

Topics: [Java](<https://devfeed.tech/topics/java.md>), [App](<https://devfeed.tech/topics/app.md>), [Development](<https://devfeed.tech/topics/development.md>)

Tags: [java](<https://devfeed.tech/tags/java.md>), [modular-monolith](<https://devfeed.tech/tags/modular-monolith.md>), [module](<https://devfeed.tech/tags/module.md>), [modules](<https://devfeed.tech/tags/modules.md>)

## AI overview

This article explains how to use Java ResourceBundle providers to manage locale-specific error-message resources across named modules in a multi-module application. It describes a design in which individual modules contribute their own bundles while a central component displays or logs messages without knowing the specific modules.

## Source excerpt

Table of Contents The ResourceBundleProvider Interface Resource Bundle Providers Running on the Classpath Discussion and Wrap-Up The ResourceBundle class is Java's workhorse for managing and retrieving locale specific resources, such as error messages of internationalized applications. With the advent of the module system in Java 9, specifics around discovering and loading resource bundles have changed quite a bit, in particular when it comes to retrieving resource bundles across the boundaries of named modules. In this blog post I'd like to discuss how resource bundles can be used in a multi-module application (i.e. a "modular monolith") for internationalizing error messages. The following requirements should be satisified: