Hi.
I've created an admin user for my client, to create blog posts, with "Publisher" role and only these permissions allowed:

Now my client has an issue with the "Published date" selector - it doesn't work. It seems that that new user doesn't have permission to load storm-min.js:

When I log in, as a super admin, everything works and there is no error message in the console. OK, navigator.serviceWorker error is there and I don't know what it is, but it's not in the way and it does not affect date selector.
Thank you for your time and effort.
Cheers.
UPDATE:
Even adding the superuser rights to my Publisher administrator I cannot get a "published date" selector to work, and this is making my client angry as hell since I'm doing all the publishing at the moment.
What is interesting that when I'm impersonating this Publisher administrator, everything works fine.
Could somebody please at least share some ideas about this issue?
@WebShapedBiz can you try run php artisan october:util compile assets in your command line where the site is hosted, and see if that makes a difference?
Thank you so much @bennothommo for your reply. Unfortunately, nothing has changed. It seems that Pikaday has an issue with i18n (see my screenshot with an error). I can create a more elaborate screencast with this issue. I also observed that there are some issues reported on GitHub regarding
Pikaday and i18n on some other projects.
To recapitulate:
Please help me out here with this puzzling issue.
@bennothommo @WebShapedBiz is this because the Translate plugin is setting the locale to HR (Croatian), which might not exist as a backend locale? @WebShapedBiz if you use the account of the client and set their backend preference to use the english locale does that resolve the issue?
Thank you @LukeTowers for joining in.
The backend preference was never changed from the English locale, but I was thinking that this may be the reason behind the issue, so I've copied lang.php file from en folder to hr folder in both CMS and Blog plugin to try to "fool" the system to think there is a Croatian locale, while leaving the backend locale to English.
It didn't work. It's so frustrating because I cannot see the logic behind it. It works for impersonated users but not for actual logged-in user :-(
@WebShapedBiz try setting it explicitly to another locale then, note that there's also a client side localization file that would be used by pickadate that wouldn't be generated from just copying over the lang.php file.
@LukeTowers we could add a fallback option to a default locale if the chosen language is not supported in pickaday.js:opts.i18n: https://github.com/octobercms/october/blob/fb2aa1730cc08e8563908b54b70e942bd2988f5e/modules/system/assets/ui/vendor/pikaday/js/pikaday.js#L244
_wrong link was :)_
@LukeTowers you pointed me to the right direction and it's working now :-D
I'm not an expert here, but all this could be avoided if the system makes mandatory to set a locale for each new administrator. At least one could be aware of that information, instead of chasing it around.
Thank you again @LukeTowers @w20k @bennothommo for your time and effort helping me.
@WebShapedBiz check the value of app.locale, users should be defaulting to that: https://github.com/octobercms/october/blob/master/config/app.php#L78. The backend locale shouldn't have to be set on a user unless it's going to be different from the main one.
This was my app.locale:
```/*
|--------------------------------------------------------------------------
| Application Locale Configuration
|--------------------------------------------------------------------------
|
| The application locale determines the default locale that will be used
| by the translation service provider. You are free to set this value
| to any of the locales which will be supported by the application.
|
*/
'locale' => 'hr',
/*
|--------------------------------------------------------------------------
| Application Fallback Locale
|--------------------------------------------------------------------------
|
| The fallback locale determines the locale to use when the current one
| is not available. You may change the value to correspond to any of
| the language folders that are provided through your application.
|
*/
'fallback_locale' => 'en',
```
Was that where I've scr*d up?
@WebShapedBiz yup. If hr doesn't exist as a locale in October then you shouldn't be setting it there. Set it to en instead, the translation plugin will still work.
Most helpful comment
@LukeTowers you pointed me to the right direction and it's working now :-D
I'm not an expert here, but all this could be avoided if the system makes mandatory to set a locale for each new administrator. At least one could be aware of that information, instead of chasing it around.
Thank you again @LukeTowers @w20k @bennothommo for your time and effort helping me.