chore: remove unnecessary assertions
This commit is contained in:
parent
2cd94221cd
commit
70cc39b5c6
|
@ -120,9 +120,9 @@ export function t(key: string, variables?: Record<string, any>): string {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!variables) return translation as string;
|
if (!variables) return translation;
|
||||||
|
|
||||||
return format(translation as string, variables);
|
return format(translation, variables);
|
||||||
};
|
};
|
||||||
|
|
||||||
// top level support hax (thank you vee!!)
|
// top level support hax (thank you vee!!)
|
||||||
|
|
Loading…
Reference in a new issue