Overview
The cbi18n module was built to provide localization and internationalization features to any ColdBox application. It will not only allow you to represent resources in multiple languages, but will also track the user's locale for you. It has a plethora of utilities for localizing strings, dates, currencies and much more.
There are two main models that are registered for you with the following WireBox Id's:
i18n@cbi18n
: Service that tracks user's locale, changing of locales, and a plethora of localized functions. It also bootstraps the resource bundles used in the application.ResourceService@cbi18n
In charge of retrieving language keys from locale specific resource bundles, whether they are Java property files or JSON bundles.
They can either be injected, called via our mixin helpers or added via our ColdBox Delegates:
Once you have access to those objects you can leverage their methods to your ❤️'s content.
Please see the API docs for the latest methods available to you:
Last updated