setLangs method
void
setLangs()
Implementation
void setLangs() {
try {
Locale locale = Localizations.localeOf(context);
record["langs"] = [locale.languageCode];
} catch (e) {
// Do nothing.
// Set locale when the locale is set on context.
}
}