Files
stash/pkg/utils
SmallCoccinelle 41a1fb8aec Add collation to directory listings (#1823)
* Add collation to directory listings. Closes #1806

Introduce a new `locale` arg to the `Query.directory` field. Set "en"
as the default for the field for backward compatibility. Use the given
locale, sending it through a language matcher, and use `x/text` as the
collation engine for the matched language.

Augment the file `ListDirs` call to optionally take a Collator. If the
Collator is given, sort file listings according to the collators rules.

While here, document the GraphQL schema a bit more.

Add matchers by looking at the current front-end locales, and make sure
each of these occur in the matcher list.

* Language matcher touchups

* Avoid having `en-US` twice.
* Introduce `en-AU`.

* Pass IgnoreCase and Numeric collation

Allow the collator to be configured with options. Pass the options
IgnoreCase and Numeric to the collator.
2021-10-14 15:16:45 +11:00
..
2021-09-23 17:15:50 +10:00
2021-09-09 14:10:08 +10:00
2021-06-11 17:24:58 +10:00
2021-09-21 09:34:25 +10:00
2019-03-09 10:14:55 -08:00
2019-04-11 10:55:58 -07:00
2021-10-12 11:59:51 +11:00
2021-06-23 09:10:20 +10:00
2021-04-22 13:51:51 +10:00
2021-05-25 11:25:26 +10:00
2021-05-25 11:25:26 +10:00
2019-02-14 15:42:52 -08:00