discourse/config/locales
Martin Brennan 3e3f3f7b7e
DEV: Add time shortcut picker component and libs and refactor bookmark modal controller into component which uses time shortcut picker (#11802)
This PR moves all of the time picking functionality from the bookmark modal and controller into a reusable time-shortcut-picker component, which will be used for the topic timer UI revamp. All of the utility JS for getting dates like tomorrow/next week/next month etc. have also been moved into a separate utility lib.

The time-shortcut-picker has a couple of options that can be passed in:

* prefilledDatetime - The date and time to parse and prefill into the custom date and time section, useful for editing interfaces.
* onTimeSelected (callback) - Called when one of the time shortcuts is clicked, and passes the type of the shortcut (e.g. tomorrow) and the datetime selected.
* additionalOptionsToShow - An array of option ids to show (by default `later_today` and `later_this_week` are hidden)
* hiddenOptions - An array of option ids to hide
* customOptions - An array of custom options to display (e.g. the option to select a post date for the bookmarks modal). The options should have the below properties:
    * id
    * icon
    * label (I18n key)
    * time (moment datetime object)
    * timeFormatted
    * hidden

The other major work in this PR is moving all of the bookmark functionality out of the bookmark modal controller and into its own component, where it makes more sense to be able to access elements on the page via `document`. Tests have been added to accompany this move, and existing acceptance tests for bookmark are all passing.
2021-02-01 09:03:41 +10:00
..
client.ar.yml Update translations (#11848) 2021-01-26 14:52:35 +01:00
client.be.yml Update translations (#11492) 2020-12-15 15:25:10 +01:00
client.bg.yml Update translations (#11635) 2021-01-05 14:27:00 +01:00
client.bs_BA.yml Update translations (#11848) 2021-01-26 14:52:35 +01:00
client.ca.yml Update translations (#11848) 2021-01-26 14:52:35 +01:00
client.cs.yml Update translations (#11635) 2021-01-05 14:27:00 +01:00
client.da.yml Update translations (#11848) 2021-01-26 14:52:35 +01:00
client.de.yml Update translations (#11848) 2021-01-26 14:52:35 +01:00
client.el.yml Update translations (#11848) 2021-01-26 14:52:35 +01:00
client.en.yml DEV: Add time shortcut picker component and libs and refactor bookmark modal controller into component which uses time shortcut picker (#11802) 2021-02-01 09:03:41 +10:00
client.en_GB.yml Update translations (#11848) 2021-01-26 14:52:35 +01:00
client.es.yml Update translations (#11848) 2021-01-26 14:52:35 +01:00
client.et.yml Update translations (#11635) 2021-01-05 14:27:00 +01:00
client.fa_IR.yml Update translations (#11779) 2021-01-20 22:58:26 +01:00
client.fi.yml Update translations (#11848) 2021-01-26 14:52:35 +01:00
client.fr.yml Update translations (#11848) 2021-01-26 14:52:35 +01:00
client.gl.yml Update translations (#11848) 2021-01-26 14:52:35 +01:00
client.he.yml Update translations (#11848) 2021-01-26 14:52:35 +01:00
client.hu.yml Update translations (#11848) 2021-01-26 14:52:35 +01:00
client.hy.yml Update translations (#11848) 2021-01-26 14:52:35 +01:00
client.id.yml Update translations (#11557) 2020-12-22 14:49:40 +01:00
client.it.yml Update translations (#11848) 2021-01-26 14:52:35 +01:00
client.ja.yml Update translations (#11848) 2021-01-26 14:52:35 +01:00
client.ko.yml Update translations (#11848) 2021-01-26 14:52:35 +01:00
client.lt.yml Update translations (#11635) 2021-01-05 14:27:00 +01:00
client.lv.yml Update translations (#11635) 2021-01-05 14:27:00 +01:00
client.nb_NO.yml Update translations (#11635) 2021-01-05 14:27:00 +01:00
client.nl.yml Update translations (#11848) 2021-01-26 14:52:35 +01:00
client.pl_PL.yml Update translations (#11848) 2021-01-26 14:52:35 +01:00
client.pt.yml Update translations (#11635) 2021-01-05 14:27:00 +01:00
client.pt_BR.yml Update translations (#11848) 2021-01-26 14:52:35 +01:00
client.ro.yml Update translations (#11779) 2021-01-20 22:58:26 +01:00
client.ru.yml Update translations (#11848) 2021-01-26 14:52:35 +01:00
client.sk.yml Update translations (#11635) 2021-01-05 14:27:00 +01:00
client.sl.yml Update translations (#11848) 2021-01-26 14:52:35 +01:00
client.sq.yml Update translations (#11635) 2021-01-05 14:27:00 +01:00
client.sr.yml Update translations (#11635) 2021-01-05 14:27:00 +01:00
client.sv.yml Update translations (#11848) 2021-01-26 14:52:35 +01:00
client.sw.yml Update translations (#11635) 2021-01-05 14:27:00 +01:00
client.te.yml Update translations (#11492) 2020-12-15 15:25:10 +01:00
client.th.yml Update translations (#11689) 2021-01-12 14:29:05 +01:00
client.tr_TR.yml Update translations (#11848) 2021-01-26 14:52:35 +01:00
client.uk.yml Update translations (#11848) 2021-01-26 14:52:35 +01:00
client.ur.yml Update translations (#11848) 2021-01-26 14:52:35 +01:00
client.vi.yml Update translations (#11848) 2021-01-26 14:52:35 +01:00
client.zh_CN.yml Update translations (#11848) 2021-01-26 14:52:35 +01:00
client.zh_TW.yml Update translations (#11689) 2021-01-12 14:29:05 +01:00
names.yml FEATURE: Add English (UK) as locale (#11768) 2021-01-20 21:32:22 +01:00
plurals.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
server.ar.yml Update translations (#11635) 2021-01-05 14:27:00 +01:00
server.be.yml Update translations (#11689) 2021-01-12 14:29:05 +01:00
server.bg.yml Update translations (#11635) 2021-01-05 14:27:00 +01:00
server.bs_BA.yml Update translations (#11635) 2021-01-05 14:27:00 +01:00
server.ca.yml Update translations (#11689) 2021-01-12 14:29:05 +01:00
server.cs.yml Update translations (#11601) 2020-12-29 19:44:53 +01:00
server.da.yml Update translations (#11635) 2021-01-05 14:27:00 +01:00
server.de.yml Update translations (#11848) 2021-01-26 14:52:35 +01:00
server.el.yml Update translations (#11635) 2021-01-05 14:27:00 +01:00
server.en.yml remove hidden area in flagged removed post msg (#11901) 2021-01-29 15:42:04 -08:00
server.en_GB.yml Update translations (#11779) 2021-01-20 22:58:26 +01:00
server.es.yml Update translations (#11848) 2021-01-26 14:52:35 +01:00
server.et.yml Update translations (#11601) 2020-12-29 19:44:53 +01:00
server.fa_IR.yml Update translations (#11756) 2021-01-19 16:14:59 +01:00
server.fi.yml Update translations (#11756) 2021-01-19 16:14:59 +01:00
server.fr.yml Update translations (#11848) 2021-01-26 14:52:35 +01:00
server.gl.yml Update translations (#11848) 2021-01-26 14:52:35 +01:00
server.he.yml Update translations (#11779) 2021-01-20 22:58:26 +01:00
server.hu.yml Update translations (#11182) 2020-11-10 15:23:06 +01:00
server.hy.yml Update translations (#11689) 2021-01-12 14:29:05 +01:00
server.id.yml Update translations (#11087) 2020-10-30 16:06:32 +01:00
server.it.yml Update translations (#11848) 2021-01-26 14:52:35 +01:00
server.ja.yml Update translations (#11689) 2021-01-12 14:29:05 +01:00
server.ko.yml Update translations (#11848) 2021-01-26 14:52:35 +01:00
server.lt.yml Update translations (#10944) 2020-10-17 00:07:21 +02:00
server.lv.yml Update translations (#10944) 2020-10-17 00:07:21 +02:00
server.nb_NO.yml Update translations (#11635) 2021-01-05 14:27:00 +01:00
server.nl.yml Update translations (#11689) 2021-01-12 14:29:05 +01:00
server.pl_PL.yml Update translations (#11848) 2021-01-26 14:52:35 +01:00
server.pt.yml Update translations (#11635) 2021-01-05 14:27:00 +01:00
server.pt_BR.yml Update translations (#11764) 2021-01-20 12:43:57 +01:00
server.ro.yml Update translations (#11756) 2021-01-19 16:14:59 +01:00
server.ru.yml Update translations (#11764) 2021-01-20 12:43:57 +01:00
server.sk.yml Update translations (#11635) 2021-01-05 14:27:00 +01:00
server.sl.yml Update translations (#11601) 2020-12-29 19:44:53 +01:00
server.sq.yml Update translations (#11635) 2021-01-05 14:27:00 +01:00
server.sr.yml Update translations 2020-10-06 15:43:13 +02:00
server.sv.yml Update translations (#11756) 2021-01-19 16:14:59 +01:00
server.sw.yml Update translations (#11635) 2021-01-05 14:27:00 +01:00
server.te.yml Update translations (#11601) 2020-12-29 19:44:53 +01:00
server.th.yml Update translations (#10944) 2020-10-17 00:07:21 +02:00
server.tr_TR.yml Update translations (#11756) 2021-01-19 16:14:59 +01:00
server.uk.yml Update translations (#11756) 2021-01-19 16:14:59 +01:00
server.ur.yml Update translations (#11689) 2021-01-12 14:29:05 +01:00
server.vi.yml Update translations (#11635) 2021-01-05 14:27:00 +01:00
server.zh_CN.yml Update translations (#11756) 2021-01-19 16:14:59 +01:00
server.zh_TW.yml Update translations (#11689) 2021-01-12 14:29:05 +01:00
transliterate.ar.yml Create transliterate.ar.yml (#6197) 2018-07-31 14:41:49 +10:00
transliterate.bg.yml FEATURE: Add Bulgarian language 2018-05-29 21:07:17 +02:00
transliterate.de.yml
transliterate.el.yml UX: Add transliteration support for the Greek language 2019-04-25 22:49:21 +02:00
transliterate.en.yml
transliterate.ru.yml
transliterate.vi.yml FIX: i18n integrity specs 2017-02-24 11:35:33 +01:00