Calling yup setLocale #1585
Answered
by
isaachinman
abduraufsherkulov
asked this question in
Q&A
-
I am using yup + react-hook-form and I am setting global setLocale. I was doing so and including it in |
Beta Was this translation helpful? Give feedback.
Answered by
isaachinman
Dec 16, 2021
Replies: 1 comment
-
You can use: import { i18n } from 'next-i18next'
const translation = i18n.t('my-key') |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
isaachinman
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use: