discourse/spec
David Taylor 880311dd4d
FEATURE: Support for localized themes (#6848)
- Themes can supply translation files in a format like `/locales/{locale}.yml`. These files should be valid YAML, with a single top level key equal to the locale being defined. For now these can only be defined using the `discourse_theme` CLI, importing a `.tar.gz`, or from a GIT repository.

- Fallback is handled on a global level (if the locale is not defined in the theme), as well as on individual keys (if some keys are missing from the selected interface language).

- Administrators can override individual keys on a per-theme basis in the /admin/customize/themes user interface.

- Theme developers should access defined translations using the new theme prefix variables:
  JavaScript: `I18n.t(themePrefix("my_translation_key"))`
  Handlebars: `{{theme-i18n "my_translation_key"}}` or `{{i18n (theme-prefix "my_translation_key")}}`

- To design for backwards compatibility, theme developers can check for the presence of the `themePrefix` variable in JavaScript

- As part of this, the old `{{themeSetting.setting_name}}` syntax is deprecated in favour of `{{theme-setting "setting_name"}}`
2019-01-17 11:46:11 +00:00
..
components FEATURE: Remove full quotes only from new posts. (#6862) 2019-01-17 13:24:32 +11:00
fabricators FEATURE: Consolidate likes notifications. (#6879) 2019-01-16 10:40:16 +08:00
fixtures FEATURE: allow extending CSP base-uri and object-src 2019-01-09 15:34:14 -05:00
helpers FEATURE: Allow the base font size to be changed on a per-user basis (#6859) 2019-01-14 13:21:46 +00:00
import_export FIX: topic and category exporters were only exporting users who created the first post 2018-01-16 12:51:53 -05:00
integration FEATURE: Automatically expire keys if not used for a configurable amount of time. (#6264) 2018-08-20 17:36:14 +02:00
integrity FIX: Relative links in translations should work with subfolder 2018-11-08 23:31:05 +00:00
jobs FEATURE: introduce ultra_low priority queue 2019-01-17 14:53:19 +11:00
lib FEATURE: Support for localized themes (#6848) 2019-01-17 11:46:11 +00:00
mailers FEATURE: Include "via <site_name>" in email From header 2019-01-04 17:06:19 +01:00
models FEATURE: Support for localized themes (#6848) 2019-01-17 11:46:11 +00:00
multisite FIX: Multisite DB was leaving old data in test mode 2019-01-09 15:20:37 -05:00
requests FEATURE: Support for localized themes (#6848) 2019-01-17 11:46:11 +00:00
serializers DEV: more accurate spec for UserSummarySerializer 2019-01-14 07:26:10 +05:30
services DEV: Consolidate and remove duplicated liked notifications tests. 2019-01-17 11:14:17 +08:00
support DEV: Stablize the multisite tests. 2019-01-16 10:29:36 +08:00
tasks suppress print output when running specs 2017-10-31 16:06:11 +05:30
views/omniauth_callbacks FEATURE: Use translated name for 'your email has been authenticated by' (#6649) 2018-11-22 19:12:04 +00:00
rails_helper.rb DEV: Stablize the multisite tests. 2019-01-16 10:29:36 +08:00