usebruno / bruno

Opensource IDE For Exploring and Testing Api's (lightweight alternative to postman/insomnia)
https://www.usebruno.com/
MIT License
28k stars 1.3k forks source link

When importing a Chinese api document, the interface name will be displayed as a symbol when it is in Chinese, "------". #3211

Open liubq opened 2 months ago

liubq commented 2 months ago

I have checked the following:

Describe the feature you want to add

Looking forward to support Chinese import

Mockups or Images of the feature

example json(test.json): { "name": "测试", "version": "1", "items": [ { "type": "folder", "name": "测试接口", "items": [ { "type": "http", "name": "获取用户信息", "seq": 1, "request": { "url": "{{host}}/api/getuser", "method": "GET", "headers": [ { "name": "time", "value": "2024年8月18日19:13:351", "enabled": true } ], "params": [], "body": { "mode": "none", "formUrlEncoded": [], "multipartForm": [] }, "script": {}, "vars": {}, "assertions": [], "tests": "", "auth": { "mode": "inherit" } } } ] }, { "type": "folder", "name": "登录", "items": [ { "type": "http", "name": "登录获取Token", "seq": 1, "request": { "url": "{{host}}/api/login", "method": "POST", "headers": [], "params": [], "body": { "mode": "json", "json": "{\n \"account\": \"admin\",\n \"password\": \"123456\",\n \"codeId\": 0,\n \"code\": \"string\",\n \"clientId\": \"string\"\n}", "formUrlEncoded": [], "multipartForm": [] }, "script": { "res": "\nbru.setEnvVar(\"token\",res.getBody().result.accessToken);" }, "vars": {}, "assertions": [], "tests": "", "auth": { "mode": "none" } } } ] } ], "activeEnvironmentUid": "Nmsermr3uv8oyIlRsg2p4", "environments": [ { "variables": [ { "name": "host", "value": "http://localhost:5005", "enabled": true, "secret": false, "type": "text" } ], "name": "localhost" } ], "root": { "request": { "auth": { "mode": "bearer", "bearer": { "token": "{{token}}" } } } }, "brunoConfig": { "version": "1", "name": "测试", "type": "collection", "ignore": [ "node_modules", ".git" ] } }

brandonxiang commented 1 month ago

image

Chinese word disappeared

wsldl123292 commented 1 month ago

please fix it