lang method

String? lang(
  1. String code
)

Getting the language dictionary based on the label code provided

Implementation

String? lang(String code){
  if(!_languageMapping.containsKey(_currentSelectedLang)){
    print("NUIMTLingual: Language code not found for $_currentSelectedLang");
    return null;
  }
  return NUIGlobalConfig.get(module: "$_MODULE $_currentSelectedLang")?.getString(code);
}