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 `);
|
// this.app.setMaintainingMessage(`load [${packageName}] locale resource `);
|
||||||
const res = getResource(packageName, lang);
|
const res = getResource(packageName, lang);
|
||||||
if (res) {
|
if (res) {
|
||||||
|
resources[packageName] = { ...res };
|
||||||
|
if (name !== packageName) {
|
||||||
resources[name] = { ...res };
|
resources[name] = { ...res };
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
// empty
|
// empty
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user