StringTranslator extension

Extension that applies text translation in karee.

This extension adds two methods for translation.

on

Methods

translate() → String

Available on String, provided by the StringTranslator extension

Method that considers a string as a key from i18n and return the translation (value associated in your i18n to this key).
translateWithParams(Map<String, String> params) → String

Available on String, provided by the StringTranslator extension

Method that considers a string as a key from i18n and replace all the translation parameters params with their values and return the translated string.