default translate to device language (#1207)

This commit is contained in:
Eric Bailey 2023-08-17 17:45:36 -05:00 committed by GitHub
parent 4a59178cd2
commit 55ad56f689
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 10 deletions

View file

@ -67,8 +67,7 @@ export const PostThreadItem = observer(function PostThreadItem({
}, [item.post.uri, item.post.author])
const repostsTitle = 'Reposts of this post'
const primaryLanguage = store.preferences.contentLanguages[0] || 'en'
const translatorUrl = getTranslatorLink(primaryLanguage, record?.text || '')
const translatorUrl = getTranslatorLink(record?.text || '')
const needsTranslation = useMemo(
() =>
store.preferences.contentLanguages.length > 0 &&