languageCode property

String get languageCode

Implementation

static String get languageCode {
  final locale = i.localeOrNull ?? i.defaultLocale;
  String l = locale.languageCode;
  if (l == "zh") {
    String? c = locale.countryCode?.toUpperCase();
    if (c == null || c.isEmpty) c = "CN";
    l = "${l}_$c";
  }
  return l;
}