0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00
ghost/test/unit/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
..
test_tpl Updated {{content}} helper partial template name 2021-02-09 13:59:52 +05:30
asset_spec.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
author_spec.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
authors_spec.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
body_class_spec.js Moved theme service to core/server 2021-04-27 15:14:49 +01:00
cancel_link_spec.js Moved hbs engine into new theme engine service 2021-04-19 20:03:30 +01:00
concat_spec.js Moved hbs engine into new theme engine service 2021-04-19 20:03:30 +01:00
content_spec.js Moved hbs engine into new theme engine service 2021-04-19 20:03:30 +01:00
date_spec.js Improved theme locale handling 2021-05-05 16:13:26 +01:00
encode_spec.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
excerpt_spec.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
facebook_url_spec.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
foreach_spec.js Moved hbs engine into new theme engine service 2021-04-19 20:03:30 +01:00
get_spec.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
ghost_foot_spec.js Updated tests that were stubbing old ghost_head/ghost_foot settings keys 2020-07-01 17:58:12 +01:00
ghost_head_spec.js Moved active theme to new theme engine service 2021-04-23 15:28:50 +01:00
has_spec.js Fixed "no-shadow" eslint warning in tests 2020-10-19 17:45:26 +13:00
img_url_spec.js Moved core/server/lib/common/logging to core/shared/logging (#11857) 2020-05-28 19:30:23 +01:00
is_spec.js Moved core/server/lib/common/logging to core/shared/logging (#11857) 2020-05-28 19:30:23 +01:00
lang_spec.js Improved theme locale handling 2021-05-05 16:13:26 +01:00
link_class_spec.js Moved hbs engine into new theme engine service 2021-04-19 20:03:30 +01:00
link_spec.js Moved hbs engine into new theme engine service 2021-04-19 20:03:30 +01:00
meta_description_spec.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
meta_title_spec.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
navigation_spec.js Moved hbs engine into new theme engine service 2021-04-19 20:03:30 +01:00
next_post_spec.js Migrate the default api version from v2 to v3 2021-02-03 15:02:51 +01:00
page_url_spec.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
pagination_spec.js Moved hbs engine into new theme engine service 2021-04-19 20:03:30 +01:00
plural_spec.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
post_class_spec.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
prev_post_spec.js Migrate the default api version from v2 to v3 2021-02-03 15:02:51 +01:00
price_spec.js Moved hbs engine into new theme engine service 2021-04-19 20:03:30 +01:00
raw_spec.js Moved hbs engine into new theme engine service 2021-04-19 20:03:30 +01:00
reading_time_spec.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
t_spec.js Improved theme locale handling 2021-05-05 16:13:26 +01:00
tags_spec.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
title_spec.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
twitter_url_spec.js Updated var declarations to const/let and no lists 2020-04-29 16:51:13 +01:00
url_spec.js Fixed "no-shadow" eslint warning in tests 2020-10-19 17:45:26 +13:00