diff --git a/package.json b/package.json index 917c45e..77b916c 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "commands": [ { "command": "copy-line.copySelectionReference", - "title": "复制选中文件与行号", + "title": "%copyLine.command.title%", "icon": "$(go-to-file)" } ], @@ -70,7 +70,7 @@ ], "configuration": { "type": "object", - "title": "Copy Line", + "title": "%copyLine.configuration.title%", "properties": { "copy-line.outputFormat": { "type": "string", @@ -81,27 +81,27 @@ "natural" ], "default": "labeled", - "description": "输出格式:labeled(如: File: src/file.ts (line 24-30)), compact(如: src/file.ts:24-30), code-style(如: src/file.ts:24:30), natural(如: 在 src/file.ts 的第 24 行)" + "description": "%copyLine.configuration.outputFormat.description%" }, "copy-line.useAbsolutePath": { "type": "boolean", "default": false, - "description": "使用绝对路径而非相对路径" + "description": "%copyLine.configuration.useAbsolutePath.description%" }, "copy-line.showStatusMessage": { "type": "boolean", "default": true, - "description": "复制后显示状态栏提示消息" + "description": "%copyLine.configuration.showStatusMessage.description%" }, "copy-line.singleLineFormat": { "type": "string", "default": "line ${line}", - "description": "单行选择时的格式" + "description": "%copyLine.configuration.singleLineFormat.description%" }, "copy-line.multiLineFormat": { "type": "string", "default": "line ${start}-${end}", - "description": "多行选择时的格式" + "description": "%copyLine.configuration.multiLineFormat.description%" } } } diff --git a/package.nls.json b/package.nls.json new file mode 100644 index 0000000..f793492 --- /dev/null +++ b/package.nls.json @@ -0,0 +1,9 @@ +{ + "copyLine.command.title": "Copy Selection Reference", + "copyLine.configuration.title": "Copy Line", + "copyLine.configuration.outputFormat.description": "Output format: labeled (for example, File: src/file.ts (line 24-30)), compact (for example, src/file.ts:24-30), code-style (for example, src/file.ts:24:30), natural (for example, at line 24 in src/file.ts).", + "copyLine.configuration.useAbsolutePath.description": "Use an absolute path instead of a relative path.", + "copyLine.configuration.showStatusMessage.description": "Show a status bar message after copying.", + "copyLine.configuration.singleLineFormat.description": "Format used for a single-line selection.", + "copyLine.configuration.multiLineFormat.description": "Format used for a multi-line selection." +} diff --git a/package.nls.zh-cn.json b/package.nls.zh-cn.json new file mode 100644 index 0000000..b0dc3ca --- /dev/null +++ b/package.nls.zh-cn.json @@ -0,0 +1,9 @@ +{ + "copyLine.command.title": "复制选中文件与行号", + "copyLine.configuration.title": "Copy Line", + "copyLine.configuration.outputFormat.description": "输出格式:labeled(例如:File: src/file.ts (line 24-30))、compact(例如:src/file.ts:24-30)、code-style(例如:src/file.ts:24:30)、natural(例如:在 src/file.ts 的第 24 行)。", + "copyLine.configuration.useAbsolutePath.description": "使用绝对路径而非相对路径。", + "copyLine.configuration.showStatusMessage.description": "复制后显示状态栏提示消息。", + "copyLine.configuration.singleLineFormat.description": "单行选择时的格式。", + "copyLine.configuration.multiLineFormat.description": "多行选择时的格式。" +}