Skip to content

feat(API): Add use_ordinal_rules boolean [STRINGS-2273]#846

Merged
Ildar Safin (ildarsafin) merged 3 commits intomainfrom
add_use_ordinal_rules_boolean
Jul 14, 2025
Merged

feat(API): Add use_ordinal_rules boolean [STRINGS-2273]#846
Ildar Safin (ildarsafin) merged 3 commits intomainfrom
add_use_ordinal_rules_boolean

Conversation

@ildarsafin
Copy link
Copy Markdown
Contributor

@ildarsafin Ildar Safin (ildarsafin) commented Jun 10, 2025

use_ordinal_rules boolean is used to define whether is using ORDINAL or CARDINAL pluralization rules.

Add ordinal_plural_forms to locales endpoint.

@ildarsafin Ildar Safin (ildarsafin) changed the title feat(API) Add use_ordinal_rules boolean [STRINGS-2273] feat(API): Add use_ordinal_rules boolean [STRINGS-2273] Jun 10, 2025
type: string
plural:
type: boolean
use_ordinal_rules:
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

perhaps also add in the example below?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

yes I think it should be added there as well

Comment thread schemas/locale.yaml
type: array
items:
type: string
ordinal_plural_forms:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is not public for everyone yet, so we should not expose it on our api docs or libraries.

Copy link
Copy Markdown
Contributor Author

@ildarsafin Ildar Safin (ildarsafin) Jun 16, 2025

Choose a reason for hiding this comment

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

Yes, it will be also revealed after the feature toggle removal. I think it's better to have it prepared and reviewed beforehand so it can be easily merged after the release.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

But I agree that the bigger features should not be exposed to the public for sure 👍

@jablan jablan added the DONT MERGE indicates that the PR should not (yet) be merged label Jun 24, 2025
Comment thread schemas/locale.yaml Outdated
- zero
- one
- other
plural_ordinal_forms:
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

should be ordinal_plural_forms instead, right?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good point! Just fixed it.

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.

3 participants