Skip to content

Add languages() to the Starlark lint API (mendixlabs/mxcli#1306) - #1031

Merged
ako merged 2 commits into
mainfrom
claude/gracious-hopper-7vmzhf
Oct 8, 2026
Merged

ako merged 2 commits into
mainfrom
claude/gracious-hopper-7vmzhf

Conversation

@ako

@ako ako commented Oct 8, 2026

Copy link
Copy Markdown
Owner

A lint rule had no way to read the enabled project languages: strings()
has a row for every stored translation, and a fresh en_US-only app already
carries nl_NL texts, so enabling a language changed nothing a rule could
see, and a rule calling languages() failed with "undefined: languages".

languages() returns one language struct (code, is_default,
check_completeness) per language enabled in the project settings, read
through LintReader.GetProjectSettings like project_security(). It needs
no full catalog build; a failed settings read fails the rule rather than
answering [].

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01CEhfut5q23z8UtgD762ZPc

claude added 2 commits October 7, 2026 21:48
A lint rule had no way to read the enabled project languages: strings()
has a row for every stored translation, and a fresh en_US-only app already
carries nl_NL texts, so enabling a language changed nothing a rule could
see, and a rule calling languages() failed with "undefined: languages".

languages() returns one `language` struct (code, is_default,
check_completeness) per language enabled in the project settings, read
through LintReader.GetProjectSettings like project_security(). It needs
no full catalog build; a failed settings read fails the rule rather than
answering [].

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CEhfut5q23z8UtgD762ZPc
@ako
ako merged commit 4982c02 into main Oct 8, 2026
31 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.

2 participants