• uni-app 应用名称 跟随系统语言 改变


    官方已确认BUG::https://ask.dcloud.net.cn/question/164804

    {  
        "name" : "%app.name%",//这里随便写,配置了 locales,name 就不生效了  
        "appid" : "",  
        "description" : "",  
        "versionName" : "1.0.0",  
        "versionCode" : 100,  
        "locale" : "auto",//这里要注意,一定要配置 auto ,跟随系统  
        "transformPx" : false,  
        /* 5 App特有相关 */  
        "app-plus" : {  
            "usingComponents" : true,  
            "nvueStyleCompiler" : "uni-app",  
            "compilerVersion" : 3,  
            "splashscreen" : {  
                "alwaysShowBeforeRender" : true,  
                "waiting" : true,  
                "autoclose" : true,  
                "delay" : 0  
            },  
            "safearea" : {  
                "background" : "#00000000",  
                "bottom" : {  
                    "offset" : "auto"  
                }  
            },  
            /* 模块配置 */  
            "modules" : {},  
            /* 应用发布信息 */  
            "distribute" : {  
                /* android打包配置 */  
                "android" : {  
                    "permissions" : [  
                        "",  
                        "",  
                        "",  
                        "",  
                        "",  
                        "",  
                        "",  
                        "",  
                        "",  
                        "",  
                        "",  
                        "",  
                        "",  
                        ""  
                    ],  
                    "abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ]  
                },  
                /* ios打包配置 */  
                "ios" : {  
                    "dSYMs" : false  
                },  
                /* SDK配置 */  
                "sdkConfigs" : {  
                    "ad" : {}  
                }  
            },  
            "locales" : {  
                "en" : {  
                    // 英文    
                    "name" : "英文appName", // 应用名称    
                    "ios" : {  
                        "privacyDescription" : {  
                            "NSPhotoLibraryUsageDescription" : "Get the user album content permission to manually select and upload photos from the album when changing avatar information. Is it allowed to read album content",  
                            "NSCameraUsageDescription" : "Get the user camera permission to take photos and upload photos when changing avatar information. Is it allowed to use the camera"  
                        }  
                    }  
                },  
                "zh" : {  
                    // 中文(简体)    
                    "name" : "中文appName",  
                    "ios" : {  
                        "privacyDescription" : {  
                            //iOS平台隐私访问描述信息    
                            "NSPhotoLibraryUsageDescription" : "获取用户相册内容权限,用于更改头像信息时手动选择上传相册内的照片,是否允许读取相册内容",  
                            "NSCameraUsageDescription" : "获取用户摄像头权限,用于更改头像信息时拍照上传照片,是否允许使用摄像头"  
                        }  
                    }  
                }  
            }  
        },  
        /* 快应用特有相关 */  
        "quickapp" : {},  
        /* 小程序特有相关 */  
        "mp-weixin" : {  
            "appid" : "",  
            "setting" : {  
                "urlCheck" : false  
            },  
            "usingComponents" : true  
        },  
        "mp-alipay" : {  
            "usingComponents" : true  
        },  
        "mp-baidu" : {  
            "usingComponents" : true  
        },  
        "mp-toutiao" : {  
            "usingComponents" : true  
        },  
        "uniStatistics" : {  
            "enable" : false  
        },  
        "vueVersion" : "2"  
    }  
    
  • 相关阅读:
    Post-Process1-水下
    Dubbo分组聚合
    OpenCV项目实战-深度学习去阴影-图像去阴影
    Nvidia GPU 入门教程之 10 如何通过TensorFlow Datasets 下载海量数据集?
    手撕JavaScript面试题
    手把手教你解决spring boot导入swagger2版本冲突问题,刘老师教编程
    pod之间的通信
    Flutter学习1 - Android开发者快速上手
    高通导航器软件开发包使用指南(16)
    LeetCode-数组-No48旋转图像
  • 原文地址:https://blog.csdn.net/qq_28641023/article/details/142257664