Question · JavaScript and React course · Module 10: React Ecosystem and Future
The useTranslation Hook in react-i18next
What is the useTranslation hook from the react-i18next library used for?
Answer options
- For converting units of measurement between metric and imperial systems
- For animating transitions between components
- For automatically translating JavaScript code into other programming languages
- For obtaining the t() function and language-switching methods, enabling text translation in components
You can check the correct answer by solving this task in the CodeWorlds game.