discourse/app/assets/stylesheets/common/admin
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
..
admin_base.scss FIX: uses flex: 1 0 0; instead of flex: 1; for better browser compat (#6826) 2018-12-28 20:21:32 +01:00
admin_report_chart.scss FEATURE: part 2 of dashboard improvements 2018-07-19 14:33:11 -04:00
admin_report_counters.scss FIX: uses flex: 1 0 0; instead of flex: 1; for better browser compat (#6826) 2018-12-28 20:21:32 +01:00
admin_report_inline_table.scss FEATURE: part 2 of dashboard improvements 2018-07-19 14:33:11 -04:00
admin_report_table.scss FIX: quality/bugfix dashboard/reports pass (#6283) 2018-08-17 16:19:25 +02:00
admin_report.scss FIX: reports issues with ie11 (#6828) 2018-12-28 21:32:07 +01:00
admin_reports.scss FIX: uses flex: 1 0 0; instead of flex: 1; for better browser compat (#6826) 2018-12-28 20:21:32 +01:00
api.scss mobile admin cleanup 2018-07-13 01:43:40 -04:00
backups.scss UX: Remove double scrollbars from backup logs 2018-09-19 20:27:34 +02:00
badges.scss FIX: broken badge groupings modal UI (#6653) 2018-11-22 17:09:45 +01:00
customize.scss FEATURE: Support for localized themes (#6848) 2019-01-17 11:46:11 +00:00
dashboard_next.scss UX: Reducing usage of btn-small, simplifying styles 2019-01-11 19:41:09 -05:00
dashboard_previous.scss Upgrade to FontAwesome 5 (take two) (#6673) 2018-11-26 16:49:57 -05:00
emails.scss DEV: Apply code review. 2018-12-05 21:56:18 +01:00
flagging.scss FIX: Add topic status to flagged topics list 2019-01-09 10:59:35 -05:00
moderation_history.scss DEV: adds prettier (#5956) 2018-06-08 11:49:31 +02:00
plugins.scss Streamlining some breakpoint mixins 2018-07-12 16:39:16 -04:00
settings.scss UX: Contain site setting uploads within the div. 2018-11-21 10:09:53 +08:00
staff_logs.scss Upgrade to FontAwesome 5 (take two) (#6673) 2018-11-26 16:49:57 -05:00
suspend.scss DEV: adds prettier (#5956) 2018-06-08 11:49:31 +02:00
users.scss UX: general cleanup of inputs, buttons and select elements - part 1 2018-09-19 20:37:04 +08:00