收藏
回答

桌面版本的小程序包括Windows和macOS语言总是显示zh_CN

框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小程序 Bug wx.getSystemInfo 工具 Windows Wechat版本:3.1.0.67 macOS Wechat版本:2.6.1 (16853) 2.13.2

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}

回答关注问题邀请回答
收藏

2 个回答

  • brave
    brave
    2021-01-25

    并不是BUG哦,是需要你在这里设置的。

    2021-01-25
    有用 1
    回复
  • Melo
    Melo
    2021-01-25

    设置了,mac版本和windows版本的桌面软件都设置为英文了,包括操作系统也设置了英文了,都不行

    2021-01-25
    有用
    回复
登录 后发表内容
问题标签