@akanjs/next 0.9.44 → 0.9.45

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.
@@ -27,7 +27,7 @@ var import_dictionary2 = require("@akanjs/dictionary");
27
27
  var import_react2 = require("react");
28
28
  const clientTranslate = ({ lang, dictKey, param }) => {
29
29
  if (import_base.baseClientEnv.side === "server")
30
- return import_dictionary2.serverTranslator.getTransSync(lang, dictKey) ?? dictKey;
30
+ return import_dictionary2.serverTranslator.getTransSync(lang, dictKey, param) ?? dictKey;
31
31
  const dictionary = (0, import_react2.use)(import_client.dictionaryContext);
32
32
  const keyParts = dictKey.split(".");
33
33
  const model = keyParts[0];
@@ -4,7 +4,7 @@ import { serverTranslator } from "@akanjs/dictionary";
4
4
  import { use } from "react";
5
5
  const clientTranslate = ({ lang, dictKey, param }) => {
6
6
  if (baseClientEnv.side === "server")
7
- return serverTranslator.getTransSync(lang, dictKey) ?? dictKey;
7
+ return serverTranslator.getTransSync(lang, dictKey, param) ?? dictKey;
8
8
  const dictionary = use(dictionaryContext);
9
9
  const keyParts = dictKey.split(".");
10
10
  const model = keyParts[0];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akanjs/next",
3
- "version": "0.9.44",
3
+ "version": "0.9.45",
4
4
  "sourceType": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
package/usePage.d.ts CHANGED
@@ -644,7 +644,7 @@ export declare const usePage: () => {
644
644
  [key: string]: Translation;
645
645
  };
646
646
  })[ModelKey], arg: string): string;
647
- trans<Returns extends import("react").ReactNode>(translation: Record<(string & {}) | "en" | "ko", Returns>): Returns extends string ? string : Returns;
647
+ trans<Returns extends import("react").ReactNode>(translation: Record<"en" | "ko" | (string & {}), Returns>): Returns extends string ? string : Returns;
648
648
  };
649
649
  lang: string;
650
650
  };