@gunshi/resources 0.37.3 → 1.0.0-beta.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 -3
- package/lib/index.d.ts +16 -0
- package/lib/index.js +18 -2
- package/locales/en-US.json +9 -1
- package/locales/ja-JP.json +9 -1
- package/package.json +2 -2
package/README.md
CHANGED
package/lib/index.d.ts
CHANGED
|
@@ -24,7 +24,15 @@ declare const _default: {
|
|
|
24
24
|
"err:arg:invalid-choice": string;
|
|
25
25
|
"err:arg:custom-parse": string;
|
|
26
26
|
"err:arg:unknown-option": string;
|
|
27
|
+
"err:arg:unexpected-value": string;
|
|
28
|
+
"err:arg:missing-value": string;
|
|
29
|
+
"err:arg:missing-value:hint": string;
|
|
30
|
+
"err:arg:conflict": string;
|
|
31
|
+
"err:arg:invalid-default": string;
|
|
27
32
|
"err:cmd:not-found": string;
|
|
33
|
+
"err:cmd:ambiguous": string;
|
|
34
|
+
"err:cmd:inconsistent-options": string;
|
|
35
|
+
"err:cmd:lazy-schema-mismatch": string;
|
|
28
36
|
"err:suggestion:did-you-mean": string;
|
|
29
37
|
};
|
|
30
38
|
'ja-JP': {
|
|
@@ -47,7 +55,15 @@ declare const _default: {
|
|
|
47
55
|
"err:arg:invalid-choice": string;
|
|
48
56
|
"err:arg:custom-parse": string;
|
|
49
57
|
"err:arg:unknown-option": string;
|
|
58
|
+
"err:arg:unexpected-value": string;
|
|
59
|
+
"err:arg:missing-value": string;
|
|
60
|
+
"err:arg:missing-value:hint": string;
|
|
61
|
+
"err:arg:conflict": string;
|
|
62
|
+
"err:arg:invalid-default": string;
|
|
50
63
|
"err:cmd:not-found": string;
|
|
64
|
+
"err:cmd:ambiguous": string;
|
|
65
|
+
"err:cmd:inconsistent-options": string;
|
|
66
|
+
"err:cmd:lazy-schema-mismatch": string;
|
|
51
67
|
"err:suggestion:did-you-mean": string;
|
|
52
68
|
};
|
|
53
69
|
};
|
package/lib/index.js
CHANGED
|
@@ -20,12 +20,20 @@ var src_default = {
|
|
|
20
20
|
help: "Display this help message",
|
|
21
21
|
version: "Display this version",
|
|
22
22
|
"err:arg:required-option": "Optional argument {$displayName} is required",
|
|
23
|
-
"err:arg:required-positional": "Positional argument {$
|
|
23
|
+
"err:arg:required-positional": "Positional argument {$displayName} is required",
|
|
24
24
|
"err:arg:invalid-type": "Invalid value for {$displayName}: expected {$expected}",
|
|
25
25
|
"err:arg:invalid-choice": "Invalid value for {$displayName}: expected one of {$choices}",
|
|
26
26
|
"err:arg:custom-parse": "Invalid value for {$displayName}: {$reason}",
|
|
27
27
|
"err:arg:unknown-option": "Unknown option: {$rawName}",
|
|
28
|
+
"err:arg:unexpected-value": "Optional argument {$displayName} does not take a value",
|
|
29
|
+
"err:arg:missing-value": "Optional argument {$displayName} requires a value",
|
|
30
|
+
"err:arg:missing-value:hint": "(to pass '{$next}' as its value, write '{$suggestion}')",
|
|
31
|
+
"err:arg:conflict": "{$displayName} conflicts with {$conflictDisplayName}",
|
|
32
|
+
"err:arg:invalid-default": "Invalid default for {$displayName}: {$actual} is not one of {$choices}",
|
|
28
33
|
"err:cmd:not-found": "Command not found: {$commandName}",
|
|
34
|
+
"err:cmd:ambiguous": "The command is ambiguous. Move options after the command name: {$candidatePaths}",
|
|
35
|
+
"err:cmd:inconsistent-options": "The options do not identify a consistent command. Move options after the command name.",
|
|
36
|
+
"err:cmd:lazy-schema-mismatch": "The lazy command definition does not match its loaded options. Declare leading options in the lazy definition or move options after the command name: {$commandPath}",
|
|
29
37
|
"err:suggestion:did-you-mean": "Did you mean {$name}?"
|
|
30
38
|
},
|
|
31
39
|
"ja-JP": {
|
|
@@ -43,12 +51,20 @@ var src_default = {
|
|
|
43
51
|
help: "このヘルプメッセージを表示",
|
|
44
52
|
version: "このバージョンを表示",
|
|
45
53
|
"err:arg:required-option": "オプション {$displayName} は必須です",
|
|
46
|
-
"err:arg:required-positional": "位置引数 {$
|
|
54
|
+
"err:arg:required-positional": "位置引数 {$displayName} は必須です",
|
|
47
55
|
"err:arg:invalid-type": "{$displayName} の値が不正です。期待される型: {$expected}",
|
|
48
56
|
"err:arg:invalid-choice": "{$displayName} の値が不正です。指定可能な値: {$choices}",
|
|
49
57
|
"err:arg:custom-parse": "{$displayName} の値が不正です: {$reason}",
|
|
50
58
|
"err:arg:unknown-option": "未定義のオプションです: {$rawName}",
|
|
59
|
+
"err:arg:unexpected-value": "オプション {$displayName} は値を取りません",
|
|
60
|
+
"err:arg:missing-value": "オプション {$displayName} には値が必要です",
|
|
61
|
+
"err:arg:missing-value:hint": "('{$next}' を値として渡すには '{$suggestion}' と書いてください)",
|
|
62
|
+
"err:arg:conflict": "{$displayName} と {$conflictDisplayName} は同時に指定できません",
|
|
63
|
+
"err:arg:invalid-default": "{$displayName} の既定値 {$actual} は {$choices} のいずれでもありません",
|
|
51
64
|
"err:cmd:not-found": "コマンドが見つかりません: {$commandName}",
|
|
65
|
+
"err:cmd:ambiguous": "コマンドを一意に解決できません。オプションをコマンド名の後ろに移してください: {$candidatePaths}",
|
|
66
|
+
"err:cmd:inconsistent-options": "オプションからコマンドを一意に解決できません。オプションをコマンド名の後ろに移してください。",
|
|
67
|
+
"err:cmd:lazy-schema-mismatch": "lazy コマンドの定義とロード後のオプションが一致しません。前置きするオプションを lazy の定義に記載するか、コマンド名の後ろに移してください: {$commandPath}",
|
|
52
68
|
"err:suggestion:did-you-mean": "{$name} の指定ミスではありませんか?"
|
|
53
69
|
}
|
|
54
70
|
};
|
package/locales/en-US.json
CHANGED
|
@@ -13,11 +13,19 @@
|
|
|
13
13
|
"help": "Display this help message",
|
|
14
14
|
"version": "Display this version",
|
|
15
15
|
"err:arg:required-option": "Optional argument {$displayName} is required",
|
|
16
|
-
"err:arg:required-positional": "Positional argument {$
|
|
16
|
+
"err:arg:required-positional": "Positional argument {$displayName} is required",
|
|
17
17
|
"err:arg:invalid-type": "Invalid value for {$displayName}: expected {$expected}",
|
|
18
18
|
"err:arg:invalid-choice": "Invalid value for {$displayName}: expected one of {$choices}",
|
|
19
19
|
"err:arg:custom-parse": "Invalid value for {$displayName}: {$reason}",
|
|
20
20
|
"err:arg:unknown-option": "Unknown option: {$rawName}",
|
|
21
|
+
"err:arg:unexpected-value": "Optional argument {$displayName} does not take a value",
|
|
22
|
+
"err:arg:missing-value": "Optional argument {$displayName} requires a value",
|
|
23
|
+
"err:arg:missing-value:hint": "(to pass '{$next}' as its value, write '{$suggestion}')",
|
|
24
|
+
"err:arg:conflict": "{$displayName} conflicts with {$conflictDisplayName}",
|
|
25
|
+
"err:arg:invalid-default": "Invalid default for {$displayName}: {$actual} is not one of {$choices}",
|
|
21
26
|
"err:cmd:not-found": "Command not found: {$commandName}",
|
|
27
|
+
"err:cmd:ambiguous": "The command is ambiguous. Move options after the command name: {$candidatePaths}",
|
|
28
|
+
"err:cmd:inconsistent-options": "The options do not identify a consistent command. Move options after the command name.",
|
|
29
|
+
"err:cmd:lazy-schema-mismatch": "The lazy command definition does not match its loaded options. Declare leading options in the lazy definition or move options after the command name: {$commandPath}",
|
|
22
30
|
"err:suggestion:did-you-mean": "Did you mean {$name}?"
|
|
23
31
|
}
|
package/locales/ja-JP.json
CHANGED
|
@@ -13,11 +13,19 @@
|
|
|
13
13
|
"help": "このヘルプメッセージを表示",
|
|
14
14
|
"version": "このバージョンを表示",
|
|
15
15
|
"err:arg:required-option": "オプション {$displayName} は必須です",
|
|
16
|
-
"err:arg:required-positional": "位置引数 {$
|
|
16
|
+
"err:arg:required-positional": "位置引数 {$displayName} は必須です",
|
|
17
17
|
"err:arg:invalid-type": "{$displayName} の値が不正です。期待される型: {$expected}",
|
|
18
18
|
"err:arg:invalid-choice": "{$displayName} の値が不正です。指定可能な値: {$choices}",
|
|
19
19
|
"err:arg:custom-parse": "{$displayName} の値が不正です: {$reason}",
|
|
20
20
|
"err:arg:unknown-option": "未定義のオプションです: {$rawName}",
|
|
21
|
+
"err:arg:unexpected-value": "オプション {$displayName} は値を取りません",
|
|
22
|
+
"err:arg:missing-value": "オプション {$displayName} には値が必要です",
|
|
23
|
+
"err:arg:missing-value:hint": "('{$next}' を値として渡すには '{$suggestion}' と書いてください)",
|
|
24
|
+
"err:arg:conflict": "{$displayName} と {$conflictDisplayName} は同時に指定できません",
|
|
25
|
+
"err:arg:invalid-default": "{$displayName} の既定値 {$actual} は {$choices} のいずれでもありません",
|
|
21
26
|
"err:cmd:not-found": "コマンドが見つかりません: {$commandName}",
|
|
27
|
+
"err:cmd:ambiguous": "コマンドを一意に解決できません。オプションをコマンド名の後ろに移してください: {$candidatePaths}",
|
|
28
|
+
"err:cmd:inconsistent-options": "オプションからコマンドを一意に解決できません。オプションをコマンド名の後ろに移してください。",
|
|
29
|
+
"err:cmd:lazy-schema-mismatch": "lazy コマンドの定義とロード後のオプションが一致しません。前置きするオプションを lazy の定義に記載するか、コマンド名の後ろに移してください: {$commandPath}",
|
|
22
30
|
"err:suggestion:did-you-mean": "{$name} の指定ミスではありませんか?"
|
|
23
31
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gunshi/resources",
|
|
3
3
|
"description": "built-in localization resources for gunshi",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "1.0.0-beta.1",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "kazuya kawaguchi",
|
|
7
7
|
"email": "kawakazu80@gmail.com"
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"jsr": "^0.14.3",
|
|
69
69
|
"jsr-exports-lint": "^0.4.2",
|
|
70
70
|
"publint": "^0.3.20",
|
|
71
|
-
"tsdown": "0.
|
|
71
|
+
"tsdown": "0.22.14"
|
|
72
72
|
},
|
|
73
73
|
"scripts": {
|
|
74
74
|
"build": "tsdown",
|