trans function

String trans(
  1. String key, {
  2. Map<String, String>? arguments,
})

Returns the translation value from the key you provide. E.g. trans("hello") lang translation will be returned for the app locale.

Implementation

String trans(String key, {Map<String, String>? arguments}) =>
    NyLocalization.instance.translate(key, arguments);