localize method

String localize(
  1. String language,
  2. String name
)

localizer.localize("bn", "Home", false);

Implementation

String localize(String language, String name) {
  return localizations[name]?[language] ?? name;
}