core icon indicating copy to clipboard operation
core copied to clipboard

[BUG] 插件中获取到的 env.appName 没有经过 localize

Open bytemain opened this issue 2 years ago • 2 comments
trafficstars

描述你的问题(Describe the bug)

  const app = new ClientApp({
    appName: '%app.name%',
    ...

然后设置 app.name 的 i18n: Test

然后在插件中获取 env 的 appName 仍然是 %app.name%

import { env, version } from '@opensumi/sumi';

env.appName === '%app.name%' // true

bytemain avatar Feb 07 '23 08:02 bytemain