browsertrix/chart
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
..
admin/logging
app-templates Move org deletion to background job with access to backend ops classes (#2098) 2024-10-10 14:41:05 -04:00
btrix-crds
charts Configure browsertrix proxies (#1847) 2024-10-02 18:35:45 -07:00
email-templates Send subscription cancelation email (#2234) 2024-12-12 11:52:38 -08:00
examples Add Repository Index + Chart Rename + Docs Rename (#1708) 2024-04-21 09:42:25 -07:00
proxies Configure browsertrix proxies (#1847) 2024-10-02 18:35:45 -07:00
templates Allow configuring available languages from helm chart (#2230) 2024-12-13 22:31:26 -05:00
test Adds Subscription API (#1914) 2024-07-10 17:41:16 -07:00
.helmignore
Chart.lock Configure browsertrix proxies (#1847) 2024-10-02 18:35:45 -07:00
Chart.yaml version: bump to 1.13.0-beta.0 2024-10-10 11:38:13 -07:00
README.md
values.yaml Allow configuring available languages from helm chart (#2230) 2024-12-13 22:31:26 -05:00

Update Helm dependencies

  • It needs to update Helm charts after changing its dependencies (e.g. logging)
$ helm dependency update .

Update metacontroller

#!/bin/bash

# intall metacontroller
git clone --depth=1 https://github.com/metacontroller/metacontroller.git
cd metacontroller
helm package deploy/helm/metacontroller --destination deploy/helm
cd ..

# update dependency
helm dependency update
  • Bump up the metacontroller version in Chart.yaml