discourse/app/assets/javascripts/admin/components
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
..
site-settings make code prettier 🎀 2018-07-18 13:09:16 +02:00
ace-editor.js.es6 always loadScript with a script tag (#6411) 2018-10-01 10:06:01 +08:00
admin-backups-logs.js.es6 FIX: Backup logs were usually missing the first few lines 2018-09-19 20:27:35 +02:00
admin-directory-toggle.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
admin-editable-field.js.es6 FIX: Properly reset controller of admin-user-index. (#6760) 2018-12-17 15:28:29 +01:00
admin-form-row.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
admin-graph.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
admin-nav.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
admin-report-chart.js.es6 FIX: makes charts more resilient to resizing (#6758) 2018-12-12 11:11:56 +01:00
admin-report-counters.js.es6 FIX: improves reports resilience (#6239) 2018-08-06 16:57:40 -04:00
admin-report-counts.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
admin-report-inline-table.js.es6 FEATURE: part 2 of dashboard improvements 2018-07-19 14:33:11 -04:00
admin-report-per-day-counts.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
admin-report-storage-stats.js.es6 FEATURE: Improve backup stats on admin dashboard 2018-12-17 11:35:11 +01:00
admin-report-table-cell.js.es6 FIX: improves number/percent support in reports 2018-08-01 18:40:59 -04:00
admin-report-table-header.js.es6 FIX: improves number/percent support in reports 2018-08-01 18:40:59 -04:00
admin-report-table-row.js.es6 FIX: improves number/percent support in reports 2018-08-01 18:40:59 -04:00
admin-report-table.js.es6 FIX: less fancy pages computation for browser compatibility (#6823) 2018-12-28 19:07:29 +01:00
admin-report-trust-level-counts.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
admin-report.js.es6 FIX: handles not found reports in bulk loading (#6582) 2018-11-12 13:47:24 +01:00
admin-user-field-item.js.es6 DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
admin-watched-word.js.es6 DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
admin-web-hook-event-chooser.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
admin-web-hook-event.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
admin-web-hook-status.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
admin-wrapper.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
cancel-link.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
color-input.js.es6 DEV: s/Em/Ember (#6874) 2019-01-11 17:54:23 +01:00
embeddable-host.js.es6 DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
embedding-setting.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
flag-user-lists.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
flagged-post-response.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
flagged-post-title.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
flagged-post.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
highlighted-code.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
inline-edit-checkbox.js.es6 DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
ip-lookup.js.es6 DEV: s/Em/Ember (#6874) 2019-01-11 17:54:23 +01:00
moderation-history-item.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
penalty-post-action.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
permalink-form.js.es6 DEV: s/Em/Ember (#6874) 2019-01-11 17:54:23 +01:00
resumable-upload.js.es6 DEV: s/Em/Ember (#6874) 2019-01-11 17:54:23 +01:00
save-controls.js.es6 DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
screened-ip-address-form.js.es6 DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
secret-value-list.js.es6 FIX: don't allow adding a value containing vertical bar char to the secret list 2018-11-05 12:14:56 +01:00
silence-details.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
site-setting.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
site-settings-image-uploader.js.es6 FEATURE: Upload Site Settings. (#6573) 2018-11-14 15:03:02 +08:00
site-text-summary.js.es6 DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
staff-actions.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
suspension-details.js.es6 DEV: introduces prettier for es6 files 2018-06-15 17:03:24 +02:00
tags-uploader.js.es6 DEV: s/Em/Ember (#6874) 2019-01-11 17:54:23 +01:00
theme-setting-editor.js.es6 FEATURE: Support for localized themes (#6848) 2019-01-17 11:46:11 +00:00
theme-translation.js.es6 FEATURE: Support for localized themes (#6848) 2019-01-17 11:46:11 +00:00
themes-list-item.js.es6 DEV: s/Em/Ember (#6874) 2019-01-11 17:54:23 +01:00
themes-list.js.es6 DEV: s/Em/Ember (#6874) 2019-01-11 17:54:23 +01:00
user-flag-percentage.js.es6 FIX: Translation error 2018-11-01 17:44:55 -04:00
value-list.js.es6 FIX: display select kit body if no choices (#6237) 2018-08-06 11:22:48 -04:00
watched-word-form.js.es6 DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
watched-word-uploader.js.es6 DEV: s/Em/Ember (#6874) 2019-01-11 17:54:23 +01:00