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

找到了更改为中文的方法,也就花了亿点点时间而已 #24

Open
liuyu-f opened this issue Jan 31, 2021 · 2 comments
Open

Comments

@liuyu-f
Copy link

liuyu-f commented Jan 31, 2021

打开文件
windows:%USERPROFILE%.vscode\extensions\souche.vscode-mindmap-0.0.5\webui\dist\kityminder.editor.min.js
Linux和macOS:~/.vscode/extensions\souche.vscode-mindmap-0.0.5\webui\dist\kityminder.editor.min.js
搜索

["config","lang.en",

替换为

["config","lang.zh-cn",

搜索

return{"zh-cn"

替换为

return{en

保存,ok。

@AirAirAirAirAirAir
Copy link

上号给你点个赞

@liuyu-f liuyu-f closed this as completed Apr 26, 2023
@liuyu-f liuyu-f reopened this Apr 26, 2023
@chopins
Copy link

chopins commented Jun 20, 2023

可以修改:
%USERPROFILE%.vscode\extensions\souche.vscode-mindmap-0.0.5\webui\mindmap.html

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

改为

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

然后把文件%USERPROFILE%.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) {

搜索:

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

改为

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

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