Windows Wechat版本:3.1.0.67
macOS Wechat版本:2.6.1 (16853)
您好,使用wx.getSystemInfo这个API在Windows和macOS版本的小程序里,总是得到language属性为:zh_CN值,这就让小程序在桌面版本中无法识别语言做语言的国际化,能否修改这个bug,下面的输出是操作系统为英文小程序也设置为英文的情况下的输出
在Windows中:
{"albumAuthorized":true,"benchmarkLevel":-1,"bluetoothEnabled":false,"brand":"microsoft","cameraAuthorized":true,"fontSizeSetting":15,"language":"zh_CN","locationAuthorized":true,"locationEnabled":true,"microphoneAuthorized":true,"model":"microsoft","notificationAuthorized":true,"notificationSoundEnabled":true,"pixelRatio":2,"platform":"windows","power":100,"safeArea":{"bottom":692,"height":692,"left":0,"right":414,"top":0,"width":414},"screenHeight":736,"screenWidth":414,"statusBarHeight":20,"system":"Windows 10 x64","theme":"light","version":"7.0.9","wifiEnabled":true,"windowHeight":692,"windowWidth":414,"SDKVersion":"2.13.2","devicePixelRatio":2}
在macOS中:
{"safeArea":{"bottom":896,"height":896,"top":0,"width":414,"left":0,"right":414},"system":"macOS 10.16.0","version":"7.0.8","brand":"MacBookPro16,1","windowHeight":896,"pixelRatio":2,"platform":"mac","screenHeight":896,"language":"zh_CN","power":100,"statusBarHeight":22,"deviceOrientation":"portrait","windowWidth":414,"model":"MacBookPro16,1","screenWidth":414,"fontSizeSetting":16,"SDKVersion":"2.13.2","devicePixelRatio":2}
并不是BUG哦,是需要你在这里设置的。
设置了,mac版本和windows版本的桌面软件都设置为英文了,包括操作系统也设置了英文了,都不行