Commit graph

3373 commits

Author SHA1 Message Date
Sorin Davidoi
46b5faab31
fix(lang): respect fallback languages
If `navigator.languages` returns `['da', 'en-US', 'en']`, and the Danish
language is not available, the user interface should be in English.

Currently it is shown in Norwegian, because only `'da'` is taken into
account when deciding on the preferred language (and `match` selects
`nb-NO` using the default `'best fit'` algorithm).

While the Norwegian and Danish languages are similar, I would argue that
this is a bug, as `navigator.languages` cleary states that the fallback
language should be English.

Another potential solution would be to pass `{ algorithm: 'lookup' }` to
the `match` function. However, this might break some cases when a
`'best fit'` approach would be appropriate (e.g. Swiss German falling
back to German).

See https://helvede.net/@jwcph/113497955274343365.
2024-11-19 00:59:40 +02:00
Lim Chee Aun
06b56a8c67 Upgrade dependencies + autoPause for lite-youtube 2024-11-18 17:51:40 +08:00
Lim Chee Aun
6502a1f4b9 Stick both edges of columns 2024-11-18 17:46:25 +08:00
Lim Chee Aun
121d11e20f Fix infinite loading due to search API not supporting offset 2024-11-18 17:46:25 +08:00
Lim Chee Aun
fac1209153 Reveal punycodes 2024-11-18 17:46:25 +08:00
Lim Chee Aun
a73d613dce Refactor List menu from nav menu 2024-11-18 17:46:25 +08:00
Chee Aun
2d9cffc091
i18n updates (es-ES) (#936) 2024-11-17 13:41:42 +00:00
github-actions[bot]
2d5b3a676d Update README.md 2024-11-17 00:02:36 +00:00
Chee Aun
b790d845fa
i18n updates (pt-BR,pt-PT,th-TH) (#935)
* New translations (Thai)

* New translations (Portuguese)

* New translations (Portuguese, Brazilian)
2024-11-16 13:58:51 +00:00
Chee Aun
f3cf09d07c
i18n updates (th-TH) (#934)
* New translations (Thai)

* Update catalogs.json

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-16 07:28:26 +00:00
Lim Chee Aun
109ad9e8ec Fix media borked bug 2024-11-15 09:43:57 +08:00
Lim Chee Aun
75ceff12c0 Add "30 days" for profile mute 2024-11-15 09:43:56 +08:00
Chee Aun
dc2d441119
i18n updates (ca-ES) (#931) 2024-11-14 23:11:43 +00:00
Lim Chee Aun
6a4e14267a Attempt to fix column focus bug 2024-11-14 19:22:35 +08:00
Chee Aun
c9295ba48e
i18n updates (lt-LT,uk-UA) (#928)
* New translations (Lithuanian)

* New translations (Ukrainian)
2024-11-13 15:17:11 +00:00
Chee Aun
4166625e2e
i18n updates (th-TH,uk-UA) (#926)
* New translations (Thai)

* Update catalogs.json

* New translations (Ukrainian)

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-13 12:56:14 +00:00
Lim Chee Aun
c3991dad08 Upgrade valtio
Separately because it used to cause issues
2024-11-13 01:15:45 +08:00
Lim Chee Aun
b7108303f9 Upgrade dependencies 2024-11-13 01:14:53 +08:00
Lim Chee Aun
c1a10dfae3 Add Patreon link
I know this looks weird, but let's leave it like this for now.
2024-11-12 19:22:33 +08:00
Lim Chee Aun
7b683c3259 Updated package lock 2024-11-12 18:59:09 +08:00
Lim Chee Aun
cc591237f5 Embrace chroma.js and okLCH 2024-11-12 18:58:56 +08:00
Lim Chee Aun
c6e562c62e Use sonda for JS/CSS bundle analyzer 2024-11-12 17:44:20 +08:00
Chee Aun
b70e31a517
Merge pull request #817 from graue/feature-detect
Support exclusive lists with GoToSocial 0.17
2024-11-12 12:35:38 +08:00
Scott Feeney
7b926f73fb Merge branch 'main' into feature-detect 2024-11-11 15:36:06 -08:00
Chee Aun
62dc2ca27e
i18n updates (th-TH) (#925) 2024-11-10 08:09:47 +00:00
Lim Chee Aun
efc3fe5de4 Try debug cache sizing on Safari 2024-11-08 12:58:28 +08:00
Lim Chee Aun
a1a4b01ace Allowlist groupable notifications 2024-11-07 16:15:07 +08:00
Chee Aun
35fa94b2e0
i18n updates (ko-KR) (#923) 2024-11-07 06:51:03 +00:00
Lim Chee Aun
37afe9d4ee Line number changes 2024-11-06 20:30:23 +08:00
Lim Chee Aun
3219cae516 Better coloring for media backgrounds
Still experimental
2024-11-06 20:30:23 +08:00
Lim Chee Aun
4e56faa7c8 Don't fix theme-color if media modal is showing 2024-11-06 20:30:23 +08:00
Lim Chee Aun
451fc1bf52 Debugging cache size 2024-11-06 20:30:23 +08:00
Chee Aun
5838ab6720
i18n updates (ca-ES,pt-BR,pt-PT) (#921)
* New translations (Catalan)

* New translations (Portuguese)

* New translations (Portuguese, Brazilian)
2024-11-05 20:32:24 +00:00
Lim Chee Aun
5394584647 Experimental theme-color change when viewing media 2024-11-04 18:44:33 +08:00
Lim Chee Aun
7135ec905f Fix stretched button when text got very long 2024-11-04 17:34:16 +08:00
Chee Aun
bc3f8e140c
i18n updates (eo-UY,es-ES,eu-ES,fi-FI,lt-LT,pt-BR,pt-PT,ru-RU,zh-CN) (#920)
* New translations (Russian)

* New translations (Chinese Simplified)

* Update catalogs.json

* New translations (Chinese Simplified)

* New translations (Portuguese)

* New translations (Portuguese, Brazilian)

* New translations (Finnish)

* New translations (Spanish)

* New translations (Esperanto)

* New translations (Basque)

* New translations (Lithuanian)

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-04 09:07:49 +00:00
Lim Chee Aun
b8281fb593 Hide byline too 2024-11-03 17:18:39 +08:00
Chee Aun
9bd5f7e637
i18n updates (ar-SA,ca-ES,cs-CZ,de-DE,eo-UY,es-ES,eu-ES,fa-IR,fi-FI,fr-FR,gl-ES,he-IL,it-IT,ja-JP,kab,ko-KR,lt-LT,nb-NO,nl-NL,oc-FR,pl-PL,pt-BR,pt-PT,ru-RU,th-TH,uk-UA,zh-CN,zh-TW) (#919)
* New translations (Spanish)

* New translations (Basque)

* New translations (Esperanto)

* New translations (Lithuanian)

* New translations (Polish)

* New translations (Italian)

* New translations (Persian)

* New translations (Catalan)

* New translations (Norwegian Bokmal)

* New translations (French)

* New translations (Arabic)

* New translations (Czech)

* New translations (German)

* New translations (Finnish)

* New translations (Hebrew)

* New translations (Japanese)

* New translations (Korean)

* New translations (Dutch)

* New translations (Portuguese)

* New translations (Russian)

* New translations (Ukrainian)

* New translations (Chinese Simplified)

* New translations (Chinese Traditional)

* New translations (Galician)

* New translations (Portuguese, Brazilian)

* New translations (Thai)

* New translations (Occitan)

* New translations (Kabyle)

* Update catalogs.json

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-03 07:11:58 +00:00
Lim Chee Aun
79a890cdc0 Separate context for "Group" 2024-11-03 14:52:40 +08:00
github-actions[bot]
762a4a825e Update README.md 2024-11-03 00:02:31 +00:00
Chee Aun
03f99f6267
i18n updates (uk-UA) (#918)
* New translations (Ukrainian)

* Update catalogs.json

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-02 21:05:08 +00:00
Chee Aun
1ac7c92444
i18n updates (uk-UA) (#917)
* New translations (Ukrainian)

* Update catalogs.json

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-02 16:12:37 +00:00
Chee Aun
cb02f7d06a
i18n updates (uk-UA) (#916)
* New translations (Ukrainian)

* Update catalogs.json

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-02 14:44:17 +00:00
Chee Aun
35ada8ac9c
i18n updates (eu-ES,uk-UA) (#915)
* New translations (Basque)

* New translations (Ukrainian)

* Update catalogs.json

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-02 13:22:48 +00:00
Chee Aun
38685b175c
i18n updates (uk-UA) (#914)
* New translations (Ukrainian)

* Update catalogs.json

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-02 12:17:24 +00:00
Chee Aun
9352504948
i18n updates (uk-UA) (#913)
* New translations (Ukrainian)

* Update catalogs.json

* New translations (Ukrainian)

* Update catalogs.json

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-02 11:16:49 +00:00
Chee Aun
eebbae157d
i18n updates (uk-UA) (#912)
* New translations (Ukrainian)

* Update catalogs.json

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-02 00:22:47 +00:00
Chee Aun
b967b94019
i18n updates (eo-UY,es-ES,pt-PT) (#911)
* New translations (Spanish)

* New translations (Esperanto)

* New translations (Portuguese)
2024-11-01 16:15:53 +00:00
Chee Aun
32e8df4dbc
i18n updates (fi-FI) (#910) 2024-11-01 15:13:47 +00:00
Chee Aun
59454f4d70
i18n updates (zh-CN) (#909) 2024-11-01 13:44:33 +00:00