Skip to content

Commit

Permalink
feat: Updated support languages for DeepL. resolved #378
Browse files Browse the repository at this point in the history
  • Loading branch information
bookfere committed Dec 8, 2024
1 parent 357e337 commit edce151
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions engines/languages.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,6 @@
'Zulu': 'zu',
}


gemini = {
'Arabic': 'ar',
'Bengali': 'bn',
Expand Down Expand Up @@ -534,6 +533,7 @@
'Vietnamese': "v'i'"
}

# https://developers.deepl.com/docs/resources/supported-languages
deepl = {
'source': {
'Arabic': 'AR',
Expand All @@ -542,7 +542,7 @@
'Danish': 'DA',
'German': 'DE',
'Greek': 'EL',
'English': 'EN',
'English (all variants)': 'EN',
'Spanish': 'ES',
'Estonian': 'ET',
'Finnish': 'FI',
Expand All @@ -554,18 +554,18 @@
'Korean': 'KO',
'Lithuanian': 'LT',
'Latvian': 'LV',
'Norwegian (Bokmål)': 'NB',
'Norwegian Bokmål': 'NB',
'Dutch': 'NL',
'Polish': 'PL',
'Portuguese': 'PT',
'Portuguese (all variants)': 'PT',
'Romanian': 'RO',
'Russian': 'RU',
'Slovak': 'SK',
'Slovenian': 'SL',
'Swedish': 'SV',
'Turkish': 'TR',
'Ukrainian': 'UK',
'Chinese': 'ZH'
'Chinese (all variants)': 'ZH',
},
'target': {
'Arabic': 'AR',
Expand All @@ -588,7 +588,7 @@
'Korean': 'KO',
'Lithuanian': 'LT',
'Latvian': 'LV',
'Norwegian (Bokmål)': 'NB',
'Norwegian Bokmål': 'NB',
'Dutch': 'NL',
'Polish': 'PL',
'Portuguese': 'PT',
Expand All @@ -601,7 +601,9 @@
'Swedish': 'SV',
'Turkish': 'TR',
'Ukrainian': 'UK',
'Chinese (simplified)': 'ZH'
'Chinese': 'ZH',
'Chinese (simplified)': 'ZH-HANS',
'Chinese (traditional)': 'ZH-HANT',
}
}

Expand Down

0 comments on commit edce151

Please sign in to comment.