0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/core/frontend/helpers
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
..
tpl Added paywall card to mark end of free content preview (#12663) 2021-02-17 23:00:26 +00:00
asset.js
author.js Improved single author deprecated notices 2021-05-04 17:11:12 +01:00
authors.js Fixed "no-shadow" linting error in server modules (#12287) 2020-10-20 12:02:56 +13:00
body_class.js
cancel_link.js Updated links to ghost.org sites 2021-01-20 09:59:45 +13:00
concat.js
content.js Removed hardcoded accent color fallbacks (#12813) 2021-03-24 18:25:26 +05:30
date.js Improved theme locale handling 2021-05-05 16:13:26 +01:00
encode.js
excerpt.js
facebook_url.js
foreach.js Updated default visibility in foreach for posts to all 2021-03-02 15:44:19 +05:30
get.js
ghost_foot.js
ghost_head.js Disabled portal and stripe in {{ghost_head}} when signup access is none 2021-04-19 17:27:37 +01:00
has.js
img_url.js
index.js
is.js
lang.js Improved theme locale handling 2021-05-05 16:13:26 +01:00
link.js
link_class.js 🐛 Fixed 404 errors if navigation URLs are somehow blank 2021-03-24 09:43:43 +00:00
meta_description.js
meta_title.js
navigation.js Fixed "no-shadow" linting error in server modules (#12287) 2020-10-20 12:02:56 +13:00
page_url.js
pagination.js Updated links to ghost.org sites 2021-01-20 09:59:45 +13:00
plural.js
post_class.js
prev_post.js Improved single author deprecated notices 2021-05-04 17:11:12 +01:00
price.js Fixed 0 amount in new price helper 2021-02-25 20:08:54 +05:30
raw.js
reading_time.js
t.js
tags.js Fixed "no-shadow" linting error in server modules (#12287) 2020-10-20 12:02:56 +13:00
title.js
twitter_url.js
url.js