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