Language settings updates, new primary language setting (#1471)
* move content languages to screen * add dropdown library, style primary lang select * update settings button * show selected langauges in button * use primary language in translator link * update copy * lint
This commit is contained in:
@@ -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,
|
||||
)}`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user