[Bug] - Language codes with digits triggers "Invalid language code" Yii exception
Open
Nobody has claimed this yet.
bug
- Dominant language
- PHP
- Stars
- 3.6k
- Forks
- 705
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 134
Description
Description
Language codes containing digits (i.e. "es-419", "en-150", "en-001" ) trigger an exception. This issue has been resolved in YII 2.0.45
Creating this issue as a placeholder until the YII 2.0.45 is publicly available and can be updated in composer.json

References
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by checking composer.json for the Yii dependency version and compare it with the Yii 2.0.45 release mentioned in the issue. Update the dependency once that version is publicly available, then confirm the language codes es-419, en-150, and en-001 no longer trigger the exception.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend, internationalization, localization
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100