The "resourceBundles" Directory - Mura Docs v7.0

The "resourceBundles" Directory

Mura utilizes resource bundles to internationalize various areas of the user interface, making the code locale-independent. Each site in Mura contains a directory of ".properties" files located under {context}/{SiteID}/includes/resourceBundles/.

These .properties files, or resource bundles, are named to indicate the language code, and country code. For example, the language code for English (en) and the country code for United States (US) would be represented as en_us.properties. If Mura cannot find a direct language and region match, it will search for a language match. If a locale's language cannot be found, Mura will fall back to its default of English, or en.properties.

The file itself is comprised of key-value pairs. The keys remain the same throughout each of the .properties files, and the value is translated into the file's designated language. If Mura is searching for a specific key-value pair within a translation, and cannot locate it, Mura will fall back to the English translation.

The example below illustrates the Italian (it) and English (en) files side-by-side.

Note: You should not edit these files directly. If you do, you run the risk of losing your edits or changes whenever you update your site to the latest version.

More information on resource bundles, including how to customize and create your own key-value pairs, is covered in the Mura Developer Guide.