We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2be9066 commit cdca12eCopy full SHA for cdca12e
packages/ra-core/src/i18n/useResourceTranslation.ts
@@ -7,7 +7,7 @@ export const useResourceTranslation = (
7
const { resourceI18nKey, baseI18nKey, userText, options } = params;
8
const translate = useTranslate();
9
10
- if (userText) {
+ if (userText !== undefined) {
11
if (typeof userText !== 'string') {
12
return userText;
13
}
0 commit comments