akanjs 2.3.6-rc.0 → 2.3.6-rc.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "akanjs",
3
- "version": "2.3.6-rc.0",
3
+ "version": "2.3.6-rc.1",
4
4
  "sourceType": "module",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -20,6 +20,7 @@ export type DevChangeRole = "server" | "client" | "shared" | "barrel" | "config"
20
20
 
21
21
  export type DevChangeAction =
22
22
  | "restart-backend"
23
+ | "restart-builder"
23
24
  | "rebuild-client"
24
25
  | "rebuild-css"
25
26
  | "sync-generated"
@@ -28,7 +28,7 @@ export interface CssPayload {
28
28
  changedFiles?: string[];
29
29
  }
30
30
  export type DevChangeRole = "server" | "client" | "shared" | "barrel" | "config" | "css";
31
- export type DevChangeAction = "restart-backend" | "rebuild-client" | "rebuild-css" | "sync-generated" | "restart-dev-host" | "report-error";
31
+ export type DevChangeAction = "restart-backend" | "restart-builder" | "rebuild-client" | "rebuild-css" | "sync-generated" | "restart-dev-host" | "report-error";
32
32
  export interface DevChangePlan {
33
33
  generation: number;
34
34
  files: string[];
@@ -59,7 +59,7 @@ export const ClientWrapper = ({
59
59
  }: ClientWrapperProps) => {
60
60
 
61
61
  if (dictionary) {
62
- Translator.seed(lang, dictionary);
62
+ Translator.replace(lang, dictionary);
63
63
 
64
64
  Translator.setActiveLocale(lang);
65
65
  }
package/ui/System/SSR.tsx CHANGED
@@ -39,7 +39,7 @@ const SSRProvider = ({
39
39
 
40
40
  const { lang: activeLocale, path: activePath } = usePage();
41
41
 
42
- if (allDictionary) for (const [lng, dict] of Object.entries(allDictionary)) Translator.seed(lng, dict);
42
+ if (allDictionary) for (const [lng, dict] of Object.entries(allDictionary)) Translator.replace(lng, dict);
43
43
 
44
44
  const activeDictionary = allDictionary?.[activeLocale] ?? dictionary;
45
45