Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/McCloudS/subgen
/ is_valid_language
Method
is_valid_language
language_code.py:165–166 ·
view source on GitHub ↗
(language: str)
Source
from the content-addressed store, hash-verified
163
# is valid language
164
@staticmethod
165
def
is_valid_language(language: str):
166
return
LanguageCode.from_string(language) is not LanguageCode.NONE
167
168
def
to_iso_639_1(self):
169
return
self.iso_639_1
Callers
3
should_skip_file
Function · 0.80
test_valid_iso
Method · 0.80
test_invalid
Method · 0.80
Calls
1
from_string
Method · 0.80
Tested by
2
test_valid_iso
Method · 0.64
test_invalid
Method · 0.64