fix(localization): compatibility with plugin package names as namespaces (#3234)
This commit is contained in:
parent
4be8812912
commit
a6c23d58a1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user