add khmer lang

This commit is contained in:
xshadowlegendx 2023-03-16 23:51:50 +07:00
parent 7c6fc5dadd
commit 71548b93a7

View File

@ -36,7 +36,7 @@ object Language {
case object German extends NLPLanguage {
val iso2 = "de"
val iso3 = "deu"
}
}
case object English extends NLPLanguage {
val iso2 = "en"
@ -73,6 +73,11 @@ object Language {
val iso3 = "ces"
}
case object Khmer extends Language {
val iso2 = "kh"
val iso3 = "khm"
}
case object Danish extends Language {
val iso2 = "da"
val iso3 = "dan"
@ -166,7 +171,8 @@ object Language {
Lithuanian,
Polish,
Estonian,
Ukrainian
Ukrainian,
Khmer
)
def fromString(str: String): Either[String, Language] = {