def _get_locales():
 lang_path = path('kuma', 'settings', 'languages.json')
 with open(lang_path, 'r') as lang_file:
  json_locales = json.load(lang_file)
 locales = {}
 for (locale, meta) in json_locales.items():
  locales[locale] = _Language(meta['English'], meta['native'])
 return locales

def _get_locales ( ) : lang_path = path ( 'kuma' , 'settings' , 'languages.json' ) with open ( lang_path , 'r' ) as lang_file : json_locales = json . load ( lang_file ) locales = { } for ( locale , meta ) in json_locales . items ( ) : locales [ locale ] = _Language ( meta [ 'English' ] , meta [ 'native' ] ) return locales
load locales data from languages .