Skip to content

feat: add i18n support with react-intl and initial translations #125

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ckemmler
Copy link

This PR adds internationalization (i18n) support to the Agent Chat UI project, making it easy to localize the application into multiple languages.

Changes Included:
• Integrated react-intl for internationalization.
• Created a global I18nProvider to manage locale switching dynamically.
• Added a basic LanguageSelector component to allow users to switch languages client-side without page reloads.

Created initial translations for the following languages:
• English (en)
• French (fr)
• Dutch (nl)
• Portuguese (pt)
• Spanish (es)
• Italian (it)
• German (de)
• Russian (ru)

Translated the following UI strings:
• “Send”
• “Hide tool calls”
• “Thread history”
• “Type your message”
• Default locale is set to English (en).

Why?
• Improves accessibility for non-English speakers.
• Prepares the application for wider public and international deployments.
• Provides a scalable structure for adding more translations later.

Copy link

vercel bot commented Apr 28, 2025

@ckemmler is attempting to deploy a commit to the LangChain Team on Vercel.

A member of the Team first needs to authorize it.

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.

1 participant