Skip to content

Commit ff61ac2

Browse files
committed
投稿更新時のメッセージをローカライズ
1 parent 00dac86 commit ff61ac2

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

package.nls.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"commands.compose.openInBrowser": "ブラウザで確認",
1212

1313
"commands.openItem.title": "開く",
14+
"commands.openItem.updateSuccess": "投稿を更新しました",
1415
"commands.openItem.failure.fallback": "ファイルの表示に失敗しました。指定された投稿は存在しない可能性があります。",
1516

1617
"commands.deleteItem.title": "削除",

src/commands/openItem.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ export const updater = async (item: Item, document: TextDocument) => {
2828

2929
fs.writeFileSync(document.uri.path, document.getText());
3030

31-
window.showInformationMessage('updated');
31+
window.showInformationMessage(localize(
32+
'commands.openItem.updateSuccess',
33+
'投稿を更新しました',
34+
));
3235
} catch (error) {
3336
handleErrorMessage(error);
3437
}

0 commit comments

Comments
 (0)