Adds Portuguese (Brazil) translations and add translation persistence feature + code couple more terms to i18n - #60
Open
filiperochalopes wants to merge 6 commits into
Conversation
- Add pt-BR translation catalog with all English keys translated - Register pt-BR in i18n config - Add pt-BR to LANGUAGES in constants.js
- Add event_types and object_types to common translations (en and pt-BR) - Update Events.jsx and DashboardEvents.jsx to translate event_type and referenced_object.type from API
* Implement the PT-BR locale configuration and language persistence logic * Add translations for event and object types to both en and pt-BR locales * Update event and object display components to utilize translated types
* Refactor event component to use targeted internationalization strings based on user ownership * Added necessary translations for activity states in English, Spanish, Portuguese (Brazil), and Chinese locales
* Update Portuguese (Brazil) translations for user state changes, including followed and unfollowed states
* Updated Portuguese (Brazil) translations for event types in the i18n localization files * Ensured that the translated terms accurately reflect the action (e.g., "Criou" instead of "Criado" for event creation)
This branch has not been deployed
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.
TL;DR: Adds Portuguese (Brazil) locale + i18n for event feed types & object types (refs ocl_issues#2866). Activity feed items like "Created Source Version", "Updated Collection" are now translatable instead of hardcoded EN.
Changes
src/i18n/locales/pt-BR/translations.json(new, 1159 lines)src/common/constants.js,src/i18n/config.jspt-BRtoLANGUAGESand i18n resourcessrc/i18n/locales/en/translations.json(+18),src/i18n/locales/pt-BR/translations.jsoncommon.event_types&common.object_typeskeyssrc/components/common/Events.jsx,src/components/dashboard/DashboardEvents.jsxt()for event types & object types withdefaultValuefallbackKey Translation Decisions
SourceSource VersionCollectionCollection VersionOrganizationConceptMappingRepositoryVerification
npm run build && npm run linten/translations.json)