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: Add i18n (Internationalization) Support for Project #171

Open
2 of 4 tasks
yurimutti opened this issue Dec 5, 2024 · 2 comments
Open
2 of 4 tasks

Comments

@yurimutti
Copy link
Contributor

yurimutti commented Dec 5, 2024

🔖 Feature description

Add i18n (Internationalization) support to the backend handle multiple languages efficiently for responses, error messages, and dynamic content.

🎤 Why is this feature needed ?

In my use case, the application serves users from different regions, and providing localized responses improves user experience, accessibility, and engagement. For example:

English users should see messages in English.
Spanish users should see messages in Spanish, and so on.

Having backend i18n ensures consistent language support regardless of the client-side setup, especially for error messages and server-rendered content.

✌️ How do you aim to achieve this?

Use an i18n library such as i18next, nestjs-i18n, or a custom implementation to manage translations.
Dynamically detect the user’s language from headers (Accept-Language), tokens, or query parameters.
Load and serve translations based on the detected language.
Fallback to a default language (e.g., English) if no translation is available.

🔄️ Additional Information

No response

👀 Have you spent some time to check if this feature request has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Are you willing to submit PR?

None

  • Backend
  • Frontend
@yurimutti
Copy link
Contributor Author

Look at this library! https://lingui.dev/

We can share locales and use them same tool on node,nextjs,react

@yurimutti
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant