0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/test/unit
Hannah Wolfe 9ce407966f Improved theme locale handling
- when activating a theme, we need to load the current locale
- this request used to be buried deep in the themeI18n init call
- now we surface it in the bridge and pass it down, which is closer to what we want to do with eventually initialising the frontend
with everything it needs up front (or not initialising it, if it isn't needed)

- in the related helpers we depend on the site.locale value instead of proxy -> themeI18n -> settingsCache drastically simplifying the code and removing deep requires
- site.locale is updated via middleware and can be relied upon
2021-05-05 16:13:26 +01:00
..
adapters Removed unused onMany method from events 2021-05-04 13:28:24 +01:00
api 🐛 Fixed __GHOST_URL__ appearing in sitemaps (#12787) 2021-03-18 17:16:37 +00:00
apps Moved active theme to new theme engine service 2021-04-23 15:28:50 +01:00
data Added description to Products & Prices (#12916) 2021-05-04 13:41:48 +01:00
helpers Improved theme locale handling 2021-05-05 16:13:26 +01:00
lib 🐛 Fixed images not having srcset or sizes attributes (#12800) 2021-03-20 22:17:43 +00:00
models Expanded requires of lib/common i18n and events 2021-05-03 17:14:52 +01:00
server Expanded requires of lib/common i18n and events 2021-05-03 17:14:52 +01:00
services Improved theme locale handling 2021-05-05 16:13:26 +01:00
shared Improved i18n with unified getCandidateString fn 2021-05-05 15:53:09 +01:00
web Fixed broken require path (bridge in tests) 2021-04-26 15:01:10 +01:00