Wenfang Du
Wenfang Du

Reputation: 11407

How to set a Chinese app name in Electron?

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?

Upvotes: 0

Views: 413

Answers (1)

Wenfang Du
Wenfang Du

Reputation: 11407

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": "测试".

Upvotes: 0

Related Questions