feat: use configured writing/post language of user from mastodon (#2282)

This commit is contained in:
Niklas Wolf 2023-07-29 14:01:17 +02:00 committed by GitHub
parent 0a9f2d99d5
commit 675f5184a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 23 additions and 7 deletions

View file

@ -15,7 +15,7 @@ export function usePublish(options: {
const { client } = $(useMasto())
const settings = useUserSettings()
const preferredLanguage = $computed(() => (settings.value?.language || 'en').split('-')[0])
const preferredLanguage = $computed(() => (currentUser.value?.account.source.language || settings.value?.language || 'en').split('-')[0])
let isSending = $ref(false)
const isExpanded = $ref(false)