Add spanish translation file#1976
Open
arielscarpinelli wants to merge 10 commits intomckaywrigley:mainfrom
Open
Add spanish translation file#1976arielscarpinelli wants to merge 10 commits intomckaywrigley:mainfrom
arielscarpinelli wants to merge 10 commits intomckaywrigley:mainfrom
Conversation
This commit adds the Spanish translation file and translates it. The file is a copy of the English translation file, and the values have been translated to Spanish. The translation was done by an AI and should be reviewed by a native speaker.
This commit refactors a significant number of components to use the i18n library (react-i18next) instead of hardcoded strings. This is part of a larger effort to make the application fully translatable. The following components have been refactored: - components/ui/advanced-settings.tsx - components/messages/message-replies.tsx - components/sidebar/items/all/sidebar-update-item.tsx - components/utility/profile-settings.tsx - components/chat/chat-retrieval-settings.tsx - components/sidebar/items/models/create-model.tsx - components/sidebar/items/models/model-item.tsx - components/utility/command-k.tsx - app/[locale]/help/page.tsx - app/[locale]/page.tsx - components/chat/chat-files-display.tsx - components/chat/chat-secondary-buttons.tsx - components/chat/prompt-picker.tsx - components/chat/quick-settings.tsx - components/utility/workspace-switcher.tsx - components/workspace/delete-workspace.tsx - components/workspace/workspace-settings.tsx - components/models/model-icon.tsx - components/chat/quick-setting-option.tsx The corresponding keys have been added to the English and Spanish translation files (`public/locales/en/translation.json` and `public/locales/es/translation.json`).
This commit refactors all components to use the i18n library (react-i18next) instead of hardcoded strings. This is part of a larger effort to make the application fully translatable. The following components have been refactored: - components/ui/advanced-settings.tsx - components/messages/message-replies.tsx - components/sidebar/items/all/sidebar-update-item.tsx - components/utility/profile-settings.tsx - components/chat/chat-retrieval-settings.tsx - components/sidebar/items/models/create-model.tsx - components/sidebar/items/models/model-item.tsx - components/utility/command-k.tsx - app/[locale]/help/page.tsx - app/[locale]/page.tsx - components/chat/chat-files-display.tsx - components/chat/chat-secondary-buttons.tsx - components/chat/prompt-picker.tsx - components/chat/quick-settings.tsx - components/utility/workspace-switcher.tsx - components/workspace/delete-workspace.tsx - components/workspace/workspace-settings.tsx - components/models/model-icon.tsx - components/chat/quick-setting-option.tsx - components/sidebar/items/chat/chat-item.tsx - components/ui/file-preview.tsx - components/ui/image-picker.tsx - components/sidebar/items/collections/create-collection.tsx The corresponding keys have been added to the English and Spanish translation files (`public/locales/en/translation.json` and `public/locales/es/translation.json`).
…efactored the components.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR extracts the hardcoded texts all around the app, adding them to the english translation file for reference. It also creates an spanish translations file for them.