Skip to content

feat: utilize language_regex from translation-finder#19523

Merged
nijel merged 1 commit into
WeblateOrg:mainfrom
nijel:language-filter
May 12, 2026
Merged

feat: utilize language_regex from translation-finder#19523
nijel merged 1 commit into
WeblateOrg:mainfrom
nijel:language-filter

Conversation

@nijel
Copy link
Copy Markdown
Member

@nijel nijel commented May 12, 2026

This allows it to propose languages exclusion.

This allows it to propose languages exclusion.
@nijel nijel added this to the 2026.5 milestone May 12, 2026
@nijel nijel self-assigned this May 12, 2026
@nijel nijel enabled auto-merge (rebase) May 12, 2026 18:36
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 9932201177

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".



def get_discovery_language_regex(result: DiscoveryResult) -> str:
return str(result.get("language_regex") or "^[^.]+$")
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Bump translation-finder before reading language_regex

With the dependency still pinned to translation-finder==3.0 in pyproject.toml, the discovered results produced by that release do not include a language_regex field, so this helper always falls back to ^[^.]+$ in the real discovery/create flows. The new tests inject language_regex manually, but users choosing detected presets from discover() will still not get the source-language exclusion until the dependency is updated to a version that actually emits the field.

Useful? React with 👍 / 👎.

@argos-ci
Copy link
Copy Markdown

argos-ci Bot commented May 12, 2026

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
default (Inspect) ⚠️ Changes detected (Review) 8 changed May 12, 2026, 7:31 PM

@nijel nijel merged commit 010498a into WeblateOrg:main May 12, 2026
31 of 33 checks passed
@nijel nijel deleted the language-filter branch May 12, 2026 19:46
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