]> BookStack Code Mirror - bookstack/commit
Locales: Removed a lot of existing locale handling 4555/head
authorDan Brown <redacted>
Sun, 17 Sep 2023 21:02:12 +0000 (22:02 +0100)
committerDan Brown <redacted>
Sun, 17 Sep 2023 21:02:12 +0000 (22:02 +0100)
commit78bf11cf653ea9a9268ccb013d444ff60fd375c5
tree92209d3d5d251636a831560d5a742a8e19e0e973
parentb42e8cdb638c711a42d7d7df52238f92c537f2dc
Locales: Removed a lot of existing locale handling

There was a lot of locale handling to get correct/expected date
formatting within the app.
Carbon now has built-in locale content rather than us needing to target
specific system locales.

This also removes setting locale via Carbon directly.
Carbon registers its own Laravel service provider which seems to
accurately pull the correct locale from the app.

For #4555
app/Http/Middleware/Localization.php
app/Translation/LocaleManager.php
Morty Proxy This is a proxified and sanitized view of the page, visit original site.