Skip to content
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

DatePicker 404 Not Found for datepicker-en.js file #90

Open
almaz-free opened this issue Jul 10, 2020 · 0 comments
Open

DatePicker 404 Not Found for datepicker-en.js file #90

almaz-free opened this issue Jul 10, 2020 · 0 comments
Labels
status:ready for adoption Feel free to implement this issue. type:bug Bug
Milestone

Comments

@almaz-free
Copy link

almaz-free commented Jul 10, 2020

"DatePicker" class in "yii2-jui" call "DatePickerLanguageAsset" class for registering JavaScript "ui/i18n/datepicker-$language.js" file with language translation for "jQuery UI".
It has check if ($language !== 'en-US') but, if our locale set to 'language' => 'en', it truing include datepicker-en.js file, which not exist in directory "/ui/i18n/".
So we have error in app.log and "Failed to load resource" 404 (Not Found) in browser console.

I think, we need add check for 'en' locale too:
if ($language !== 'en-US' && $language !== 'en')

@samdark samdark added the type:bug Bug label Jul 12, 2020
@samdark samdark added this to the 2.0.8 milestone Jul 12, 2020
@samdark samdark added the status:ready for adoption Feel free to implement this issue. label Jul 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:ready for adoption Feel free to implement this issue. type:bug Bug
Projects
None yet
Development

No branches or pull requests

2 participants