Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
fj3224013877 opened this issue May 29, 2023 · 4 comments

Comments

@fj3224013877
Copy link

No description provided.

@fj3224013877
Copy link
Author

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

@chopins
Copy link

chopins commented Jun 20, 2023

#24 (comment)

@WaterJoyful
Copy link

WaterJoyful commented Sep 2, 2023

%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
Copy link

可以找到

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

打开然后Ctrl+F搜索:

<script src="${vscode}/dist/kityminder.editor.min.js"></script>

在下面添加这一行:

<script src="${vscode}/dist/kityminder.editor.js"></script>

然后找到文件

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保存就可以了
参考: #24 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants