Skip to content

v0.29.0: LangSync context_file and ICU namespaces, cms validate causes and params - #24

Merged
jansvabik merged 6 commits into
mainfrom
release/v0.29.0
Nov 26, 2026
Merged

jansvabik merged 6 commits into
mainfrom
release/v0.29.0

Conversation

@jansvabik

Copy link
Copy Markdown
Member

LangSync: context_file key descriptions, --message-syntax plain|icu, sync failure codes and unreviewed counts (server support in production since today). cms validate -o json: cause and params (cms-schema 0.12.2).

cms-schema 0.12.0 gives each finding a cause (which of its rule's
causes it is) and typed params (the facts its message is made of), so
a client can word findings in any language. `cms validate -o json` and
`-o yaml` print them beside the English message and hint, additive to
report version 1; the table and `-o text` are unchanged.

The module's skipped rule now names its reason as a code, with the
sentence in `message`. Report version 1 keeps `quality.skipped[].reason`
English and adds `code` and `params`, and the notes on stderr print the
sentence, not the code.

Signed-off-by: Jan Švábík <jansvabik@jansvabik.cz>
A namespace in .langsync.json can name a context_file, a flat JSON
object of key descriptions in the source language. sync sends the
descriptions of the source file's keys with the job (contexts); the
others are left out with one warning line. A missing or invalid file
and a description over 1,000 characters stop the sync before anything
is sent; a context_file the language scan would read as a language is
refused when the project file is loaded. pull doesn't read it, and init
keeps it (and language_aliases) when a namespace is picked again.

namespaces create and update take --message-syntax plain|icu, from the
generated client's enum; namespaces list shows it. The sync summary
words each translation LangSync didn't store (key, language, code and
its facts, "and N more"), counts unreviewed translations per language,
and names the context file when the server refuses the descriptions.
JSON summaries carry failures and unreviewedPerLanguage.

The LangSync client is regenerated from the current API (the other
services' clients are left as they are).

Signed-off-by: Jan Švábík <jansvabik@jansvabik.cz>
cms-schema 0.12.1 sends the kinds of value a finding names
(params.expected and params.actual) as codes from a closed vocabulary
(group_of_fields where 0.12.0 sent "group of fields"), and a localized
group's mixed field types in params.type and params.otherType. `cms
validate -o json` and `-o yaml` print the params as the module emits
them; the table, `-o text` and every English message and hint read as
before.

Signed-off-by: Jan Švábík <jansvabik@jansvabik.cz>
Signed-off-by: Jan Švábík <jansvabik@jansvabik.cz>

# Conflicts:
#	CHANGELOG.md
#	docs/DESIGN.md
cms-schema 0.12.2 names the kind of schema declaration a refused fact
looks up as a code (params.declarationKind) instead of an English word
in params.kind. nrc cms validate prints findings, not fact refusals, so
its output is unchanged.

Signed-off-by: Jan Švábík <jansvabik@jansvabik.cz>
Signed-off-by: Jan Švábík <jansvabik@jansvabik.cz>
@jansvabik
jansvabik merged commit 2247b34 into main Nov 26, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant