fix(localization): compatibility with plugin package names as namespaces (#3234)
This commit is contained in:
parent
4be8812912
commit
a6c23d58a1
@ -87,8 +87,11 @@ export class Locale {
|
||||
// this.app.setMaintainingMessage(`load [${packageName}] locale resource `);
|
||||
const res = getResource(packageName, lang);
|
||||
if (res) {
|
||||
resources[packageName] = { ...res };
|
||||
if (name !== packageName) {
|
||||
resources[name] = { ...res };
|
||||
}
|
||||
}
|
||||
} catch (err) {
|
||||
// empty
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user