feat: allow disabling translation for specific languages (#1371)

This commit is contained in:
Niklas Wolf 2023-01-29 13:18:49 +01:00 committed by GitHub
parent e197a1dbe9
commit b48b7f4c16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 130 additions and 12 deletions

View file

@ -12,7 +12,7 @@ const {
} = useTranslation(status, getLanguageCode())
const preferenceHideTranslation = usePreferences('hideTranslation')
const showButton = computed(() => !preferenceHideTranslation.value && isTranslationEnabled && status.language !== getLanguageCode())
const showButton = computed(() => !preferenceHideTranslation.value && isTranslationEnabled)
let translating = $ref(false)
const toggleTranslation = async () => {