From 2b5ce631f8755aa7b588056d8ea8f74b8af3eefb Mon Sep 17 00:00:00 2001 From: Terry Yiu Date: Fri, 3 May 2024 21:39:00 -0400 Subject: [PATCH] Add support for translating to and from Arabic for DeepL Closes: https://github.com/damus-io/api/pull/8 Link: 3daa033d2a0cb05865118354de48215cf2a3d135cb401082e9fff2218bea3bf2-1714840580 Signed-off-by: William Casarin --- src/translate/deepl.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/translate/deepl.js b/src/translate/deepl.js index 9145320..d507823 100644 --- a/src/translate/deepl.js +++ b/src/translate/deepl.js @@ -1,5 +1,5 @@ const translate_sources = new Set([ - 'bg', 'cs', 'da', 'de', 'el', + 'ar', 'bg', 'cs', 'da', 'de', 'el', 'en', 'es', 'et', 'fi', 'fr', 'hu', 'id', 'it', 'ja', 'ko', 'lt', 'lv', 'nb', 'nl', 'pl', @@ -7,7 +7,7 @@ const translate_sources = new Set([ 'sv', 'tr', 'uk', 'zh' ]) const translate_targets = new Set([ - 'bg', 'cs', 'da', 'de', + 'ar', 'bg', 'cs', 'da', 'de', 'el', 'en', 'en-gb', 'en-us', 'es', 'et', 'fi', 'fr', 'hu', 'id', 'it', 'ja',