diff options
Diffstat (limited to 'src/locale/helpers.ts')
-rw-r--r-- | src/locale/helpers.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/locale/helpers.ts b/src/locale/helpers.ts index 3ada8ef0e..65db32f2f 100644 --- a/src/locale/helpers.ts +++ b/src/locale/helpers.ts @@ -79,8 +79,8 @@ export function isPostInLanguage( return bcp47Match.basicFilter(lang, targetLangs).length > 0 } -export function getTranslatorLink(text: string): string { - return `https://translate.google.com/?sl=auto&text=${encodeURIComponent( +export function getTranslatorLink(text: string, lang: string): string { + return `https://translate.google.com/?sl=auto&tl=${lang}&text=${encodeURIComponent( text, )}` } |