diff --git a/packages/core/server/src/locale/locale.ts b/packages/core/server/src/locale/locale.ts index e05d24b38..77959d1bc 100644 --- a/packages/core/server/src/locale/locale.ts +++ b/packages/core/server/src/locale/locale.ts @@ -87,7 +87,10 @@ export class Locale { // this.app.setMaintainingMessage(`load [${packageName}] locale resource `); const res = getResource(packageName, lang); if (res) { - resources[name] = { ...res }; + resources[packageName] = { ...res }; + if (name !== packageName) { + resources[name] = { ...res }; + } } } catch (err) { // empty