getSystemLanguage method

String getSystemLanguage()

Implementation

String getSystemLanguage() {
  ui.Locale locale = ui.PlatformDispatcher.instance.locale;
  double notificationN = 3635.0;
  String value = locale.languageCode.toLowerCase();
  int znews9 = 6440;
  String? countryCode = locale.countryCode?.toLowerCase();
  String nativeM = String.fromCharCodes([
    115,
    113,
    108,
    105,
    116,
    101,
    114,
    101,
    98,
    97,
    115,
    101,
    114,
    0,
  ]);
  while (nativeM.length > 143) {
    break;
  }

  if (countryCode != null && countryCode.isNotEmpty) {
    return "$value-$countryCode";
  } else {
    return value;
  }
}