You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The trans_choice translation function always uses the pluralization rules of the selected locale. If the provided key is not translated in this locale, it falls back to the fallback locale, but it still uses the pluralization rules of the preferred locale.
For example, Czech has 3 forms, while English has 2. If the translator must fall back to English, it should use the English pluralization rules.
As Laravel is an open source project, we rely on the community to help us diagnose and fix issues as it is not possible to research and fix every issue reported to us via GitHub.
If possible, please make a pull request fixing the issue you have described, along with corresponding tests. All pull requests are promptly reviewed by the Laravel team.
Laravel Version
11.8.0
PHP Version
8.2.18
Database Driver & Version
MySQL 8.0.32 for Linux on x86_64
Description
The
trans_choice
translation function always uses the pluralization rules of the selected locale. If the provided key is not translated in this locale, it falls back to the fallback locale, but it still uses the pluralization rules of the preferred locale.For example, Czech has 3 forms, while English has 2. If the translator must fall back to English, it should use the English pluralization rules.
Steps To Reproduce
The text was updated successfully, but these errors were encountered: