Skip to content

build: fix translations in vue modules#8037

Merged
susnux merged 2 commits intomainfrom
fix/l10n
Dec 23, 2025
Merged

build: fix translations in vue modules#8037
susnux merged 2 commits intomainfrom
fix/l10n

Conversation

@susnux
Copy link
Contributor

@susnux susnux commented Dec 22, 2025

☑️ Resolves

When a vue file is handled by vite it will have some query string like source.vue?lang=ts&... so to properly add the correct translations for that file we need to remove the query string.

This resolves an issue where some files (e.g. NcAppSettingsShortcutsSection) were missing their translations in the bundle.

🏁 Checklist

  • ⛑️ Tests are included or are not applicable
  • 📘 Component documentation has been extended, updated or is not applicable
  • 2️⃣ Backport to stable8 for maintained Vue 2 version or not applicable

@susnux susnux added this to the 9.4.0 milestone Dec 22, 2025
@susnux susnux requested review from Antreesy and ShGKme December 22, 2025 17:30
@susnux susnux added bug Something isn't working 3. to review Waiting for reviews labels Dec 22, 2025
@susnux
Copy link
Contributor Author

susnux commented Dec 22, 2025

/backport to stable8

@codecov
Copy link

codecov bot commented Dec 22, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 53.25%. Comparing base (c0a1d30) to head (6d48a9a).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8037   +/-   ##
=======================================
  Coverage   53.25%   53.25%           
=======================================
  Files         101      101           
  Lines        3145     3145           
  Branches      872      872           
=======================================
  Hits         1675     1675           
  Misses       1232     1232           
  Partials      238      238           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

@Antreesy Antreesy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rest changes seem to not change the behaviour; tested, works now for missing translations

Copy link
Contributor

@ShGKme ShGKme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bu I'd remove debug comment generation.

When a vue file is handled by vite it will have some query string like
`source.vue?lang=ts&...` so to properly add the correct translations for
that file we need to remove the query string.

This resolves an issue where some files (e.g. `NcAppSettingsShortcutsSection`)
were missing their translations in the bundle.

Signed-off-by: Ferdinand Thiessen <[email protected]>
@susnux
Copy link
Contributor Author

susnux commented Dec 23, 2025

Bu I'd remove debug comment generation.

Done. No other changes.

@susnux susnux merged commit 254e925 into main Dec 23, 2025
27 checks passed
@susnux susnux deleted the fix/l10n branch December 23, 2025 15:26
@Antreesy Antreesy mentioned this pull request Jan 8, 2026
@Antreesy Antreesy modified the milestones: 9.4.0, 9.3.2 Jan 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants