default translate to device language (#1207)
This commit is contained in:
parent
4a59178cd2
commit
55ad56f689
4 changed files with 5 additions and 10 deletions
|
@ -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}`)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue