We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using next-intl,t = useTranslation('key'), passing t to a helper function
next-intl
t = useTranslation('key')
t
function test(t: ReturnType<typeof useTranslations<'namespace'>>) { }
typescript definition is working, but extension shows this local key name not found, and didn't show preview text.
The text was updated successfully, but these errors were encountered:
I have the same issue
const PasswordFormSchemaGen = ( t: ReturnType<typeof useTranslations<"error">>, ) => z .object({ [InputNames.oldPassword]: z.string().regex(passwordValidation, { message: t("password_8_upper_special"), }), [InputNames.newPassword]: z.string().regex(passwordValidation, { message: t("password_8_upper_special"), }), [InputNames.cNewPassword]: z.string().regex(passwordValidation, { message: t("password_8_upper_special"), }), }) .refine( (data) => data[InputNames.newPassword] === data[InputNames.cNewPassword], { path: [InputNames.cNewPassword], message: t("password_does_match"), }, ) .refine( (data) => data[InputNames.oldPassword] === data[InputNames.newPassword], { path: [InputNames.newPassword], message: t("can_not use_prev"), }, );
Sorry, something went wrong.
Same issue, using react-i18next
No branches or pull requests
Using
next-intl
,t = useTranslation('key')
, passingt
to a helper functiontypescript definition is working, but extension shows this local key name not found, and didn't show preview text.
The text was updated successfully, but these errors were encountered: