Ghost/core/server/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
..
tpl 🎨 Improved accessibility markup in default navigation.hbs partial (#9137) 2017-10-12 13:57:18 +02:00
asset.js Asset amends (#8294) 2017-04-10 11:30:21 +02:00
author.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
body_class.js Switch to Eslint (#9197) 2017-11-01 13:44:54 +00:00
content.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
date.js Theme translations and blog localisation (#8437) 2018-01-09 14:50:57 +01:00
encode.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
excerpt.js 🐛 Fixed custom post excerpt length (#8826) 2017-08-02 15:09:12 +04:00
facebook_url.js Moved social utility to lib/social 2017-12-14 22:34:05 +01:00
foreach.js Moved visibility utility to static model fn (#9327) 2017-12-13 13:19:51 +01:00
get.js 🐛 Added error handling to prev/next post helpers 2017-08-29 10:31:00 +02:00
ghost_foot.js Switch to Eslint (#9197) 2017-11-01 13:44:54 +00:00
ghost_head.js Import lib/common only 2017-12-12 10:28:13 +01:00
has.js Switch to Eslint (#9197) 2017-11-01 13:44:54 +00:00
img_url.js Import lib/common only 2017-12-12 10:28:13 +01:00
index.js Theme translations and blog localisation (#8437) 2018-01-09 14:50:57 +01:00
is.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
lang.js Theme translations and blog localisation (#8437) 2018-01-09 14:50:57 +01:00
meta_description.js Switch to Eslint (#9197) 2017-11-01 13:44:54 +00:00
meta_title.js Switch to Eslint (#9197) 2017-11-01 13:44:54 +00:00
navigation.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
page_url.js Switch to Eslint (#9197) 2017-11-01 13:44:54 +00:00
pagination.js 🎨 Improved pagination misusage error 2017-11-28 13:44:14 +00:00
plural.js Theme translations and blog localisation (#8437) 2018-01-09 14:50:57 +01:00
post_class.js Switch to Eslint (#9197) 2017-11-01 13:44:54 +00:00
prev_next.js Switch to Eslint (#9197) 2017-11-01 13:44:54 +00:00
proxy.js Moved social utility to lib/social 2017-12-14 22:34:05 +01:00
reading_time.js Theme translations and blog localisation (#8437) 2018-01-09 14:50:57 +01:00
register.js Moved labs, auth, permissions, settings, mail, themes to services (#9339) 2017-12-14 03:01:23 +01:00
t.js Theme translations and blog localisation (#8437) 2018-01-09 14:50:57 +01:00
tags.js Moved visibility utility to static model fn (#9327) 2017-12-13 13:19:51 +01:00
template.js Moved labs, auth, permissions, settings, mail, themes to services (#9339) 2017-12-14 03:01:23 +01:00
title.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
twitter_url.js Moved social utility to lib/social 2017-12-14 22:34:05 +01:00
url.js Helper Proxy & single express-hbs instance (#8225) 2017-04-04 18:07:35 +02:00
utils.js Moved word-count utility to helpers/utils.js (#9328) 2017-12-13 14:05:53 +01:00