Skip to content

Commit

Permalink
Fusión de la rama nvus a main - Corregido el idioma de estado.status.…
Browse files Browse the repository at this point in the history
…language (#38)

* add ci

* add github yml

* update ci

* update ci

* update error ci

* update

* resolver issue #6

* ci

* udpate ci

* update ci

* a

* add github integration and update mknote

* update

* update code

* update

* update

* update integrations

* update locales

* update

* update

* update

* q

* a

* update

* update

* update v

* update language

---------

Signed-off-by: Javier Caceres <[email protected]>
  • Loading branch information
srnovus authored Nov 7, 2024
1 parent 422efaf commit 13039ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Binary file modified packages/backend/assets/icons/maskable.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions packages/backend/src/server/api/mastodon/helpers/note.ts
Original file line number Diff line number Diff line change
Expand Up @@ -737,11 +737,11 @@ export class NoteHelpers {
throw new Error("No translator is set up on this server.");

// DeepL API only allows "en-US" or "en-GB" for English ("en" won’t work)
if (instanceMeta.deeplAuthKey && targetLang === "en") {
targetLang = "en-US";
if (instanceMeta.deeplAuthKey && targetLang === "es") {
targetLang = "es-ES";
}

let sourceLang = status.language ?? "";
let sourceLang = status.language ?? "es";
let translatedText = "";
if (status.content) {
const translated = await translate(
Expand Down

0 comments on commit 13039ae

Please sign in to comment.