i18n
configuration structure in your config/ColdBox.cfc
to the moduleSettings
struct and rename it to cbi18n
to standardize it to module settings.i18n
this is now called cbi18n
to comply with the same global naming convention. Just update your key root in your Moduleconfig.cfc
localeStorage
will use a cbstorages compatible service now. This means you have to specify the WireBox ID now, e.g [email protected]
, [email protected]
etccbi18n
v1 already had java resource bundles. v2 added support for JSON resource bundles. Both flat and nested JSON bundles are supported.myResource.properties
file, you can override them in a myResource_en.properties
and an even more specific myResource_en_US.properties
file. This opens up the possibility to define a generic language resource and define country specific translations in a more specific resource file.myBundle_en_US_somevariant.(properties|json)
myBundle_en_US.(properties|json)
myBundle_en.(properties|json)
myBundle.(properties|json)
onUnknownTranslation
is emitted via an interception when a translation is not found. You will receive the following interception data packet: