-
-
Notifications
You must be signed in to change notification settings - Fork 367
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
Localisation of date and time in the activity tables #632
Comments
Looks like Carbon doesn't support defining our own locale strings and only support the So unless someone as an idea how we could solve this, we'll probably require our own fork of Carbon... FYI, this could probably be done using Moment.js, but that would mean handling dates at Handlebar level... |
This could be useful : https://github.com/jenssegers/date |
It looks as though they already took a stab at it. Git blame seems to suggest its used for the |
I tested it out. Works great. Every questions regarding Laravel and localized date points to this package. All that would need to be done is to add it to Only problem, it doesn't use the same locale identifier as UF. Would requires some trick for us to make it work with UF, like the locale metadata thing we talked before... |
Only real difference in local identifier is |
Hum? We use |
That's because they are technically different translations. Ours is more specific. We'll need to look though the other locales the user requested before resorting to lowering specifity. |
That's why I brought up the metadata thing. For example each locale could have a simple YAML/json file containing description and settings about the locale :
Actually, I found the original issue (and get now why I couldn't find it earlier) : userfrosting/i18n#4 |
I'd actually prefer if we used the more generic language codes. If we had @lcharette's fallback language metadata, we could make this change in a backwards-compatible way. |
No description provided.
The text was updated successfully, but these errors were encountered: