Use translation hook react-i18next

    0

    6

    Jose Romero

    reacti18nexthook•••
    React TypeScript Recipes

    Use translation hook in React using the react-i18next library

    Library: react

    Shortcut: react.translation.hook

    import { useTranslation } from 'react-i18next';
    
    const { t } = useTranslation('common');
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    Legal
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.