trans function

String trans(
  1. String key, [
  2. Map<String, Object?> replace = const {},
  3. String? locale
])

Laravel's __() and trans() (a leading underscore makes a Dart name private, so there is no __): the line for key in the current locale with replace applied, or key itself.

Implementation

String trans(
  String key, [
  Map<String, Object?> replace = const {},
  String? locale,
]) => _active().get(key, replace: replace, locale: locale);