setLanguage static method

bool setLanguage(
  1. String language
)

Implementation

static bool setLanguage(String language) {
  final resources = stringResources.getLanguageResources(language);
  if (resources == null) {
    return false;
  }

  _language = language;
  Strings.load(resources, clear: true);
  return true;
}