generateCode static method
Generate code for provided locale
Implementation
static String generateCode(Locale locale) {
return locale.languageCode +
((locale.countryCode != null && locale.countryCode!.isNotEmpty)
? "_" + locale.countryCode!
: "");
}