Add files
Signed-off-by: András Schmelczer <andras@schmelczer.dev>
This commit is contained in:
commit
d79a75d352
1 changed files with 24317 additions and 0 deletions
10
good_ai/src/sus/language/english_name_of_language.py
Normal file
10
good_ai/src/sus/language/english_name_of_language.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
from typing import Optional
|
||||
|
||||
from langcodes import Language
|
||||
|
||||
|
||||
def english_name_of_language(language_code: Optional[str]) -> str:
|
||||
if not language_code:
|
||||
language_code = "und"
|
||||
|
||||
return Language.get(language_code).display_name()
|
||||
Loading…
Reference in a new issue