Skip to content

Commit f0d4913

Browse files
committed
set getMessageFallback for missing translations
1 parent 1a1ab4b commit f0d4913

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/pages/_app.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ const App = ({ Component, pageProps }: AppPropsWithLayout) => {
3939
// Suppress errors by default, enable if needed to debug
4040
// console.error(error)
4141
}}
42+
getMessageFallback={({ key }) => {
43+
const keyOnly = key.split(".").pop()
44+
return keyOnly || key
45+
}}
4246
>
4347
<ThemeProvider>
4448
<TooltipProvider>

0 commit comments

Comments
 (0)