def _get_lang_data(self, lang): with open(f'./resources/lang/{lang}.yml') as f: return YAML(typ='safe').load(f)