Skip to content

fix: reject unsupported plural rules - #10

Merged
nepinhum merged 2 commits into
masterfrom
fix/unsupported-plural-rules
Oct 8, 2026
Merged

nepinhum merged 2 commits into
masterfrom
fix/unsupported-plural-rules

Conversation

@nepinhum

@nepinhum nepinhum commented Oct 8, 2026

Copy link
Copy Markdown
Owner

Description

Rejects unsupported plural rules.

Checklist

  • v test . is fully green
  • No unrelated changes bundled in

@nepinhum

nepinhum commented Oct 8, 2026

Copy link
Copy Markdown
Owner Author

@codex review

Repository owner deleted a comment from chatgpt-codex-connector Bot Oct 8, 2026

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

Copy link
Copy Markdown

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: 5e3e626fca

ℹ️ 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".

Comment thread bundle.v
Comment on lines +42 to +43
if !has_plural_rule_for_language(tag) {
return error('no plural rule registered for ${tag.str()}')

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 Validate the default language during construction

Because this validation runs only in add_messages, new_bundle('ru') still succeeds and registers ru as the default even though the resulting bundle cannot load messages for its own default language; a pluralized default_message also fails only later during localization. Apply the same plural-rule check in new_bundle so unsupported defaults are rejected before an unusable bundle is returned.

Useful? React with 👍 / 👎.

@nepinhum
nepinhum merged commit 93830b1 into master Oct 8, 2026
1 check passed
@nepinhum
nepinhum deleted the fix/unsupported-plural-rules branch October 8, 2026 15:00
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