tr function

String tr(
  1. String key
)

A shorthand function for accessing translations.

This function returns the translated string for the given key. If the key is not found, it returns the key itself as a fallback.

Implementation

String tr(String key) {
  return Translate(key).toString();
}