Skip to content

Feat/issue 164 Added support for multiple languages#194

Open
parvez-ahammed wants to merge 1 commit intodevelopfrom
feat/issue-164
Open

Feat/issue 164 Added support for multiple languages#194
parvez-ahammed wants to merge 1 commit intodevelopfrom
feat/issue-164

Conversation

@parvez-ahammed
Copy link
Contributor

What

  • Adds i18next , react-i18next packages for managing localization
  • Saves the user's language preference in local storage.
  • Retrieves the user language preference.
  • Adds partial language support for EN and NO. [ The whole application's text hasn't been converted yet. ]

How

  • Introduces a useLocales hook that gives translations based on the user's preferences. The hook can be used like below:
const { locale } = useLocales();
toast.error(locale.error.invalidEmail)

@parvez-ahammed parvez-ahammed changed the title feat: support for multiple languages #164 Feat/issue 164 Added support for multiple languages Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE REQ] Added support for multiple languages

1 participant