@akanjs/cli 2.3.9-rc.4 → 2.3.9-rc.5

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/cli",
3
- "version": "2.3.9-rc.4",
3
+ "version": "2.3.9-rc.5",
4
4
  "sourceType": "module",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -34,7 +34,7 @@
34
34
  "@langchain/openai": "^1.4.6",
35
35
  "@tailwindcss/node": "^4.3.0",
36
36
  "@trapezedev/project": "^7.1.4",
37
- "akanjs": "2.3.9-rc.4",
37
+ "akanjs": "2.3.9-rc.5",
38
38
  "chalk": "^5.6.2",
39
39
  "commander": "^14.0.3",
40
40
  "daisyui": "5.5.23",
@@ -3,9 +3,17 @@ import type { AppInfo, LibInfo } from "akanjs";
3
3
  interface Dict {
4
4
  Model: string;
5
5
  model: string;
6
+ modelDescEn?: string;
7
+ modelDescKo?: string;
8
+ modelLabelEn?: string;
9
+ modelLabelKo?: string;
6
10
  sysName: string;
7
11
  }
8
12
  export default function getContent(scanInfo: AppInfo | LibInfo | null, dict: Dict) {
13
+ const modelLabelEn = dict.modelLabelEn ?? dict.Model;
14
+ const modelLabelKo = dict.modelLabelKo ?? dict.Model;
15
+ const modelDescEn = dict.modelDescEn ?? `Manage ${modelLabelEn.toLowerCase()}.`;
16
+ const modelDescKo = dict.modelDescKo ?? `${modelLabelKo}을 관리합니다.`;
9
17
  return `
10
18
  import { modelDictionary } from "akanjs/dictionary";
11
19
 
@@ -14,11 +22,9 @@ import type { ${dict.Model}Endpoint, ${dict.Model}Slice } from "./${dict.model}.
14
22
 
15
23
  export const dictionary = modelDictionary(["en", "ko"])
16
24
  .of((t) =>
17
- t(["${dict.Model}", "${dict.Model}"]).desc(["${dict.Model} description", "${dict.Model} 설명"])
25
+ t(["${modelLabelEn}", "${modelLabelKo}"]).desc(["${modelDescEn}", "${modelDescKo}"])
18
26
  )
19
- .model<${dict.Model}>((t) => ({
20
- field: t(["Field", "필드"]).desc(["Field description", "필드 설명"]),
21
- }))
27
+ .model<${dict.Model}>((t) => ({}))
22
28
  .insight<${dict.Model}Insight>((t) => ({}))
23
29
  .slice<${dict.Model}Slice>((fn) => ({
24
30
  inPublic: fn(["${dict.Model} In Public", "${dict.Model} 공개"]).arg((t) => ({})),