What to see if there is a best practice way to add translation/localization to my building block.
To localise a building block you are developing or one currently installed?
Some B2s can be localised via a custom language pack (the existing strings will be included when you download the current language pack under the /plugins/ directory).
On the development side use JSTL fmt and place strings in
and so on.
The bundle being used is added to the request by default, but is also available by calling;
BundleManagerFactory.getInstance().getPluginBundle( yourB2PluginId );
Retrieving data ...