-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: language-change-issue #18270
base: main
Are you sure you want to change the base?
fix: language-change-issue #18270
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
26d0716
to
2e1bdb3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@joshuaellis checked the PR fixes the issues only thing what I am not sure about is that is changes the srcLang of the track to be always English. so I am not sure if that could cause a problem.
Thanks for your PR! Could you please target the |
@@ -15,7 +15,7 @@ const CardAsset = styled(Flex)` | |||
`; | |||
|
|||
export const AssetPreview = forwardRef(({ mime, url, name, ...props }, ref) => { | |||
const [lang] = usePersistentState('strapi-admin-language', 'en'); | |||
const lang = 'en'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I actually think we can just get rid of this and the prop srcLang
it's not really needed and iirc you need to know the language of the video, which might not be en
.
What does it do?
Fix #18156
Describe the technical changes you did.
Removed the
usePersistentState
and madelang
local to AssetPreview component.Why is it needed?
The media editor dialog was changing the
strapi-admin-language
toen
which was overriding the locale chosen by the user.How to test it?
Profile
page and saveEdit asset
. Hit refresh, it should not change the language back to englishThanks,
Related issue(s)/PR(s)
Let us know if this is related to any issue/pull request