temp ts ignore

This commit is contained in:
Mads Rasmussen
2024-04-09 11:25:47 +02:00
parent 8ac3cdaa7d
commit a3199d54f4

View File

@@ -166,6 +166,9 @@ export class UmbLocalizationController<LocalizationSetType extends UmbLocalizati
const localizedText = text.replace(regex, (match: string) => {
const key = match.slice(1);
// TODO: find solution to pass dynamic string to term
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
const localized = this.term(key);
// we didn't find a localized string, so we return the original string with the #
return localized === key ? match : localized;