How to set a Chinese app name in Electron?

346 Views Asked by At

I'm using electron-forge and Squirrel.Windows, if I set a Chinese name in package.json, such as "name": "测试", it warns:

String does not match the pattern of "^(?:@[a-z0-9-*~][a-z0-9-*._~]*/)?[a-z0-9-~][a-z0-9-._~]*$".

So how do I set a Chinese app name in Electron?

1

There are 1 best solutions below

0
Wenfang Du On BEST ANSWER

Given that you're using electron-forge and Squirrel.Windows, you can set a Chinese productName in package.json to achieve a Chinese app name, in your case: "productName": "测试".