Skip to content

Commit 0b7ca71

Browse files
committed
i18nのキーをsimplify
1 parent 5fb9c9a commit 0b7ca71

File tree

6 files changed

+44
-44
lines changed

6 files changed

+44
-44
lines changed

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,32 +49,32 @@
4949
"commands": [
5050
{
5151
"command": "qiita.compose",
52-
"title": "%commands.qiita.compose.title%",
52+
"title": "%commands.compose.title%",
5353
"category": "Qiita"
5454
},
5555
{
5656
"command": "qiita.openItem",
57-
"title": "%commands.qiita.openItem.title%",
57+
"title": "%commands.openItem.title%",
5858
"category": "Qiita"
5959
},
6060
{
6161
"command": "qiita.deleteItem",
62-
"title": "%commands.qiita.deleteItem.title%",
62+
"title": "%commands.deleteItem.title%",
6363
"category": "Qiita"
6464
},
6565
{
6666
"command": "qiita.editTags",
67-
"title": "%commands.qiita.editTags.title%",
67+
"title": "%commands.editTags.title%",
6868
"category": "Qiita"
6969
},
7070
{
7171
"command": "qiita.openItemExternal",
72-
"title": "%commands.qiita.openItemExternal.title%",
72+
"title": "%commands.openItemExternal.title%",
7373
"category": "Qiita"
7474
},
7575
{
7676
"command": "qiita.makePublic",
77-
"title": "%commands.qiita.makePublic.title%",
77+
"title": "%commands.makePublic.title%",
7878
"category": "Qiita"
7979
}
8080
],
@@ -85,17 +85,17 @@
8585
"properties": {
8686
"qiita.token": {
8787
"type": "string",
88-
"description": "%configuration.qiita.token.description%"
88+
"description": "%configuration..token.description%"
8989
},
9090
"qiita.tweetOnCreateItem": {
9191
"type": "boolean",
9292
"default": false,
93-
"description": "%configuration.qiita.tweetOnCreateItem.description%"
93+
"description": "%configuration..tweetOnCreateItem.description%"
9494
},
9595
"qiita.gistOnCreateItem": {
9696
"type": "boolean",
9797
"default": false,
98-
"description": "%configuration.qiita.gistOnCreateItem.description%"
98+
"description": "%configuration..gistOnCreateItem.description%"
9999
}
100100
}
101101
}
@@ -170,7 +170,7 @@
170170
"qiita": [
171171
{
172172
"id": "qiitaItems",
173-
"name": "%views.qiita.qiitaItem%"
173+
"name": "%views.qiitaItem%"
174174
}
175175
]
176176
}

package.nls.json

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,29 @@
66
"general.failure.InternalServerError": "削除に失敗しました。Qiitaのサーバーがダウンしている可能性があります。",
77
"general.failure.fallback": "ご迷惑をお掛けしてしまい申し訳ございませんが、エラーが発生しました。 バグの可能性がある場合は開発者にご報告いただけると幸いです。\nhttps://github.com/neet/vscode-qiita/issues",
88

9-
"commands.qiita.compose.title": "Qiitaで公開",
10-
"commands.qiita.compose.success": "投稿を公開しました",
11-
"commands.qiita.compose.openInBrowser": "ブラウザで確認",
9+
"commands.compose.title": "Qiitaで公開",
10+
"commands.compose.success": "投稿を公開しました",
11+
"commands.compose.openInBrowser": "ブラウザで確認",
1212

13-
"commands.qiita.openItem.title": "開く",
13+
"commands.openItem.title": "開く",
1414

15-
"commands.qiita.deleteItem.title": "削除",
16-
"commands.qiita.deleteItem.confirm.title": "投稿を削除してもよろしいですか?",
17-
"commands.qiita.deleteItem.confirm.next": "削除する",
18-
"commands.qiita.deleteItem.confirm.cancel": "キャンセル",
19-
"commands.qiita.deleteItem.success": "投稿を削除しました",
15+
"commands.deleteItem.title": "削除",
16+
"commands.deleteItem.confirm.title": "投稿を削除してもよろしいですか?",
17+
"commands.deleteItem.confirm.next": "削除する",
18+
"commands.deleteItem.confirm.cancel": "キャンセル",
19+
"commands.deleteItem.success": "投稿を削除しました",
2020

21-
"commands.qiita.editTags.title": "タグを編集",
22-
"commands.qiita.editTags.success": "タグを編集しました",
21+
"commands.editTags.title": "タグを編集",
22+
"commands.editTags.success": "タグを編集しました",
2323

24-
"commands.qiita.openItemExternal.title": "ブラウザで表示",
24+
"commands.openItemExternal.title": "ブラウザで表示",
2525

26-
"commands.qiita.makePublic.title": "投稿を公開にする",
27-
"commands.qiita.makePublic.success": "公開範囲を公開に変更しました",
28-
"commands.qiita.makePublic.confirm.title": "公開範囲を公開にしてもよろしいですか? 一度公開にしてしまうと非公開に戻すことは出来ません。",
29-
"commands.qiita.makePublic.confirm.next": "公開にする",
30-
"commands.qiita.makePublic.confirm.cancel": "キャンセル",
31-
"commands.qiita.makePublic.failure.alredyPublic": "この投稿は既に公開されています。",
26+
"commands.makePublic.title": "投稿を公開にする",
27+
"commands.makePublic.success": "公開範囲を公開に変更しました",
28+
"commands.makePublic.confirm.title": "公開範囲を公開にしてもよろしいですか? 一度公開にしてしまうと非公開に戻すことは出来ません。",
29+
"commands.makePublic.confirm.next": "公開にする",
30+
"commands.makePublic.confirm.cancel": "キャンセル",
31+
"commands.makePublic.failure.alredyPublic": "この投稿は既に公開されています。",
3232

