-
Notifications
You must be signed in to change notification settings - Fork 8
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
Set language from context when using copy endpoint #2845
Comments
@tmkarlsen |
@chrieinv my bad.
|
The translations in the "Texts overrides and translations" section in the H5P are stored in the H5P content. The switching of language is handled by the H5P editor in JavaScript when the user selects a different language from the dropdown. It may be possible to trigger this change after the H5P editor and H5P content are loaded, but a dialog will appear. This may also be possible to handle in JavaScript, but the user experience will not be good. The other option is to copy the code that does the handling, this however increases the complexity when updating H5P Editor as we must verify that the code hasn't changed. |
Copy endpoint flow
Ensure the language from context (NDLA = articles) is set when opening CA to create copies. Edlib (Hub) seems to have gotten this info, as it displays the correct language in the header.
Note: this is the same behavior as when new content is created today -> the language from the article is set within CA + H5P.
Desired solution:
Screenshot shows the desired outcome
The text was updated successfully, but these errors were encountered: