Skip to content

Commit

Permalink
feat: i18n allow fallback to empty locale (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hieuzest authored Mar 3, 2025
1 parent 936a8d9 commit 0af568a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/form/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export function useI18nText() {
for (const locale of locales) {
if (locale in message) return message[locale]
}
return message['']
}
}

Expand Down

0 comments on commit 0af568a

Please sign in to comment.