3333
"quickpicks.tagQuickPick.title": "投稿に登録するタグを入力してください",
3434
"quickpicks.tagQuickPick.placeholder": "例) Rails React Mastodon",
@@ -44,9 +44,9 @@
4444
"quickpicks.visibilityQuickPick.private.label": "限定公開",
4545
"quickpicks.visibilityQuickPick.private.description": "投稿のURLを知っている人だけが投稿を閲覧できます",
4646

47-
"configuration.qiita.token.description": "Qiitaのアクセストークン",
48-
"configuration.qiita.tweetOnCreateItem.description": "投稿を公開した際にTwitterで共有するかどうか",
49-
"configuration.qiita.gistOnCreateItem.description": "投稿を公開した際にGitHub Gistで共有するかどうか",
47+
"configuration..token.description": "Qiitaのアクセストークン",
48+
"configuration..tweetOnCreateItem.description": "投稿を公開した際にTwitterで共有するかどうか",
49+
"configuration..gistOnCreateItem.description": "投稿を公開した際にGitHub Gistで共有するかどうか",
5050

51-
"views.qiita.qiitaItem": "Qiitaの投稿"
51+
"views.qiitaItem": "Qiitaの投稿"
5252
}

src/commands/compose.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,13 @@ export function compose (arg: object & { path: string }): void {
6969
const item = await client.createItem(options);
7070

7171
const openInBrowser = localize(
72-
'commands.qiita.compose.openInBrowser',
72+
'commands.compose.openInBrowser',
7373
'ブラウザで確認',
7474
);
7575

7676
const result = await window.showInformationMessage(
7777
localize(
78-
'commands.qiita.compose.success',
78+
'commands.compose.success',
7979
'投稿を公開しました',
8080
),
8181
openInBrowser,

src/commands/deleteItem.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@ const localize = nls.loadMessageBundle();
1212
*/
1313
export async function deleteItem (arg: object & { item: Item }) {
1414
const next = localize(
15-
'commands.qiita.deleteItem.confirm.next',
15+
'commands.deleteItem.confirm.next',
1616
'削除する',
1717
);
1818

1919
const result = await window.showInformationMessage(
2020
localize(
21-
'commands.qiita.deleteItem.confirm.title',
21+
'commands.deleteItem.confirm.title',
2222
'投稿を削除してもよろしいですか?',
2323
),
2424
next,
2525
localize(
26-
'commands.qiita.deleteItem.confirm.cancel',
26+
'commands.deleteItem.confirm.cancel',
2727
'キャンセル',
2828
),
2929
);
@@ -36,7 +36,7 @@ export async function deleteItem (arg: object & { item: Item }) {
3636
await client.deleteItem(arg.item.id);
3737

3838
return window.showInformationMessage(localize(
39-
'commands.qiita.deleteItem.success',
39+
'commands.deleteItem.success',
4040
'投稿を削除しました',
4141
));
4242
} catch (error) {

src/commands/editTags.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export async function editTags (arg: object & { item: Item }) {
4343
await updater(item, input.selectedItems);
4444

4545
return window.showInformationMessage(localize(
46-
'commands.qiita.editTags.success',
46+
'commands.editTags.success',
4747
'タグを編集しました',
4848
));
4949
} catch (error) {

src/commands/makePublic.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,24 @@ const localize = nls.loadMessageBundle();
1313
export async function makePublic (arg: object & { item: Item }) {
1414
if (!arg.item.private) {
1515
return window.showInformationMessage(localize(
16-
'commands.qiita.makePublic.failure.alredyPublic',
16+
'commands.makePublic.failure.alredyPublic',
1717
'この投稿は既に公開されています。',
1818
));
1919
}
2020

2121
const next = localize(
22-
'commands.qiita.makePublic.confirm.next',
22+
'commands.makePublic.confirm.next',
2323
'公開にする',
2424
);
2525

2626
const result = await window.showInformationMessage(
2727
localize(
28-
'commands.qiita.makePublic.confirm.title',
28+
'commands.makePublic.confirm.title',
2929
'公開範囲を公開にしてもよろしいですか? 一度公開にしてしまうと非公開に戻すことは出来ません。',
3030
),
3131
next,
3232
localize(
33-
'commands.qiita.makePublic.confirm.cancel',
33+
'commands.makePublic.confirm.cancel',
3434
'キャンセル',
3535
),
3636
);
@@ -48,7 +48,7 @@ export async function makePublic (arg: object & { item: Item }) {
4848
});
4949

5050
return window.showInformationMessage(localize(
51-
'commands.qiita.makePublic.success',
51+
'commands.makePublic.success',
5252
'公開範囲を公開に変更しました',
5353
));
5454
} catch (error) {

0 commit comments

Comments
 (0)