Skip to content

fix(Util): getScripts also need to reorder core translations#59518

Open
susnux wants to merge 1 commit intomasterfrom
fix/script-order
Open

fix(Util): getScripts also need to reorder core translations#59518
susnux wants to merge 1 commit intomasterfrom
fix/script-order

Conversation

@susnux
Copy link
Copy Markdown
Contributor

@susnux susnux commented Apr 9, 2026

Summary

Currently core-common and core-main are prepended to the scripts, as they provide the global state. But the script ordering logic does not know about this and might sort core translations after they are used.

Meaning we need to register core translations as soon as the global scope is initialized (so that OC.L10N.register is available).

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

@susnux susnux added this to the Nextcloud 34 milestone Apr 9, 2026
@susnux susnux added bug 3. to review Waiting for reviews javascript labels Apr 9, 2026
@susnux
Copy link
Copy Markdown
Contributor Author

susnux commented Apr 9, 2026

/backport to stable33

@susnux
Copy link
Copy Markdown
Contributor Author

susnux commented Apr 9, 2026

/backport to stable32

Currently `core-common` and `core-main` are prepanded to the scripts,
as they provide the global state. But the script ordering logic does not
know about this and might sort core translations after they are used.

Meaning we need to register core translations as soon as the global
scope is initialized (so that `OC.L10N.register` is available).

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux susnux force-pushed the fix/script-order branch from 176b14f to 8beba76 Compare April 9, 2026 10:03
@susnux susnux marked this pull request as ready for review April 9, 2026 10:03
@susnux susnux requested a review from a team as a code owner April 9, 2026 10:03
@susnux susnux requested review from Altahrim, CarlSchwan, icewind1991 and provokateurin and removed request for a team April 9, 2026 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Core translations not loaded on public sharing pages (PublicTemplateResponse)

1 participant