discourse/config/locales
Isaac Janzen a2b038ffe7
DEV: Upgrade search-menu to glimmer (#20482)
# Top level view
This PR is the first version of converting the search menu and its logic from (deprecated) widgets to glimmer components. The changes are hidden behind a group based feature flag. This will give us the ability to test the new implementation in a production setting before fully committing to the new search menu.

# What has changed
The majority of the logic from the widget implementation has been updated to fit within the context of a glimmer component, but it has not fundamentally changed. Instead of having a single widget - [search-menu.js](https://github.com/discourse/discourse/blob/main/app/assets/javascripts/discourse/app/widgets/search-menu.js) - that built the bulk of the search menu logic, we split the logic into (20+) bite size components. This greatly increases the readability and makes extending a component in the search menu much more straightforward.

That being said, certain pieces needed to be rewritten from scratch as they did not translate from widget -> glimmer, or there was a general code upgraded needed. There are a few of these changes worth noting:

### Search Service
**Search Term** -> In the widget implementation we had a overly complex way of managing the current search term. We tracked the search term across multiple different states (`term`, `opts.term`, `searchData.term`) causing headaches. This PR introduces a single source of truth: 
```js
this.search.activeGlobalSearchTerm
```
This tracked value is available anywhere the `search` service is injected. In the case the search term should be needs to be updated you can call 
```js
this.search.activeGlobalSearchTerm = "foo"
```
 
**event listeners** -> In the widget implementation we defined event listeners **only** on the search input to handle things such as 
- keyboard navigation / shortcuts
- closing the search menu
- performing a search with "enter"

Having this in one place caused a lot of bloat in our logic as we had to handle multiple different cases in one location. Do _x_ if it is this element, but do _y_ if it is another. This PR updates the event listeners to be attached to individual components, allowing for a more fine tuned set of actions per element. To not duplicate logic across multiple components, we have condensed shared logic to actions on the search service to be reused. For example - `this.search.handleArrowUpOrDown` - to handle keyboard navigation.

### Search Context
We have unique logic based on the current search context (topic / tag / category / user / etc). This context is set within a models route file. We have updated the search service with a tracked value `searchContext` that can be utilized and updated from any component where the search service is injected.

```js
# before
this.searchService.set("searchContext", user.searchContext);

# after
this.searchService.searchContext = user.searchContext;
```

# Views
<img width="434" alt="Screenshot 2023-06-15 at 11 01 01 AM" src="https://github.com/discourse/discourse/assets/50783505/ef57e8e6-4e7b-4ba0-a770-8f2ed6310569">

<img width="418" alt="Screenshot 2023-06-15 at 11 04 11 AM" src="https://github.com/discourse/discourse/assets/50783505/2c1e0b38-d12c-4339-a1d5-04f0c1932b08">

<img width="413" alt="Screenshot 2023-06-15 at 11 04 34 AM" src="https://github.com/discourse/discourse/assets/50783505/b871d164-88cb-405e-9b78-d326a6f63686">

<img width="419" alt="Screenshot 2023-06-15 at 11 07 51 AM" src="https://github.com/discourse/discourse/assets/50783505/c7309a19-f541-47f4-94ef-10fa65658d8c">

<img width="424" alt="Screenshot 2023-06-15 at 11 04 48 AM" src="https://github.com/discourse/discourse/assets/50783505/f3dba06e-b029-431c-b3d0-36727b9e6dce">

<img width="415" alt="Screenshot 2023-06-15 at 11 08 57 AM" src="https://github.com/discourse/discourse/assets/50783505/ad4e7250-040c-4d06-bf06-99652f4c7b7c">
2023-06-16 09:24:07 -05:00
..
client.ar.yml FIX: rename everything link to topics (#22076) 2023-06-15 11:36:38 +10:00
client.be.yml Update translations (#22081) 2023-06-13 15:18:44 +02:00
client.bg.yml FIX: rename everything link to topics (#22076) 2023-06-15 11:36:38 +10:00
client.bs_BA.yml FIX: rename everything link to topics (#22076) 2023-06-15 11:36:38 +10:00
client.ca.yml FIX: rename everything link to topics (#22076) 2023-06-15 11:36:38 +10:00
client.cs.yml FIX: rename everything link to topics (#22076) 2023-06-15 11:36:38 +10:00
client.da.yml FIX: rename everything link to topics (#22076) 2023-06-15 11:36:38 +10:00
client.de.yml FIX: rename everything link to topics (#22076) 2023-06-15 11:36:38 +10:00
client.el.yml FIX: rename everything link to topics (#22076) 2023-06-15 11:36:38 +10:00
client.en.yml UX: Improve defaults shown for categories and tags section in sidebar (#22062) 2023-06-16 09:06:01 +08:00
client.en_GB.yml Update translations (#20861) 2023-04-05 09:12:48 +02:00
client.es.yml FIX: rename everything link to topics (#22076) 2023-06-15 11:36:38 +10:00
client.et.yml Update translations (#22081) 2023-06-13 15:18:44 +02:00
client.fa_IR.yml FIX: rename everything link to topics (#22076) 2023-06-15 11:36:38 +10:00
client.fi.yml FIX: rename everything link to topics (#22076) 2023-06-15 11:36:38 +10:00
client.fr.yml FIX: rename everything link to topics (#22076) 2023-06-15 11:36:38 +10:00
client.gl.yml FIX: rename everything link to topics (#22076) 2023-06-15 11:36:38 +10:00
client.he.yml FIX: rename everything link to topics (#22076) 2023-06-15 11:36:38 +10:00
client.hr.yml FIX: rename everything link to topics (#22076) 2023-06-15 11:36:38 +10:00
client.hu.yml FIX: rename everything link to topics (#22076) 2023-06-15 11:36:38 +10:00
client.hy.yml FIX: rename everything link to topics (#22076) 2023-06-15 11:36:38 +10:00
client.id.yml FIX: rename everything link to topics (#22076) 2023-06-15 11:36:38 +10:00
client.it.yml FIX: rename everything link to topics (#22076) 2023-06-15 11:36:38 +10:00
client.ja.yml FIX: rename everything link to topics (#22076) 2023-06-15 11:36:38 +10:00
client.ko.yml FIX: rename everything link to topics (#22076) 2023-06-15 11:36:38 +10:00
client.lt.yml FIX: rename everything link to topics (#22076) 2023-06-15 11:36:38 +10:00
client.lv.yml FIX: rename everything link to topics (#22076) 2023-06-15 11:36:38 +10:00
client.nb_NO.yml FIX: rename everything link to topics (#22076) 2023-06-15 11:36:38 +10:00
client.nl.yml FIX: rename everything link to topics (#22076) 2023-06-15 11:36:38 +10:00
client.pl_PL.yml FIX: rename everything link to topics (#22076) 2023-06-15 11:36:38 +10:00
client.pt.yml FIX: rename everything link to topics (#22076) 2023-06-15 11:36:38 +10:00
client.pt_BR.yml FIX: rename everything link to topics (#22076) 2023-06-15 11:36:38 +10:00
client.ro.yml FIX: rename everything link to topics (#22076) 2023-06-15 11:36:38 +10:00
client.ru.yml FIX: rename everything link to topics (#22076) 2023-06-15 11:36:38 +10:00
client.sk.yml FIX: rename everything link to topics (#22076) 2023-06-15 11:36:38 +10:00
client.sl.yml FIX: rename everything link to topics (#22076) 2023-06-15 11:36:38 +10:00
client.sq.yml Update translations (#22081) 2023-06-13 15:18:44 +02:00
client.sr.yml Update translations (#22081) 2023-06-13 15:18:44 +02:00
client.sv.yml FIX: rename everything link to topics (#22076) 2023-06-15 11:36:38 +10:00
client.sw.yml Update translations (#22081) 2023-06-13 15:18:44 +02:00
client.te.yml Update translations (#22081) 2023-06-13 15:18:44 +02:00
client.th.yml FIX: rename everything link to topics (#22076) 2023-06-15 11:36:38 +10:00
client.tr_TR.yml FIX: rename everything link to topics (#22076) 2023-06-15 11:36:38 +10:00
client.uk.yml FIX: rename everything link to topics (#22076) 2023-06-15 11:36:38 +10:00
client.ur.yml FIX: rename everything link to topics (#22076) 2023-06-15 11:36:38 +10:00
client.vi.yml FIX: rename everything link to topics (#22076) 2023-06-15 11:36:38 +10:00
client.zh_CN.yml FIX: rename everything link to topics (#22076) 2023-06-15 11:36:38 +10:00
client.zh_TW.yml FIX: rename everything link to topics (#22076) 2023-06-15 11:36:38 +10:00
names.yml
plurals.rb DEV: Apply syntax_tree formatting to `config/*` 2023-01-09 11:13:29 +00:00
server.ar.yml Update translations (#22081) 2023-06-13 15:18:44 +02:00
server.be.yml Update translations (#22081) 2023-06-13 15:18:44 +02:00
server.bg.yml Update translations (#22081) 2023-06-13 15:18:44 +02:00
server.bs_BA.yml Update translations (#22081) 2023-06-13 15:18:44 +02:00
server.ca.yml Update translations (#22081) 2023-06-13 15:18:44 +02:00
server.cs.yml Update translations (#21583) 2023-05-16 19:40:01 +02:00
server.da.yml Update translations (#21583) 2023-05-16 19:40:01 +02:00
server.de.yml Update translations (#22081) 2023-06-13 15:18:44 +02:00
server.el.yml Update translations (#22081) 2023-06-13 15:18:44 +02:00
server.en.yml DEV: Upgrade search-menu to glimmer (#20482) 2023-06-16 09:24:07 -05:00
server.en_GB.yml Update translations (#19401) 2022-12-09 12:01:05 +01:00
server.es.yml Update translations (#22081) 2023-06-13 15:18:44 +02:00
server.et.yml Update translations (#21583) 2023-05-16 19:40:01 +02:00
server.fa_IR.yml Update translations (#22081) 2023-06-13 15:18:44 +02:00
server.fi.yml Update translations (#22081) 2023-06-13 15:18:44 +02:00
server.fr.yml Update translations (#22081) 2023-06-13 15:18:44 +02:00
server.gl.yml Update translations (#22081) 2023-06-13 15:18:44 +02:00
server.he.yml Update translations (#22081) 2023-06-13 15:18:44 +02:00
server.hr.yml Update translations (#22081) 2023-06-13 15:18:44 +02:00
server.hu.yml Update translations (#21950) 2023-06-06 15:36:51 +02:00
server.hy.yml Update translations (#22081) 2023-06-13 15:18:44 +02:00
server.id.yml Update translations (#22081) 2023-06-13 15:18:44 +02:00
server.it.yml Update translations (#22081) 2023-06-13 15:18:44 +02:00
server.ja.yml Update translations (#22081) 2023-06-13 15:18:44 +02:00
server.ko.yml Update translations (#22081) 2023-06-13 15:18:44 +02:00
server.lt.yml Update translations (#21583) 2023-05-16 19:40:01 +02:00
server.lv.yml Update translations (#20559) 2023-03-07 14:58:31 +01:00
server.nb_NO.yml Update translations (#21583) 2023-05-16 19:40:01 +02:00
server.nl.yml Update translations (#22081) 2023-06-13 15:18:44 +02:00
server.pl_PL.yml Update translations (#22081) 2023-06-13 15:18:44 +02:00
server.pt.yml Update translations (#22081) 2023-06-13 15:18:44 +02:00
server.pt_BR.yml Update translations (#22081) 2023-06-13 15:18:44 +02:00
server.ro.yml Update translations (#22081) 2023-06-13 15:18:44 +02:00
server.ru.yml Update translations (#22081) 2023-06-13 15:18:44 +02:00
server.sk.yml Update translations (#22081) 2023-06-13 15:18:44 +02:00
server.sl.yml Update translations (#21583) 2023-05-16 19:40:01 +02:00
server.sq.yml Update translations (#22081) 2023-06-13 15:18:44 +02:00
server.sr.yml Update translations (#22081) 2023-06-13 15:18:44 +02:00
server.sv.yml Update translations (#22081) 2023-06-13 15:18:44 +02:00
server.sw.yml Update translations (#22081) 2023-06-13 15:18:44 +02:00
server.te.yml Update translations (#20559) 2023-03-07 14:58:31 +01:00
server.th.yml Update translations (#20559) 2023-03-07 14:58:31 +01:00
server.tr_TR.yml Update translations (#22081) 2023-06-13 15:18:44 +02:00
server.uk.yml Update translations (#22081) 2023-06-13 15:18:44 +02:00
server.ur.yml Update translations (#22081) 2023-06-13 15:18:44 +02:00
server.vi.yml Update translations (#22081) 2023-06-13 15:18:44 +02:00
server.zh_CN.yml Update translations (#22081) 2023-06-13 15:18:44 +02:00
server.zh_TW.yml Update translations (#22081) 2023-06-13 15:18:44 +02:00
transliterate.ar.yml
transliterate.bg.yml
transliterate.de.yml
transliterate.el.yml
transliterate.en.yml
transliterate.ru.yml
transliterate.vi.yml