Repository navigation
fix(report): German filters and summary in a German HTML report - #948
Merged
Merged
Conversation
- describeView(view, schema, { labels }) takes the words of its texts. DESCRIBE_LABELS holds
English and German as whole phrases with placeholders, so each language keeps its word order;
describeLabels(locale) picks one. A key that labels leave out stays English.
- German takes the aggregator names from REPORT_LABELS and the grouping units from GROUPING_NAMES.
- Each phrase is built from the words first and filled once with the view's names and values, so a
name that looks like a placeholder stays as it is.
- English is unchanged, word for word: the MCP server and the CLI keep it.
Refs #798
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…erman
render passes the words of the report's language to describeView, so {{filters}}, {{summary}}
and the page description follow the locale as the report's other words do.
Refs #798
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…les keep English - The ranges take their units from RELATIVE_UNITS. A test checks that every relative unit and direction, comparison, precision, text rule and chart type has words in both languages, and that English reads as before. - A table that labels give in part keeps English for its other entries. - The growth baseline keeps the docs line total of main. Refs #798 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Refs #798 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…cribe # Conflicts: # packages/pivotkit-core/CHANGELOG.md # packages/pivotkit-report/CHANGELOG.md
describe-labels.js is re-exported by pivotkit-core's index.js, so the element's first load carried the German words of the HTML report's filters and summary. Its export line joins BARREL_OFF.report: only the report's chunk reaches it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…gine keeps - No parentheses inside parentheses: ", ohne leere Werte", "Filter: ...". - One whole unit of a relative range named as the engine keeps it: "heute", "gestern", "morgen", "im Vorjahr"; rolling ranges say "innerhalb des letzten Tages". - German quotes for text values; options.locale writes numbers as the locale does, without grouping. English stays word for word. - Top and bottom, columns, value filters and invalid views in plain German. - labels merge at every depth; labels that are not an object throw INVALID_OPTION; DescribeLabelsInput types the nested partial tables. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A host that passes its own labels passes describeLabels too, so the report keeps to one language. By default both follow the locale. The filters and the summary write numbers as the locale does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…the unit around it Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The German words of describeView load with the report group: 29.2 KiB gzip on an official Node 24 build. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…unambiguously; no "current excluded" for a rolling range German separates a list's items with "; " so a decimal comma stays in its number, joins filters with "; und " after their blanks clause, and writes true and false as Ja and Nein. A rolling range (calendar: false) no longer says the current unit is excluded in either language: the engine ignores includeCurrent there. describeLabels(locale, own) puts a host's words over the locale's. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A German report with a partial describeLabels mixed English into its filters and summary. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… words Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ys and words of the wrong kind Each word must have the kind of the same key in DESCRIBE_LABELS (a text, or a table of the same shape), and lang must be a language tag. A wrong word gave "(undefined)" or was ignored. Adds the filterList label for a list of filters alone; describeLabels' result is frozen. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…art from their lists German list items use "; ", so the filter line joined both with one mark. The English line is unchanged. describeLabels with a wrong word throws INVALID_OPTION before any work. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…copies wordsProblem refused few, many, two and zero in a table of forms by count, though lang picks them by Intl.PluralRules. A host's table placed where the base had a text or null was kept by reference and unfrozen. core.md documents and and filterList. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…cribe # Conflicts: # packages/pivotkit-element/build.js # packages/pivotkit-report/CHANGELOG.md
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.
Summary
A German HTML report now writes its filters and its summary in German. Before this change,
describeViewhad English words only.Fixes #798
The
Year is is 5phrase forop: "="was already fixed on main by #869, so this PR does not touch it.pivotkit-core
describeView(view, data, { locale, labels })writes English or German.2,5, „North“.describeLabels(locale, own)with the tableDESCRIBE_LABELS.labelsandownare checked:langthrow;calendar: false) no longer says "current excluded", because the engine ignoresincludeCurrentthere.pivotkit-report
renderwrites{{filters}}and the summary in the locale's language.describeLabels. A host passes its own words with it, merged over the locale's words or over the language itslangnames.{{filters}}are joined by "; und ", so they stay apart from their value lists. The English line is byte-identical.pivotkit-element
Neutral review
I ran three rounds of independent review on the local branch before pushing, then a targeted check of the last fixes. Fixed because of them:
describeLabelsmerge over the locale's words;The last round found nothing blocking.
Left for follow-up issues:
describeLabelscannot be passed through pivotkit-react's Export.Checklist (PRODUCT.md)
CHANGELOG.md(core, report, element) describe the new stateTest plan
npm run lint,npm run types,npm test,npm run growth,npm run pack:check: exit 0npm run test:browseron the state before the last fix round: 2792 passed. Two webkit tests failed because the browser closed during the run; they passed on rerun.🤖 Generated with Claude Code