Translation: Split Portuguese langs
| @@ -106,7 +106,8 @@ const languageCodes = { | ||
| 106 | 106 | 'Pashto': 'ps', |
| 107 | 107 | 'Persian': 'fa', |
| 108 | 108 | 'Polish': 'pl', |
| 109 | 109 | 'Portuguese (Portugal, Brazil)': 'pt-PT', |
| 110 | + 'Portuguese (Brazil)': 'pt-BR', | |
| 110 | 111 | 'Punjabi': 'pa', |
| 111 | 112 | 'Romanian': 'ro', |
| 112 | 113 | 'Russian': 'ru', |
| @@ -248,8 +248,7 @@ router.post('/deepl', jsonParser, async (request, response) => { | ||
| 248 | 248 | params.append('text', text); |
| 249 | 249 | params.append('target_lang', lang); |
| 250 | 250 | |
| 251 | 251 | if (['de', 'fr', 'it', 'es', 'nl', 'ja', 'ru', 'pt-BR', 'pt-PT'].includes(lang)) { |
| 252 | - // We don't specify a Portuguese variant, so ignore formality for it. | |
| 253 | 252 | params.append('formality', formality); |
| 254 | 253 | } |
| 255 | 254 | |