@junejs/server 0.0.25 → 0.0.27
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/package.json +3 -3
- package/src/pipeline.ts +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@junejs/server",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.27",
|
|
4
4
|
"description": "June host adapters + dev server. Host-coupled; depends on the pure @junejs/core contract layer.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"typecheck": "tsc --noEmit"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@junejs/core": "0.0.
|
|
34
|
-
"@junejs/db": "0.0.
|
|
33
|
+
"@junejs/core": "0.0.27",
|
|
34
|
+
"@junejs/db": "0.0.27",
|
|
35
35
|
"marked": "^18.0.5",
|
|
36
36
|
"rolldown": "^1.1.0",
|
|
37
37
|
"lightningcss": "^1.27.0"
|
package/src/pipeline.ts
CHANGED
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
} from "@junejs/core/discovery";
|
|
36
36
|
import { mcpHandler, mcpTools } from "@junejs/core/mcp";
|
|
37
37
|
|
|
38
|
-
import { ensureScope, runInScope } from "@junejs/db";
|
|
38
|
+
import { ensureScope, runInScope, setRequestLocale } from "@junejs/db";
|
|
39
39
|
import type { AgentConfig } from "@junejs/core/config";
|
|
40
40
|
import {
|
|
41
41
|
LOCALE_COOKIE,
|
|
@@ -510,6 +510,9 @@ export function createPipeline(cfg: PipelineConfig): Pipeline {
|
|
|
510
510
|
cookie: readCookie(request, LOCALE_COOKIE),
|
|
511
511
|
});
|
|
512
512
|
}
|
|
513
|
+
// Publish the resolved locale onto the request scope so an opt-in i18n
|
|
514
|
+
// layer's ambient `t` can read it (the core pipeline never imports i18n).
|
|
515
|
+
if (locale) setRequestLocale(locale);
|
|
513
516
|
}
|
|
514
517
|
|
|
515
518
|
// --- routes ----------------------------------------------------------
|