Commit 03e2ad19 authored by Michal Čihař's avatar Michal Čihař

Glosbe does not support language variants

parent ca42fe21
...@@ -31,7 +31,7 @@ class GlosbeTranslation(MachineTranslation): ...@@ -31,7 +31,7 @@ class GlosbeTranslation(MachineTranslation):
''' '''
Converts language to service specific code. Converts language to service specific code.
''' '''
return language.replace('_', '-').lower() return language.replace('_', '-').split('-')[0].lower()
def is_supported(self, language): def is_supported(self, language):
''' '''
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment