Skip to content

Ignore hidden directories when listing UI translation locales - #70516

Merged
shahar1 merged 1 commit into
apache:mainfrom
potiuk:fix-breeze-locale-hidden-dirs
Jul 27, 2026
Merged

Ignore hidden directories when listing UI translation locales#70516
shahar1 merged 1 commit into
apache:mainfrom
potiuk:fix-breeze-locale-hidden-dirs

Conversation

@potiuk

@potiuk potiuk commented Jul 27, 2026

Copy link
Copy Markdown
Member

breeze ui check-translation-completeness (and the other breeze ui translation commands) treated every subdirectory of airflow-core/src/airflow/ui/public/i18n/locales/ as a locale, including dot-directories left behind by agent/editor tooling — e.g. a stray .claude/.cc-writes/ scratch dir, which git never surfaces because empty directories are untracked.

The result was a hard failure with a misleading message that gives no hint the directory is not a locale at all:

Error: No plural suffixes defined for language '.claude'.

get_locale_files() now skips directories whose name starts with ., plus a regression test.


Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Opus 5)

Generated-by: Claude Code (Opus 5) following the guidelines

Agent and editor tooling leaves dot-directories (e.g. a stray .claude/
scratch dir) inside the i18n locales folder. Every subdirectory was
treated as a locale, so all breeze ui translation commands aborted with
a confusing "No plural suffixes defined for language '.claude'" error
that gives no hint the directory is not a locale at all.
@shahar1
shahar1 merged commit a4d56b4 into apache:main Jul 27, 2026
155 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

Backport successfully created: v3-3-test

Note: As of Merging PRs targeted for Airflow 3.X
the committer who merges the PR is responsible for backporting the PRs that are bug fixes (generally speaking) to the maintenance branches.

In matter of doubt please ask in #release-management Slack channel.

Status Branch Result
v3-3-test PR Link

potiuk added a commit that referenced this pull request Jul 27, 2026
…ales (#70516) (#70518)

Agent and editor tooling leaves dot-directories (e.g. a stray .claude/
scratch dir) inside the i18n locales folder. Every subdirectory was
treated as a locale, so all breeze ui translation commands aborted with
a confusing "No plural suffixes defined for language '.claude'" error
that gives no hint the directory is not a locale at all.
(cherry picked from commit a4d56b4)

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
vatsrahul1001 pushed a commit that referenced this pull request Aug 5, 2026
…ales (#70516) (#70518)

Agent and editor tooling leaves dot-directories (e.g. a stray .claude/
scratch dir) inside the i18n locales folder. Every subdirectory was
treated as a locale, so all breeze ui translation commands aborted with
a confusing "No plural suffixes defined for language '.claude'" error
that gives no hint the directory is not a locale at all.
(cherry picked from commit a4d56b4)

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants