-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Added Internationalization with react-i18next #668
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
95fffd2
feature: i18n init for internalization
DaviReisVieira 4f4f2f0
feature: updating texts with nre internalization format
DaviReisVieira 5363890
feature: updating chainlit config files in tests
DaviReisVieira ae49f57
feature: adding language variable to config file
DaviReisVieira e48ea7b
fix: taskList update path
DaviReisVieira 867cb0f
fix: changed tag waterMark "buildWith" -> "text"
DaviReisVieira b7e1b4d
fix: removing locale files and creating i18n start function
DaviReisVieira 2240abb
feature: language translations in init server config router
DaviReisVieira 86947d8
feature: i18n loading from config server translation
DaviReisVieira 62f9bc1
feature: adding translation path to new chat confirmation
DaviReisVieira 4d0779c
fix: removing language option from cypress test files
DaviReisVieira e763fc1
feature: translation files in chainlit config created
DaviReisVieira 9b5b2fe
feature: adding warning log to default translation usage.
DaviReisVieira 99520ae
fix: improving function optimization
DaviReisVieira File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,158 @@ | ||
{ | ||
"components": { | ||
"atoms": { | ||
"buttons": { | ||
"userButton": { | ||
"menu": { | ||
"settings": "Settings", | ||
"settingsKey": "S", | ||
"APIKeys": "API Keys", | ||
"logout": "Logout" | ||
} | ||
} | ||
} | ||
}, | ||
"molecules": { | ||
"newChatButton": { | ||
"newChat": "New Chat" | ||
}, | ||
"tasklist": { | ||
"TaskList": { | ||
"title": "🗒️ Task List", | ||
"loading": "Loading...", | ||
"error": "An error occured" | ||
} | ||
}, | ||
"attachments": { | ||
"cancelUpload": "Cancel upload", | ||
"removeAttachment": "Remove attachment" | ||
}, | ||
"newChatDialog": { | ||
"createNewChat": "Create new chat?", | ||
"clearChat": "This will clear the current messages and start a new chat.", | ||
"cancel": "Cancel", | ||
"confirm": "Confirm" | ||
}, | ||
"settingsModal": { | ||
"expandMessages": "Expand Messages", | ||
"hideChainOfThought": "Hide Chain of Thought", | ||
"darkMode": "Dark Mode" | ||
} | ||
}, | ||
"organisms": { | ||
"chat": { | ||
"history": { | ||
"index": { | ||
"lastInputs": "Last Inputs", | ||
"noInputs": "Such empty...", | ||
"loading": "Loading..." | ||
} | ||
}, | ||
"inputBox": { | ||
"input": { | ||
"placeholder": "Type your message here..." | ||
}, | ||
"speechButton": { | ||
"start": "Start recording", | ||
"stop": "Stop recording" | ||
}, | ||
"SubmitButton": { | ||
"sendMessage": "Send message", | ||
"stopTask": "Stop Task" | ||
}, | ||
"UploadButton": { | ||
"attachFiles": "Attach files" | ||
}, | ||
"waterMark": { | ||
"text": "Build with" | ||
} | ||
}, | ||
"Messages": { | ||
"index": { | ||
"running": "Running", | ||
"executedSuccessfully": "executed successfully", | ||
"failed": "failed", | ||
"feedbackUpdated": "Feedback updated", | ||
"updating": "Updating" | ||
} | ||
}, | ||
"dropScreen": { | ||
"dropYourFilesHere": "Drop your files here" | ||
}, | ||
"index": { | ||
"failedToUpload": "Failed to upload", | ||
"cancelledUploadOf": "Cancelled upload of", | ||
"couldNotReachServer": "Could not reach the server" | ||
}, | ||
"settings": { | ||
"settingsPanel": "Settings panel", | ||
"reset": "Reset", | ||
"cancel": "Cancel", | ||
"confirm": "Confirm" | ||
} | ||
}, | ||
"threadHistory": { | ||
"sidebar": { | ||
"filters": { | ||
"FeedbackSelect": { | ||
"feedbackAll": "Feedback: All", | ||
"feedbackPositive": "Feedback: Positive", | ||
"feedbackNegative": "Feedback: Negative" | ||
}, | ||
"SearchBar": { | ||
"search": "Search" | ||
} | ||
}, | ||
"DeleteThreadButton": { | ||
"confirmMessage": "This will delete the thread as well as it's messages and elements.", | ||
"cancel": "Cancel", | ||
"confirm": "Confirm", | ||
"deletingChat": "Deleting chat", | ||
"chatDeleted": "Chat deleted" | ||
}, | ||
"index": { | ||
"pastChats": "Past Chats" | ||
}, | ||
"ThreadList": { | ||
"empty": "Empty..." | ||
}, | ||
"TriggerButton": { | ||
"closeSidebar": "Close sidebar", | ||
"openSidebar": "Open sidebar" | ||
} | ||
}, | ||
"Thread": { | ||
"backToChat": "Go back to chat", | ||
"chatCreatedOn": "This chat was created on" | ||
} | ||
}, | ||
"header": { | ||
"chat": "Chat", | ||
"readme": "Readme" | ||
} | ||
} | ||
}, | ||
"hooks": { | ||
"useLLMProviders": { | ||
"failedToFetchProviders": "Failed to fetch providers:" | ||
} | ||
}, | ||
"pages": { | ||
"Design": {}, | ||
"Env": { | ||
"savedSuccessfully": "Saved successfully", | ||
"requiredApiKeys": "Required API Keys", | ||
"requiredApiKeysInfo": "To use this app, the following API keys are required. The keys are stored on your device's local storage." | ||
}, | ||
"Login": { | ||
"authTitle": "Login to access the app." | ||
}, | ||
"Page": { | ||
"notPartOfProject": "You are not part of this project." | ||
}, | ||
"ResumeButton": { | ||
"resumeChat": "Resume Chat" | ||
} | ||
} | ||
} | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should also handle the case where no translation is found (for instance the user deleted the folder by mistake). We could at least throw an error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now, we don't have this problem anymore, because the file is created if doesn't exists. But I will insert a warning log to user.