From 138746bdcc5cea809b415b0be8af887aab06ac2c Mon Sep 17 00:00:00 2001 From: diondiondion Date: Thu, 17 Jul 2025 13:12:54 +0200 Subject: [PATCH] fix: Add `lang` attribute to current composer language in alt text modal (#35412) --- app/javascript/mastodon/features/alt_text_modal/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/javascript/mastodon/features/alt_text_modal/index.tsx b/app/javascript/mastodon/features/alt_text_modal/index.tsx index 8a91e14e312..f285c35929c 100644 --- a/app/javascript/mastodon/features/alt_text_modal/index.tsx +++ b/app/javascript/mastodon/features/alt_text_modal/index.tsx @@ -261,7 +261,9 @@ export const AltTextModal = forwardRef>( ); const lang = useAppSelector( (state) => - (state.compose as ImmutableMap).get('lang') as string, + (state.compose as ImmutableMap).get( + 'language', + ) as string, ); const focusX = (media?.getIn(['meta', 'focus', 'x'], 0) as number | undefined) ?? 0;