-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[NFR] allow Request::getBestLanguage() to return language without dialect #3135
Labels
new feature request
Planned Feature or New Feature Request
Comments
Closed
This comment was marked as abuse.
This comment was marked as abuse.
Closing in favor of #13855. Will revisit if the community votes for it, or in later versions. |
niden
added a commit
that referenced
this issue
Jan 11, 2020
niden
added a commit
that referenced
this issue
Jan 11, 2020
niden
added a commit
that referenced
this issue
Jan 11, 2020
Resolved in #14698 Thank you @quasipickle |
niden
added a commit
that referenced
this issue
Feb 4, 2020
niden
added a commit
that referenced
this issue
Feb 4, 2020
niden
added a commit
that referenced
this issue
Feb 4, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I use
\Phalcon\Mvc\Request->getBestLanguage()
on my browser, it returns "en-US". I think it would be helpful in some cases to have a way to just return "en", as my language files won't be broken down into "en-UK", "en-US", "en-CA", etc.Something like
getBestLanguageFamily()
, or a variable passed togetBestLanguage()
would be helpful.The text was updated successfully, but these errors were encountered: