Closes #11851 Use new parameter useRealmDefaultLocaleFallback when fetching the realm localization texts (#2577)

This commit is contained in:
Christoph Leistert 2022-06-10 20:38:19 +02:00 committed by GitHub
parent 274ec62b5d
commit 78a8a4adc5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,7 +17,7 @@ const initOptions = async (
): Promise<InitOptions> => { ): Promise<InitOptions> => {
const constructLoadPath: LoadPathOption = (_, namespaces) => { const constructLoadPath: LoadPathOption = (_, namespaces) => {
if (namespaces[0] === "overrides") { if (namespaces[0] === "overrides") {
return `/admin/realms/${adminClient.realmName}/localization/{{lng}}`; return `/admin/realms/${adminClient.realmName}/localization/{{lng}}?useRealmDefaultLocaleFallback=true`;
} else { } else {
return `${environment.resourceUrl}/resources/{{lng}}/{{ns}}.json`; return `${environment.resourceUrl}/resources/{{lng}}/{{ns}}.json`;
} }