morluto
78ac4ae5f6
feat(website): offer the reader's language when the browser prefers another edition ( #16765 )
...
* feat(website): offer the reader's language when the browser prefers another edition
Show a floating, dismissible offer in the browser's preferred language when
a complete edition of the page exists in it. The choice (picked, accepted or
dismissed) is remembered so the offer appears once. Offer and dismiss labels
come from each language's own catalog and never decide a page's translation
status, so a missing label cannot turn a translated page into a fallback.
* fix(website): keep the language offer to the reader's script and choices
- Chinese preferences offer only the matching script, then try the next
browser language.
- Any saved language choice removes the offer, including choosing the
current language on a page with a fragment.
- Middle-clicking a language link records the choice.
- The back-to-top button is hidden while the offer covers the bottom edge.
2026-12-04 10:51:56 -05:00
..
2026-12-03 19:16:36 -05:00
2026-12-01 05:45:07 +00:00
2026-12-03 20:49:47 +00:00
2026-12-03 00:19:22 +00:00
2026-12-03 19:16:36 -05:00
2026-12-03 21:47:56 +08:00
2026-11-26 10:59:33 -05:00
2026-12-02 20:20:34 +00:00
2026-12-02 21:12:42 +00:00
2026-11-30 19:18:16 +08:00
2026-10-12 09:25:27 +08:00
2026-11-14 20:25:11 +08:00
2026-11-14 04:08:37 -05:00
2026-11-17 14:57:30 -05:00
2026-10-09 20:11:17 +08:00
2026-10-15 20:11:26 +08:00
2026-11-11 17:20:22 +08:00
2026-11-27 07:40:06 +08:00
2026-12-02 19:38:25 +00:00
2026-12-02 19:38:25 +00:00
2026-12-02 19:38:25 +00:00
2026-10-13 18:23:17 +08:00
2026-12-02 19:38:25 +00:00
2026-12-02 19:38:25 +00:00
2026-12-03 14:23:24 +00:00
2026-12-03 18:51:29 +00:00
2026-10-30 18:29:18 +08:00
2026-11-09 20:48:08 +08:00
2026-10-27 17:13:17 +00:00
2026-11-26 01:24:24 +08:00
2026-10-14 04:47:34 +08:00
2026-12-02 19:27:45 +00:00
2026-10-24 09:24:43 +00:00
2026-11-30 20:35:43 +08:00
2026-10-13 22:03:16 +08:00
2026-11-30 19:38:45 +08:00
2026-11-19 03:58:03 +00:00
2026-11-17 19:58:40 +08:00
2026-11-16 18:57:12 +08:00
2026-12-02 20:49:12 +00:00
2026-11-30 22:17:19 +08:00
2026-10-24 11:41:34 +08:00
2026-11-12 05:08:27 -05:00
2026-11-12 20:29:42 -08:00
2026-11-25 08:28:02 -05:00
2026-11-01 00:15:28 +08:00
2026-10-24 15:57:23 +00:00
2026-12-02 22:08:04 +00:00
2026-12-03 12:46:27 +08:00
2026-12-03 12:46:27 +08:00
2026-10-21 19:47:52 +08:00
2026-11-17 08:28:59 -05:00
2026-11-23 12:06:28 -05:00
2026-11-18 17:54:40 -05:00
2026-11-19 03:58:03 +00:00
2026-12-04 10:51:56 -05:00
2026-11-26 01:24:16 +08:00
2026-11-15 20:55:29 -05:00
2026-12-03 21:37:38 +00:00
2026-11-15 22:01:49 +08:00
2026-11-26 03:50:41 +00:00
2026-11-26 01:24:16 +08:00
2026-11-16 00:06:34 +08:00
2026-11-25 11:25:18 -05:00
2026-11-16 03:56:10 +08:00
2026-10-14 09:55:09 +08:00
2026-10-14 09:55:09 +08:00
2026-10-24 21:51:41 +08:00
2026-10-14 09:55:09 +08:00
2026-10-14 09:47:57 +08:00
2026-11-16 00:04:05 +08:00
2026-11-29 18:03:55 +00:00
2026-11-25 11:25:18 -05:00
2026-11-29 18:03:55 +00:00
2026-11-26 01:24:37 +08:00
2026-11-30 18:01:46 +08:00
2026-11-26 01:24:37 +08:00
2026-12-02 17:14:08 +00:00
2026-11-26 01:24:37 +08:00
2026-12-03 00:11:23 +00:00
2026-11-20 09:47:41 -05:00
2026-11-17 10:04:46 +00:00
2026-11-22 20:41:11 -05:00
2026-11-19 00:12:50 -05:00
2026-11-25 11:25:18 -05:00
2026-11-25 11:25:18 -05:00
2026-11-16 00:39:50 +08:00
2026-11-29 18:03:55 +00:00
2026-11-18 16:06:51 -05:00
2026-11-26 01:24:43 +08:00
2026-11-19 01:55:13 +00:00
2026-11-25 11:25:18 -05:00
2026-11-26 01:24:37 +08:00
2026-11-25 11:25:18 -05:00
2026-11-25 11:25:18 -05:00
2026-11-23 02:33:17 +00:00
2026-11-15 22:01:49 +08:00
2026-11-16 03:56:10 +08:00
2026-11-26 01:24:37 +08:00
2026-11-16 00:06:34 +08:00
2026-11-16 00:06:34 +08:00
2026-11-16 04:27:07 +08:00
2026-11-16 00:06:34 +08:00
2026-11-26 01:24:37 +08:00
2026-12-02 13:39:47 +08:00
2026-11-25 11:25:18 -05:00
2026-10-24 22:28:39 +08:00
2026-10-24 16:58:18 +08:00
2026-10-24 22:28:39 +08:00
2026-11-14 04:08:37 -05:00
2026-11-25 08:29:31 -05:00
2026-11-16 08:04:12 +08:00
2026-11-25 08:29:31 -05:00
2026-12-02 19:14:23 +00:00
2026-11-25 11:25:18 -05:00
2026-11-25 11:25:18 -05:00
2026-12-02 19:25:53 +00:00
2026-10-24 16:58:18 +08:00
2026-10-24 22:28:39 +08:00
2026-10-12 18:44:02 +08:00
2026-10-20 00:05:22 +08:00
2026-10-20 00:05:22 +08:00
2026-10-24 17:54:18 +08:00
2026-12-01 21:55:49 +00:00
2026-10-24 22:28:39 +08:00
2026-11-01 18:36:21 +08:00
2026-12-02 19:46:26 +00:00
2026-11-15 22:01:49 +08:00
2026-11-25 11:25:18 -05:00
2026-11-16 00:04:05 +08:00
2026-10-24 16:58:18 +08:00
2026-11-20 17:58:27 -05:00
2026-11-26 03:50:41 +00:00
2026-11-25 11:25:18 -05:00
2026-11-16 00:06:34 +08:00
2026-11-30 22:39:39 +08:00
2026-11-25 11:25:18 -05:00
2026-11-26 01:24:37 +08:00
2026-11-25 11:25:18 -05:00
2026-11-26 01:24:16 +08:00
2026-11-21 03:08:49 +00:00
2026-11-25 16:56:05 +00:00
2026-11-25 16:56:05 +00:00
2026-11-24 09:23:14 +00:00
2026-11-27 12:03:37 +00:00
2026-11-26 01:24:43 +08:00
2026-11-26 01:24:43 +08:00
2026-11-15 19:52:38 +08:00
2026-11-27 13:19:09 -05:00
2026-11-26 01:24:43 +08:00
2026-11-26 01:24:43 +08:00
2026-11-18 16:06:51 -05:00
2026-11-18 16:06:51 -05:00
2026-11-28 15:46:03 +08:00
2026-11-25 16:56:05 +00:00
2026-11-26 01:24:43 +08:00
2026-11-26 01:24:43 +08:00
2026-11-25 11:25:18 -05:00
2026-12-04 00:02:34 +00:00
2026-11-25 11:25:18 -05:00
2026-11-24 09:23:14 +00:00
2026-11-26 01:24:43 +08:00
2026-11-26 01:24:43 +08:00
2026-11-27 01:25:26 +08:00
2026-11-26 01:24:43 +08:00
2026-11-26 01:24:43 +08:00
2026-11-25 11:25:18 -05:00
2026-11-19 23:29:09 -05:00
2026-11-26 01:24:43 +08:00
2026-11-27 23:23:53 -05:00
2026-11-26 19:01:13 +08:00
2026-11-26 01:24:43 +08:00
2026-11-26 01:24:16 +08:00
2026-11-16 03:56:10 +08:00
2026-11-26 01:24:16 +08:00
2026-11-20 04:35:35 +00:00
2026-11-25 11:25:18 -05:00
2026-12-03 17:19:13 -05:00
2026-11-26 01:24:16 +08:00
2026-11-25 11:25:18 -05:00
2026-11-24 21:54:08 -05:00
2026-11-22 01:35:33 +00:00
2026-10-08 10:13:05 +00:00
2026-11-24 03:29:27 +00:00
2026-11-17 08:28:59 -05:00
2026-12-03 01:39:10 +00:00
2026-10-13 21:55:30 +08:00
2026-11-16 00:04:05 +08:00
2026-11-16 03:57:03 +08:00
2026-12-03 00:39:23 +00:00
2026-11-25 11:25:18 -05:00
2026-11-26 01:24:16 +08:00
2026-12-03 15:26:24 +00:00
2026-11-30 19:18:16 +08:00
2026-11-15 21:50:00 +08:00
2026-11-30 13:33:02 +08:00
2026-11-25 08:29:31 -05:00
2026-12-02 19:27:45 +00:00
2026-11-21 09:17:40 -05:00
2026-12-04 10:51:56 -05:00
2026-11-21 22:06:51 -05:00
2026-12-03 15:26:24 +00:00
2026-10-26 14:46:23 +08:00