小程序环境下统一language名称

This commit is contained in:
Xu Chang 2023-08-16 15:38:42 +08:00
parent da84c2d19e
commit 175781b223
2 changed files with 2 additions and 0 deletions

View File

@ -13,6 +13,7 @@ function getEnv() {
return [2 /*return*/, Object.assign(env, {
type: 'wechatMp',
localStorageEnabled: true,
language: env.language.replace('_', '-'), // 全局统一用中连接符
})];
}
});

View File

@ -5,5 +5,6 @@ export async function getEnv() {
return Object.assign(env, {
type: 'wechatMp',
localStorageEnabled: true,
language: env.language.replace('_', '-'), // 全局统一用中连接符
}) as unknown as WechatMpEnv;
}