Repository navigation
fix(l10n): 209 Dutch strings that never reached the browser - #493
Merged
Merged
Conversation
thematiq shipped 37 l10n/*.json catalogues and zero l10n/*.js. Nextcloud reads the .json server-side for PHP $l->t(); the browser only ever sees the OC.L10N.register() call in the .js. So every one of the 209 Dutch translations in this app was inert in the frontend. That matters more here than anywhere else in the fleet: this is the NL Design System app, whose entire purpose is Dutch government theming, and its settings UI rendered in English to a Dutch account. The generator is petstore's scripts/build-l10n-js.js adopted unchanged, with l10n:build and check:l10n-js so the two halves cannot drift apart again. Verified: 37 .js written, the register call names thematiq (read from appinfo/info.xml), nl.js carries 209 keys with real Dutch values, every file passes node --check and none is empty, and check:l10n-js exits 0.
Contributor
Quality Report — ConductionNL/thematiq @
|
| Check | PHP | Vue | Security | License | Tests |
|---|---|---|---|---|---|
| lint | ✅ | ||||
| phpcs | ✅ | ||||
| phpmd | ✅ | ||||
| psalm | ✅ | ||||
| phpstan | ✅ | ||||
| phpmetrics | ✅ | ||||
| eslint | ✅ | ||||
| stylelint | ✅ | ||||
| build | ✅ | ||||
| check-manifest | ✅ | ||||
| test-l10n | ✅ | ||||
| format | ✅ | ||||
| composer | ✅ | ✅ 104/104 | |||
| npm | ✅ | ✅ 2/2 | |||
| app:check-code | ⏭️ | ||||
| info.xml | ✅ | ||||
| REUSE | ❌ | ||||
| PHPUnit | ✅ | ||||
| Newman | ✅ | ||||
| Playwright | 🚨 NO VERDICT — enabled but never ran | ||||
| Hydra gates | ✅ |
Quality workflow — 2026-08-30 17:21 UTC
Download the full PDF report from the workflow artifacts.
Contributor
Author
|
Refining one line in the description, because the mechanism is worth stating precisely. I wrote that the
So the accurate claim is: the JSON path is real but unreliable, the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
thematiq shipped 37
l10n/*.jsoncatalogues and zerol10n/*.js.Nextcloud reads the
.jsonserver-side for PHP$l->t(). The browser only ever sees theOC.L10N.register()call in the.js. So all 209 Dutch translations in this app were inert in the frontend.That matters more here than anywhere else in the fleet: this is the NL Design System app, whose entire purpose is Dutch government theming, and its settings UI rendered in English to an account set to Dutch. Strings like "Selecteer een Nederlandse overheidsontwerp-tokenset als basis" were already written and already correct, and no user ever saw them.
Measured across the fleet on
development: openregister 37/38, opencatalogi 37/38, dossiq 38/39, petstore 38/38 — and thematiq 0/37.nextcloud-app-templatehad the same gap, fixed in ConductionNL/nextcloud-app-template#186.The generator
scripts/build-l10n-js.jsis petstore's, adopted unchanged rather than reimplemented, plusl10n:buildandcheck:l10n-jsso the two halves cannot drift apart again. Apps carrying that check have measured zero drift; apps without it accumulated between 142 and 1,090 unreachable entries.Verification
.jswritten; the register call namesthematiq, read fromappinfo/info.xmlrather than hardcoded.nl.jscarries 209 keys with real Dutch values, spot-checked rather than counted.node --check, and none is empty — an empty file passesnode --check, so size was checked separately.check:l10n-jsexits 0.nl.json.🤖 Generated with Claude Code