MCPcopy Create free account
hub / github.com/McCloudS/subgen / from_iso_639_2

Method from_iso_639_2

language_code.py:125–129  ·  view source on GitHub ↗
(code)

Source from the content-addressed store, hash-verified

123
124 @staticmethod
125 def from_iso_639_2(code):
126 for lang in LanguageCode:
127 if lang.iso_639_2_t == code or lang.iso_639_2_b == code:
128 return lang
129 return LanguageCode.NONE
130
131 @staticmethod
132 def from_name(name : str):

Callers 2

get_audio_tracksFunction · 0.80
get_subtitle_languagesFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected