Translate string by translateFunc.
String getTranslatedString(String name, String defaultValue) { return translateFunc.call(name, defaultValue); }