Skip to content
New issue

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

[Feature]: Multi-Language support #42

Open
Anishali2 opened this issue Feb 23, 2025 · 2 comments
Open

[Feature]: Multi-Language support #42

Anishali2 opened this issue Feb 23, 2025 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@Anishali2
Copy link
Collaborator

Add support to multiple languages for users.

@Anishali2 Anishali2 self-assigned this Mar 20, 2025
@Anishali2
Copy link
Collaborator Author

In our previous projects we are using multi-language support with this strategy

pages/
  [locale]/
    home.tsx
    about.tsx

for locale and identifying translations

and this will get locale from /en/about or /es/home so that it will identify which language it is using and set the text by that translation which is added in our locales folder

root/
  locales/
    en.json
    es.json

But....
in our ever-rec project we are not using /[locale]/ folder by default and by adding this folder we have to update imports and little fit folder structure in order to use

if we want to use translations we have to update our folder structure from this

Image

to this

Image

Which will have some issues for us that we have to manually update all those imports which exists in every route

Sir @evereq and @paradoxe35 Brother please share your thoughts and help me understand should this is the best approach or not.

Sir @evereq should I can start working on this

@evereq
Copy link
Member

evereq commented Mar 22, 2025

@Anishali2 can we use i18next and react-i18next libs please, we are using them across many projects, including https://github.com/ever-co/ever-teams/tree/develop/apps/web. And yes, we have [locale] folder there too https://github.com/ever-co/ever-teams/tree/develop/apps/web/app/%5Blocale%5D etc, so just check how it works in Ever Teams and do similar (but for now in older pages, not in new app structure)

@evereq evereq added the enhancement New feature or request label Mar 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants