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
#248 🐛 Bug Report
When "count" changes, the translation does not change.
const Com = () => { const [hintValue, setHintValue] = useState(null); const { t } = useTranslation(null); const handleOnChange = (e) => { setHintValue(t('hint', {count: e.target.value})); console.log(t('hint', {count: e.target.value})); } return ( <div> <div className="FormGroup"> <input className="Input" type="number" onChange={handleOnChange} /> <div className="FormGroup-Hint">{hintValue}</div> </div> <hr/> <div>1: {t('hint', {count: 1})}</div> <div>5: {t('hint', {count: 5})}</div> </div> ); }
stackblitz.com
The text was updated successfully, but these errors were encountered:
My mistake (
setHintValue(t('hint', {count: +e.target.value}));
Sorry, something went wrong.
No branches or pull requests
#248 🐛 Bug Report
When "count" changes, the translation does not change.
To Reproduce
stackblitz.com
Your Environment
The text was updated successfully, but these errors were encountered: