vscode-mindmap icon indicating copy to clipboard operation
vscode-mindmap copied to clipboard

如何更改中文?我看到了那个方法但是我不会,我应该如何查找和替换?

Open longaotian0213 opened this issue 2 years ago • 4 comments

longaotian0213 avatar May 29 '23 04:05 longaotian0213

是否有更简单的更换语言的方法

longaotian0213 avatar May 29 '23 04:05 longaotian0213

https://github.com/souche/vscode-mindmap/issues/24#issuecomment-1598496191

chopins avatar Jun 20 '23 11:06 chopins

%USERPROFILE%.vscode\extensions\souche.vscode-mindmap-0.0.5\webui\mindmap.html

我猜你可能是没找到%USERPROFILE%这个目录,默认应该是在

C:\Users\你的用户名

这个目录下面,我是在这个目录找到的

C:\Users\我的用户名.vscode\extensions\souche.vscode-mindmap-0.0.5\webui\mindmap.html

WaterJoyful avatar Sep 02 '23 20:09 WaterJoyful

可以找到

C:\Users\你的用户名.vscode\extensions\souche.vscode-mindmap-0.0.5\webui\mindmap.html

打开然后Ctrl+F搜索:

在下面添加这一行:

然后找到文件

C:\Users\你的用户名.vscode\extensions\souche.vscode-mindmap-0.0.5\webui\dist\kityminder.editor.js

找到:

angular.module('kityminderEditor').filter('lang', [ 'config', 'lang.en', function(config, lang) {

改成:

angular.module('kityminderEditor').filter('lang', [ 'config', 'lang.zh-cn', function(config, lang) {

(就是将原来的en改成zh-cn)

然后搜索:

// 默认语言 defaultLang: 'en',

改成

// 默认语言 defaultLang: 'zh-cn',

最后Ctrl+S保存就可以了 参考: https://github.com/souche/vscode-mindmap/issues/24#issuecomment-1598496191

WaterJoyful avatar Sep 02 '23 21:09 WaterJoyful