push
github
1381 of 2781 branches covered (49.66%)
0 of 13 new or added lines in 2 files covered. (0.0%)
13875 of 77140 relevant lines covered (17.99%)
1.8 hits per line
NEW
|
import { useTranslation } from 'next-i18next'; |
|
NEW
|
import { useEffect } from 'react'; |
× |
NEW
|
import { z } from 'zod'; |
× |
NEW
|
import { makeZodI18nMap } from 'zod-i18n-map'; |
× |
NEW
|
|
× |
NEW
|
export const useInitializationZodI18n = () => { |
× |
NEW
|
const { t } = useTranslation();
|
× |
NEW
|
|
× |
NEW
|
useEffect(() => { |
× |
NEW
|
z.setErrorMap(makeZodI18nMap({ t })); |
× |
NEW
|
}, [t]); |
× |
NEW
|
}; |
× |