Sameh Khamis
2c72a038d5
i18n: keep the page's locale in a vue-i18n instance
...
The application views install one vue-i18n instance that holds the active
locale and the catalogs. src/i18n/index.js stays free of Vue: bindLocale()
keeps its locale in the instance's ref, so t(), tn() and the Intl formatters
read it from there and a view that translates while rendering renders again
when the locale changes. A tag written straight to the ref is normalized.
Message formatting, catalogs and call sites are unchanged, and switching
language still reloads the page.
The instance outlives the views: unmounting one no longer disposes it. The
browser build defines vue-i18n's feature flags and drops its message
compiler, which Core does not use.
2026-11-01 15:25:55 -08:00
..
2026-10-20 14:02:09 +04:00
2026-10-23 14:51:42 -07:00
2026-10-16 11:01:25 +01:00
2026-09-28 19:07:57 -05:00
2026-10-20 13:56:44 +04:00
2026-09-28 19:07:57 -05:00
2026-10-20 13:56:44 +04:00
2026-10-02 18:29:42 -07:00
2026-08-24 17:02:16 -05:00
2026-10-25 17:21:41 -07:00
2026-09-24 16:25:55 +05:30
2026-10-30 17:23:45 -07:00
2026-09-10 23:01:51 -07:00
2026-10-16 17:09:03 +05:30
2026-09-14 07:35:38 -07:00
2026-10-19 23:23:52 +01:00
2026-08-24 17:02:16 -05:00
2026-09-15 07:26:32 -07:00
2026-11-01 14:15:36 -08:00
2026-10-30 16:11:48 -07:00
2026-10-13 18:54:58 -04:00
2026-09-11 15:08:23 -07:00
2026-10-31 17:52:47 -07:00
2026-09-28 19:07:57 -05:00
2026-09-28 19:07:57 -05:00
2026-09-14 21:12:01 -07:00
2026-09-24 16:25:55 +05:30
2026-09-14 07:35:38 -07:00
2026-11-01 15:25:55 -08:00
2026-10-16 17:09:03 +05:30
2026-10-16 15:28:39 -07:00
2026-08-31 17:49:45 -05:00
2026-08-31 17:49:45 -05:00
2026-08-31 17:49:45 -05:00
2026-09-14 19:34:23 -05:00
2026-10-19 17:02:06 +01:00
2026-09-14 07:35:38 -07:00
2026-10-21 15:22:00 +02:00
2026-09-28 19:07:57 -05:00
2026-10-02 15:12:37 -06:00
2026-09-28 19:07:57 -05:00
2026-10-21 14:21:14 +04:00
2026-09-11 17:03:35 -07:00
2026-09-10 23:08:26 -07:00
2026-10-07 22:41:29 +04:00
2026-08-24 17:02:16 -05:00
2026-08-24 17:02:16 -05:00
2026-10-14 15:36:35 -07:00
2026-10-22 22:09:37 -07:00
2026-10-19 23:31:52 +01:00
2026-10-20 15:12:33 +01:00
2026-10-22 19:26:09 -07:00
2026-11-01 08:07:19 -08:00
2026-10-31 19:58:59 -07:00
2026-10-14 15:36:35 -07:00
2026-09-15 16:53:26 -07:00
2026-09-15 19:16:49 -07:00
2026-09-15 17:59:53 -07:00
2026-10-31 18:37:14 -07:00
2026-10-28 14:35:01 +00:00
2026-10-14 15:36:35 -07:00
2026-10-14 17:43:13 +02:00
2026-10-03 23:10:32 -07:00
2026-10-22 18:09:37 -07:00
2026-10-22 19:08:10 -07:00
2026-10-14 14:48:53 -07:00
2026-10-31 22:53:03 -07:00
2026-10-29 11:28:56 +00:00
2026-10-03 23:10:32 -07:00
2026-09-10 23:08:26 -07:00
2026-10-11 13:52:30 -07:00
2026-08-24 17:02:16 -05:00
2026-08-31 17:49:45 -05:00
2026-09-10 23:08:26 -07:00
2026-10-11 13:52:30 -07:00
2026-10-03 23:10:32 -07:00
2026-10-21 15:35:49 +02:00
2026-10-13 23:48:21 +02:00
2026-10-15 04:10:41 +02:00
2026-10-15 04:10:41 +02:00
2026-10-15 04:10:41 +02:00
2026-10-20 16:24:53 -04:00
2026-10-14 17:53:19 +02:00
2026-10-03 23:10:32 -07:00
2026-09-10 23:08:26 -07:00
2026-09-11 08:59:32 -07:00
2026-09-28 19:07:57 -05:00
2026-09-28 19:07:57 -05:00
2026-09-28 19:07:57 -05:00
2026-10-22 19:26:09 -07:00
2026-09-10 23:08:26 -07:00
2026-10-22 18:09:37 -07:00
2026-11-01 13:23:51 -08:00
2026-09-24 16:25:55 +05:30
2026-10-20 14:37:57 +01:00
2026-11-01 13:43:57 -08:00
2026-10-31 12:11:35 -07:00
2026-10-31 12:11:35 -07:00
2026-09-28 19:07:57 -05:00
2026-09-16 12:14:15 +05:30
2026-10-03 23:10:32 -07:00
2026-10-20 00:15:49 +01:00
2026-10-30 22:41:07 -07:00
2026-10-31 23:51:47 -07:00
2026-10-14 15:36:35 -07:00
2026-10-31 23:04:31 -07:00
2026-10-31 18:37:14 -07:00
2026-10-29 14:04:28 +00:00
2026-10-21 13:21:23 +02:00
2026-10-21 14:21:14 +04:00
2026-10-03 23:10:32 -07:00
2026-10-30 21:54:42 -07:00
2026-10-22 18:09:37 -07:00
2026-09-28 19:07:57 -05:00
2026-09-10 23:08:26 -07:00
2026-10-14 14:48:53 -07:00
2026-09-28 19:07:57 -05:00
2026-09-13 14:47:26 -07:00
2026-10-22 19:08:10 -07:00
2026-10-14 14:48:53 -07:00
2026-10-23 12:12:27 +01:00
2026-10-20 14:07:13 +01:00
2026-10-20 14:07:13 +01:00
2026-10-14 15:36:35 -07:00
2026-10-20 15:12:33 +01:00
2026-10-20 15:12:33 +01:00
2026-10-23 12:09:26 +01:00
2026-10-31 20:28:24 -07:00
2026-10-22 19:08:10 -07:00
2026-09-10 23:08:26 -07:00
2026-09-11 14:43:13 -07:00
2026-10-29 11:20:49 +00:00
2026-11-01 09:56:47 -08:00
2026-10-30 17:47:52 -07:00
2026-10-04 23:03:09 +05:00
2026-09-28 21:19:23 -05:00
2026-10-31 20:36:39 -07:00
2026-09-15 12:05:01 -07:00
2026-10-31 23:51:47 -07:00
2026-09-22 17:45:39 -05:00
2026-10-22 18:09:37 -07:00
2026-10-20 14:37:05 +01:00
2026-09-22 17:45:39 -05:00
2026-08-24 17:02:16 -05:00
2026-10-30 17:47:52 -07:00
2026-10-24 08:25:42 -07:00
2026-10-30 23:13:37 -07:00
2026-10-20 15:12:32 +01:00
2026-09-28 21:19:23 -05:00