• 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"  
    }  
    
  • 相关阅读:
    Kafka 一文读懂
    python编程:创建 SQLite 数据库和表的图形用户界面应用程序
    https部署(nginx代理) keycloak ,js加载不出来的问题
    二叉搜索树
    SpringBoot配置
    R语言data.frame、tibble数据初始化、使用列数据初始化:使用多个向量初始化、使用列表数据初始化
    前端学习一、准备工作
    小米以“不能胜任工作”为由辞退员工,两次上诉均败诉
    RS练习 - PTE(一)
    bug的生命周期都有那些阶段
  • 原文地址:https://blog.csdn.net/qq_28641023/article/details/142257664