Open confact opened 3 years ago
I'm guessing the key error is coming from IsoCode3to1
and not LanguageDetector
? Not all languages have a 2 character code, specifically lesser used languages like Cebuano which is apparently what the language detector guessed. In this case we should probably throw our own error, but either way you'd want to catch it.
I tried to use this emoji and word array and makes it a string:
Then run this code:
Then I get this error: