Aohan
Aohan
  • 发布:2023-08-11 10:11
  • 更新:2023-10-07 17:22
  • 阅读:426

【报Bug】uni appios隐私提示国际化已配置但是实际app里一直显示英文不显示其他语言

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: win10

HBuilderX类型: Alpha

HBuilderX版本号: 3.8.11

手机系统: iOS

手机系统版本号: iOS 15

手机厂商: 苹果

手机机型: iphone7

页面类型: vue

vue版本: vue2

打包方式: 云端

项目创建方式: HBuilderX

示例代码:

"ios" : {
"bounce" : "none",
"idfa" : true,
"privacyDescription" : {
"NSPhotoLibraryUsageDescription" : "Select \"Allow Access to All Photos\" so that you can access, send and save photos and videos while using HC+. If you choose \"Select Photos\", unselected and future photos and videos will not be allowed to be used on HC+.",
"NSCameraUsageDescription" : "We need access to your camera so that you can take a new profile picture directly within HC+.",
"NSBluetoothPeripheralUsageDescription" : "For better use, it is recommended to open the permission to use Bluetooth.",
"NSBluetoothAlwaysUsageDescription" : "For better use, it is recommended to open the permission to use Bluetooth.",
"NSUserTrackingUsageDescription" : "We use this data to understand feature usage and improve our product.",
"NSLocationAlwaysAndWhenInUseUsageDescription" : "This application collects location data to enable WiFi search functionality, making it more convenient to connect your device to nearby WiFi signals.",
"NSLocationAlwaysUsageDescription" : "This application collects location data to enable WiFi search functionality, making it more convenient to connect your device to nearby WiFi signals.",
"NSLocationWhenInUseUsageDescription" : "This application collects location data to enable WiFi search functionality, making it more convenient to connect your device to nearby WiFi signals.",
"NSPhotoLibraryAddUsageDescription" : "Select \"Allow Access to All Photos\" so that you can access, send and save photos and videos while using HC+. If you choose \"Select Photos\", unselected and future photos and videos will not be allowed to be used on HC+.",
"NSLocalNetworkUsageDescription" : "This application collects location data to enable WiFi search functionality, making it more convenient to connect your device to nearby WiFi signals."
},
"dSYMs" : false
},
"locales" : {
"en" : {
"name" : "HC+",
//日语
"ios" : {
"privacyDescription" : {
"NSPhotoLibraryUsageDescription" : "Select 'Allow Access to All Photos' so that you can access, send and save photos and videos while using HC+. If you choose 'Select Photos', unselected and future photos and videos will not be allowed to be used on HC+.",
"NSCameraUsageDescription" : "We need access to your camera so that you can take a new profile picture directly within HC+.",
"NSBluetoothPeripheralUsageDescription" : "For better use, it is recommended to open the permission to use Bluetooth.",
"NSBluetoothAlwaysUsageDescription" : "For better use, it is recommended to open the permission to use Bluetooth.",
"NSUserTrackingUsageDescription" : "We use this data to understand feature usage and improve our product.",
"NSLocationAlwaysAndWhenInUseUsageDescription" : "This application collects location data to enable WiFi search functionality, making it more convenient to connect your device to nearby WiFi signals.",
"NSLocationAlwaysUsageDescription" : "This application collects location data to enable WiFi search functionality, making it more convenient to connect your device to nearby WiFi signals.",
"NSLocationWhenInUseUsageDescription" : "This application collects location data to enable WiFi search functionality, making it more convenient to connect your device to nearby WiFi signals.",
"NSLocalNetworkUsageDescription" : "This application collects location data to enable WiFi search functionality, making it more convenient to connect your device to nearby WiFi signals."
}
},
"android" : {
"privacyDescription" : {
"NSPhotoLibraryUsageDescription" : "Select 'Allow Access to All Photos' so that you can access, send and save photos and videos while using HC+. If you choose 'Select Photos', unselected and future photos and videos will not be allowed to be used on HC+.",
"NSCameraUsageDescription" : "We need access to your camera so that you can take a new profile picture directly within HC+.",
"NSBluetoothPeripheralUsageDescription" : "For better use, it is recommended to open the permission to use Bluetooth.",
"NSBluetoothAlwaysUsageDescription" : "For better use, it is recommended to open the permission to use Bluetooth.",
"NSLocationAlwaysAndWhenInUseUsageDescription" : "This application collects location data to enable WiFi search functionality, making it more convenient to connect your device to nearby WiFi signals.",
"NSLocationAlwaysUsageDescription" : "This application collects location data to enable WiFi search functionality, making it more convenient to connect your device to nearby WiFi signals.",
"NSLocationWhenInUseUsageDescription" : "This application collects location data to enable WiFi search functionality, making it more convenient to connect your device to nearby WiFi signals.",
"NSLocalNetworkUsageDescription" : "This application collects location data to enable WiFi search functionality, making it more convenient to connect your device to nearby WiFi signals.",
"NSUserTrackingUsageDescription" : "We use this data to understand feature usage and improve our product."
}
}
},
"zh" : {
"name" : "HC+",
//中文
"ios" : {
"privacyDescription" : {
"NSPhotoLibraryUsageDescription" : "选择“允许访问所有照片”,以便您可以在使用HC+时访问、发送和保存照片和视频。如果您选择“选择照片”,则不允许在HC+上使用未选择的以及未来的照片和视频。",
"NSCameraUsageDescription" : "我们需要访问您的相机,以便您可以直接在HC+中拍摄新的个人资料照片。",
"NSBluetoothPeripheralUsageDescription" : "为了更好的使用,建议打开使用蓝牙的权限。",
"NSBluetoothAlwaysUsageDescription" : "为了更好的使用,建议打开使用蓝牙的权限。",
"NSUserTrackingUsageDescription" : "我们使用这些数据来了解功能使用情况并改进我们的产品。",
"NSLocationAlwaysAndWhenInUseUsageDescription" : "此应用程序收集位置数据以启用WiFi搜索功能,使您的设备更方便地连接到附近的WiFi信号。",
"NSLocationAlwaysUsageDescription" : "此应用程序收集位置数据以启用WiFi搜索功能,使您的设备更方便地连接到附近的WiFi信号。",
"NSLocationWhenInUseUsageDescription" : "此应用程序收集位置数据以启用WiFi搜索功能,使您的设备更方便地连接到附近的WiFi信号。",
"NSLocalNetworkUsageDescription" : "此应用程序收集位置数据以启用WiFi搜索功能,使您的设备更方便地连接到附近的WiFi信号。"
}
},
"android" : {
"privacyDescription" : {
"NSPhotoLibraryUsageDescription" : "选择“允许访问所有照片”,以便您可以在使用HC+时访问、发送和保存照片和视频。如果您选择“选择照片”,则不允许在HC+上使用未选择的以及未来的照片和视频。",
"NSCameraUsageDescription" : "我们需要访问您的相机,以便您可以直接在HC+中拍摄新的个人资料照片。",
"NSBluetoothPeripheralUsageDescription" : "为了更好的使用,建议打开使用蓝牙的权限。",
"NSBluetoothAlwaysUsageDescription" : "为了更好的使用,建议打开使用蓝牙的权限。",
"NSUserTrackingUsageDescription" : "我们使用这些数据来了解功能使用情况并改进我们的产品。",
"NSLocationAlwaysAndWhenInUseUsageDescription" : "为了更好的使用,建议您打开使用您的位置的权限。",
"NSLocationAlwaysUsageDescription" : "为了更好的使用,建议您打开使用您的位置的权限。",
"NSLocationWhenInUseUsageDescription" : "为了更好的使用,建议您打开使用您的位置的权限。",
"NSLocalNetworkUsageDescription" : "此应用程序收集位置数据以启用WiFi搜索功能,使您的设备更方便地连接到附近的WiFi信号。"
}
}
},
"ja" : {
"name" : "HC+",
//中文
"ios" : {
"privacyDescription" : {
"NSPhotoLibraryUsageDescription" : "「すべての写真へのアクセスを許可」を選択すると、HC+を使用して写真とビデオにアクセス、送信、保存することができます。「写真を選択」を選択した場合、HC+で未選択の写真や将来のビデオを使用することはできません。",
"NSCameraUsageDescription" : "HC+で直接新しいプロフィール写真を撮影できるように、カメラにアクセスする必要があります。",
"NSBluetoothPeripheralUsageDescription" : "より良い使用のためには、Bluetoothを使用する権限を開くことをお勧めします。",
"NSBluetoothAlwaysUsageDescription" : "より良い使用のためには、Bluetoothを使用する権限を開くことをお勧めします。",
"NSUserTrackingUsageDescription" : "これらのデータを使用して、機能の使用状況を理解し、製品を改善します。",
"NSLocationAlwaysAndWhenInUseUsageDescription" : "より良い使用のためには、場所を使用する権限を開くことをお勧めします。",
"NSLocationAlwaysUsageDescription" : "より良い使用のためには、場所を使用する権限を開くことをお勧めします。",
"NSLocationWhenInUseUsageDescription" : "より良い使用のためには、場所を使用する権限を開くことをお勧めします。",
"NSLocalNetworkUsageDescription" : "より良い使用のためには、場所を使用する権限を開くことをお勧めします。"
}
},
"android" : {
"privacyDescription" : {
"NSPhotoLibraryUsageDescription" : "「すべての写真へのアクセスを許可」を選択すると、HC+を使用して写真とビデオにアクセス、送信、保存することができます。「写真を選択」を選択した場合、HC+で未選択の写真や将来のビデオを使用することはできません。",
"NSCameraUsageDescription" : "HC+で直接新しいプロフィール写真を撮影できるように、カメラにアクセスする必要があります。",
"NSBluetoothPeripheralUsageDescription" : "より良い使用のためには、Bluetoothを使用する権限を開くことをお勧めします。",
"NSBluetoothAlwaysUsageDescription" : "より良い使用のためには、Bluetoothを使用する権限を開くことをお勧めします。",
"NSUserTrackingUsageDescription" : "これらのデータを使用して、機能の使用状況を理解し、製品を改善します。",
"NSLocationAlwaysAndWhenInUseUsageDescription" : "より良い使用のためには、場所を使用する権限を開くことをお勧めします。",
"NSLocationAlwaysUsageDescription" : "より良い使用のためには、場所を使用する権限を開くことをお勧めします。",
"NSLocationWhenInUseUsageDescription" : "より良い使用のためには、場所を使用する権限を開くことをお勧めします。",
"NSLocalNetworkUsageDescription" : "より良い使用のためには、場所を使用する権限を開くことをお勧めします。"
}
}
}
},

操作步骤:

下载app等ios弹框

预期结果:

系统语言为中文时弹框是中文

实际结果:

系统语言为中文时弹框是英文

bug描述:

ios隐私提示多语言功能已配置 但是app内一直显示英文没有显示其他语言

2023-08-11 10:11 负责人:无 分享
已邀请:
M丶J

M丶J - 多端开发

最后如何解决的呢?

  • Aohan (作者)

    配置位置错了

    2023-12-01 09:00

要回复问题请先登录注册