0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00
ghost/core/frontend/services/theme-engine
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
..
config Moved theme config to new theme engine service 2021-04-21 14:21:32 +01:00
engines Moved theme engines to new theme engine service 2021-04-22 21:05:01 +01:00
handlebars Fixed weird require in theme templates 2021-05-04 13:32:17 +01:00
i18n Improved theme locale handling 2021-05-05 16:13:26 +01:00
active.js Improved theme locale handling 2021-05-05 16:13:26 +01:00
engine.js Moved hbs engine into new theme engine service 2021-04-19 20:03:30 +01:00
index.js Moved activate from themes to the bridge 2021-04-27 13:52:19 +01:00
middleware.js Moved theme middleware to new theme engine service 2021-04-24 20:01:09 +01:00
preview.js Moved theme preview mw to new theme engine service 2021-04-24 19:56:00 +01:00