0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/core/test/unit/helpers
juan-g f671f9d2c9 Theme translations and blog localisation (#8437)
refs #5345, refs #3801

- Blog localisation
  - default is `en` (English)
  - you can change the language code in the admin panel, see https://github.com/TryGhost/Ghost-Admin/pull/703
  - blog behaviour changes depending on the language e.g. date helper format
  - theme translation get's loaded if available depending on the language setting
  - falls back to english if not available

- Theme translation
  - complete automatic translation of Ghost's frontend for site visitors (themes, etc.), to quickly deploy a site in a non-English language
  - added {{t}} and {{lang}} helper
  - no backend or admin panel translations (!)
  - easily readable translation keys - very simple translation
  - server restart required when adding new language files or changing existing files in the theme
  - no language code validation for now (will be added soon)
  - a full theme translation requires to translate Ghost core templates (e.g. subscriber form)
  - when activating a different theme, theme translations are auto re-loaded
  - when switching language of blog, theme translations are auto re-loaded

- Bump gscan to version 1.3.0 to support more known helpers

**Documentation can be found at https://themes.ghost.org/v1.20.0/docs/i18n.**
2018-01-09 14:50:57 +01:00
..
test_tpl
asset_spec.js Moved labs, auth, permissions, settings, mail, themes to services (#9339) 2017-12-14 03:01:23 +01:00
author_spec.js
body_class_spec.js Moved labs, auth, permissions, settings, mail, themes to services (#9339) 2017-12-14 03:01:23 +01:00
content_spec.js
date_spec.js
encode_spec.js
excerpt_spec.js
facebook_url_spec.js
foreach_spec.js Moved labs, auth, permissions, settings, mail, themes to services (#9339) 2017-12-14 03:01:23 +01:00
get_spec.js Moved labs, auth, permissions, settings, mail, themes to services (#9339) 2017-12-14 03:01:23 +01:00
ghost_foot_spec.js
ghost_head_spec.js Moved image utils to lib/image 2017-12-14 20:46:53 +01:00
has_spec.js
img_url_spec.js Import lib/common only 2017-12-12 10:28:13 +01:00
index_spec.js Theme translations and blog localisation (#8437) 2018-01-09 14:50:57 +01:00
is_spec.js Import lib/common only 2017-12-12 10:28:13 +01:00
lang_spec.js Theme translations and blog localisation (#8437) 2018-01-09 14:50:57 +01:00
meta_description_spec.js Moved labs, auth, permissions, settings, mail, themes to services (#9339) 2017-12-14 03:01:23 +01:00
meta_title_spec.js Moved labs, auth, permissions, settings, mail, themes to services (#9339) 2017-12-14 03:01:23 +01:00
navigation_spec.js Moved labs, auth, permissions, settings, mail, themes to services (#9339) 2017-12-14 03:01:23 +01:00
next_post_spec.js Import lib/common only 2017-12-12 10:28:13 +01:00
page_url_spec.js
pagination_spec.js Moved labs, auth, permissions, settings, mail, themes to services (#9339) 2017-12-14 03:01:23 +01:00
plural_spec.js
post_class_spec.js
prev_post_spec.js Import lib/common only 2017-12-12 10:28:13 +01:00
reading_time_spec.js
t_spec.js Theme translations and blog localisation (#8437) 2018-01-09 14:50:57 +01:00
tags_spec.js
template_spec.js Moved labs, auth, permissions, settings, mail, themes to services (#9339) 2017-12-14 03:01:23 +01:00
title_spec.js
twitter_url_spec.js
url_spec.js Bump sinon to version 4.1.2 (#9283) 2017-11-28 18:19:23 +01:00
utils_spec.js Moved word-count utility to helpers/utils.js (#9328) 2017-12-13 14:05:53 +01:00