Skip to content

Commit 5efc2a4

Browse files
authored
Localize ipynb extension commands (microsoft#172272)
* Localize ipynb extension commands * More updates
1 parent 75d10e4 commit 5efc2a4

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

extensions/ipynb/package.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
"diffContentOptions"
1414
],
1515
"activationEvents": [
16-
"onNotebook:jupyter-notebook",
17-
"onCommand:ipynb.newUntitledIpynb"
16+
"onNotebook:jupyter-notebook"
1817
],
1918
"extensionKind": [
2019
"workspace",
@@ -44,17 +43,17 @@
4443
"commands": [
4544
{
4645
"command": "ipynb.newUntitledIpynb",
47-
"title": "New Jupyter Notebook",
48-
"shortTitle": "Jupyter Notebook",
46+
"title": "%newUntitledIpynb.title%",
47+
"shortTitle": "%newUntitledIpynb.shortTitle%",
4948
"category": "Create"
5049
},
5150
{
5251
"command": "ipynb.openIpynbInNotebookEditor",
53-
"title": "Open ipynb file in notebook editor"
52+
"title": "%openIpynbInNotebookEditor.title%"
5453
},
5554
{
5655
"command": "ipynb.cleanInvalidImageAttachment",
57-
"title": "Clean invalid image attachment reference"
56+
"title": "%cleanInvalidImageAttachment.title%"
5857
}
5958
],
6059
"notebooks": [
@@ -72,7 +71,7 @@
7271
"notebookRenderer": [
7372
{
7473
"id": "vscode.markdown-it-cell-attachment-renderer",
75-
"displayName": "Markdown it ipynb Cell Attachment renderer",
74+
"displayName": "%markdownAttachmentRenderer.displayName%",
7675
"entrypoint": {
7776
"extends": "vscode.markdown-it-renderer",
7877
"path": "./notebook-out/cellAttachmentRenderer.js"

extensions/ipynb/package.nls.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
22
"displayName": ".ipynb Support",
33
"description": "Provides basic support for opening and reading Jupyter's .ipynb notebook files",
4-
"ipynb.pasteImagesAsAttachments.enabled": "Enable/disable pasting of images into Markdown cells in ipynb notebook files. Pasted images are inserted as attachments to the cell."
4+
"ipynb.pasteImagesAsAttachments.enabled": "Enable/disable pasting of images into Markdown cells in ipynb notebook files. Pasted images are inserted as attachments to the cell.",
5+
"newUntitledIpynb.title": "New Jupyter Notebook",
6+
"newUntitledIpynb.shortTitle": "Jupyter Notebook",
7+
"openIpynbInNotebookEditor.title": "Open IPYNB File In Notebook Editor",
8+
"cleanInvalidImageAttachment.title": "Clean Invalid Image Attachment Reference",
9+
"markdownAttachmentRenderer.displayName": "Markdown it ipynb Cell Attachment renderer"
510
}

0 commit comments

Comments
 (0)