mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Translation: Split Portuguese langs
This commit is contained in:
@ -106,7 +106,8 @@ const languageCodes = {
|
||||
'Pashto': 'ps',
|
||||
'Persian': 'fa',
|
||||
'Polish': 'pl',
|
||||
'Portuguese (Portugal, Brazil)': 'pt',
|
||||
'Portuguese (Portugal)': 'pt-PT',
|
||||
'Portuguese (Brazil)': 'pt-BR',
|
||||
'Punjabi': 'pa',
|
||||
'Romanian': 'ro',
|
||||
'Russian': 'ru',
|
||||
|
@ -248,8 +248,7 @@ router.post('/deepl', jsonParser, async (request, response) => {
|
||||
params.append('text', text);
|
||||
params.append('target_lang', lang);
|
||||
|
||||
if (['de', 'fr', 'it', 'es', 'nl', 'ja', 'ru'].includes(lang)) {
|
||||
// We don't specify a Portuguese variant, so ignore formality for it.
|
||||
if (['de', 'fr', 'it', 'es', 'nl', 'ja', 'ru', 'pt-BR', 'pt-PT'].includes(lang)) {
|
||||
params.append('formality', formality);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user