Skip to main content

Localization

  • useTranslation hook

    • Pass in the "namespace" as the parameter  

  • Define string lookup keys as enums

    • Need to be single strings with no spaces

  

  • Use the "t" method

    • If the key doesn't exist it will be added

    • Must run the code and navigate to location

 

 

 

  • locales folder contains all the string translations

    • Namespace matches the name of the json file