browsertrix/chart/templates
Emma Segal-Grossman b650762a45
Allow configuring available languages from helm chart (#2230)
Closes #2223 

- [x] Adds `localesAvailable` to `/api/settings` endpoint, and uses that
list if available, rather than the full list of translated locales, to
determine which options to display to users
- [x] ~~Uses the user's browser locales, filtered to the current
language setting, for formatting numbers, dates, and durations~~
- [x] Adds & persists checkbox for "use same language for formatting
dates and numbers" in user settings
- [x] Replaces uses of `sl-format-bytes` with `localize.bytes(...)`, and
`sl-format-date` with replacement `btrix-format-date` that properly
handles fallback locales
- [x] Caches all number/duration/datetime formatters by a combined key
consisting of app language, browser language, browser setting, and
formatter options so that all formatters can be reused if needed
(previously any formatter with non-default options would be recreated
every render)
- [x] Splits out ordinal formatting from number formatter, as it didn't
make much sense in some non-English locales
- [x] Adds a little demo of date/time/duration/number formatting so you
can see what effect your language settings have
  


https://github.com/user-attachments/assets/724858cb-b140-4d72-a38d-83f602c71bc7

---------

Signed-off-by: emma <hi@emma.cafe>
Co-authored-by: Ilya Kreymer <ikreymer@gmail.com>
Co-authored-by: Ilya Kreymer <ikreymer@users.noreply.github.com>
2024-12-13 22:31:26 -05:00
..
backend.yaml Configure browsertrix proxies (#1847) 2024-10-02 18:35:45 -07:00
configmap.yaml Allow configuring available languages from helm chart (#2230) 2024-12-13 22:31:26 -05:00
frontend.yaml Plausible analytics (#2226) 2024-12-10 16:30:22 -08:00
ingress.yaml
minio.yaml
mongo.yaml
namespaces.yaml
networkpolicies.yaml
operators.yaml Execution time tracking tweaks (#1994) 2024-08-06 09:44:44 -07:00
priorities.yaml
role.yaml Move org deletion to background job with access to backend ops classes (#2098) 2024-10-10 14:41:05 -04:00
secrets.yaml Configure browsertrix proxies (#1847) 2024-10-02 18:35:45 -07:00
service.yaml
signer.yaml