@inglorious/ssx 2.3.0 → 2.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -312,7 +312,7 @@ Notes:
|
|
|
312
312
|
|
|
313
313
|
- The default locale is not prefixed (`/about`, not `/en/about`).
|
|
314
314
|
- Locale-prefixed routes are handled in both build output and client-side navigation.
|
|
315
|
-
- SSX picks the locale; to translate strings (catalogues, plurals, dates, markup in translations), use [`@inglorious/i18n`](https://www.npmjs.com/package/@inglorious/i18n) with its entity named `i18n`. SSX switches it to the locale of each page and loads that catalogue before `load` runs and the page renders, on the server and before the client hydrates, so translations always match the URL rather than the browser's language. Translate inside `render`, `load` or a `metadata` function rather than when a module is imported, so each page gets its own language.
|
|
315
|
+
- SSX picks the locale; to translate strings (catalogues, plurals, dates, markup in translations), use [`@inglorious/i18n`](https://www.npmjs.com/package/@inglorious/i18n) with its entity named `i18n`. SSX switches it to the locale of each page and loads that catalogue before `load` runs and the page renders, on the server and before the client hydrates, so translations always match the URL rather than the browser's language. Translate inside `render`, `load` or a `metadata` function rather than when a module is imported, so each page gets its own language. Create it with `isServerRendered: true`, so the browser starts in the language the server rendered instead of first loading the catalogue of its own language: `createI18n({ catalogues, isServerRendered: true })`.
|
|
316
316
|
|
|
317
317
|
### ⚛️ Entity-Based State and Behavior
|
|
318
318
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inglorious/ssx",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.1",
|
|
4
4
|
"description": "Server-Side-X. Xecution? Xperience? Who knows.",
|
|
5
5
|
"author": "Matteo Antony Mistretta <antony.mistretta@gmail.com> (https://ingloriouscoderz.it)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@inglorious/store": "12.1.0",
|
|
53
53
|
"@inglorious/utils": "5.1.0",
|
|
54
|
-
"@inglorious/web": "6.10.
|
|
54
|
+
"@inglorious/web": "6.10.1",
|
|
55
55
|
"@lit-labs/ssr": "^4.1.0",
|
|
56
56
|
"commander": "^15.0.0",
|
|
57
57
|
"connect": "^3.7.0",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@inglorious/eslint-config": "1.2.0",
|
|
73
|
-
"@inglorious/logo": "3.0.
|
|
73
|
+
"@inglorious/logo": "3.0.26",
|
|
74
74
|
"prettier": "^3.9.6",
|
|
75
75
|
"vitest": "^5.0.0"
|
|
76
76
|
},
|