browsertrix/.github/workflows
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
..
ansible-lint.yaml Update ansible pipfile (#2088) 2024-09-20 11:41:21 -07:00
deploy-dev.yaml
docs-publish.yaml Changes to support weblate workflow (#2210) 2024-12-09 15:16:47 -08:00
frontend-build-prepare.yaml Changes to support weblate workflow (#2210) 2024-12-09 15:16:47 -08:00
k3d-ci.yaml Ensure email comparisons are case-insensitive, emails stored as lowercase (#2084) (#2086) (fixes from 1.11.7) 2024-09-19 12:20:34 -07:00
k3d-log-ci.yaml
k3d-nightly-ci.yaml Fix nightly tests: modify kubectl exec syntax for creating new minio bucket (#2097) 2024-10-21 17:41:19 -07:00
lint.yaml quickfix: pin mypy version to avoid issues with latest release 2024-07-19 18:30:57 -07:00
microk8s-ci.yaml Adds Subscription API (#1914) 2024-07-10 17:41:16 -07:00
password-check.yaml Add Repository Index + Chart Rename + Docs Rename (#1708) 2024-04-21 09:42:25 -07:00
project-assign-issue.yml
publish-helm-chart.yaml Configure browsertrix proxies (#1847) 2024-10-02 18:35:45 -07:00
release.yaml Add Repository Index + Chart Rename + Docs Rename (#1708) 2024-04-21 09:42:25 -07:00
ui-tests-playwright.yml Allow configuring available languages from helm chart (#2230) 2024-12-13 22:31:26 -05:00
weblate-reformat.yaml Changes to support weblate workflow (#2210) 2024-12-09 15:16:47 -08:00