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

Method from_iso_639_1

language_code.py:118–122  ·  view source on GitHub ↗
(code)

Source from the content-addressed store, hash-verified

116
117 @staticmethod
118 def from_iso_639_1(code):
119 for lang in LanguageCode:
120 if lang.iso_639_1 == code:
121 return lang
122 return LanguageCode.NONE
123
124 @staticmethod
125 def from_iso_639_2(code):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected