diff --git a/src/locales/helpers.ts b/src/locales/helpers.ts index 7c7b71f8..85ff229c 100644 --- a/src/locales/helpers.ts +++ b/src/locales/helpers.ts @@ -497,9 +497,9 @@ export function useI18n() { } // public functions - function translateIf(text: string | undefined, isTranslate: boolean): string | undefined { + function translateIf(text: string | undefined, isTranslate?: boolean): string { if (!isDefined(text)) { - return undefined; + return ''; } if (isTranslate) {