Enable termsText to be extended via local message bundle

This commit is contained in:
Joseph Garrone
2024-06-22 14:09:11 +02:00
parent 960c3ba558
commit c2ff515a17

View File

@ -204,7 +204,7 @@ function createI18nTranslationFunctionsFactory<MessageKey extends string, ExtraM
const messageOrUndefined: string | undefined = (() => {
const messageOrUndefined = (messages_currentLanguage as any)[key] ?? (messages_fallbackLanguage as any)[key];
if (key === "termsText") {
if (key === "termsText" && realmMessageBundleTermsText !== undefined) {
return realmMessageBundleTermsText;
}