i18n: build translated sentences in code so they read correctly in every language (TBv3 + Mapper)
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 42/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- javascript, react
- Ambito
- frontend, internationalization
Direzione di ricerca
Start with the named components in oclweb3 and oclmap: DeleteEntityDialog, ReleaseVersion, ResourceReferences, RepoHome, the event and error components, and SearchInputDrawer; then check constants.js and app startup language handling. Use the related translation PRs to see the affected sentence keys. Done means the listed UI text, dates, and document language follow the selected locale, with Spanish and Chinese event keys added.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
The pt-BR review of oclweb3#60 and oclmap#90 (#2866) found sentences that the UI builds by stitching translated fragments together, or by dropping raw English values into translated text. No catalog edit can make these read correctly in Portuguese (or Spanish). They need code changes so that each sentence is a single translatable string with interpolated values. This ticket holds the code-side fixes that were deliberately kept out of the translation PRs so those could merge.
Acceptance criteria
-
DeleteEntityDialog,ReleaseVersion,ResourceReferencesandrepo.version.form.*take a translated resource-type label instead of the raw API type (Collection,concept,Source Version). The hardcoded'versions, 'and'concepts and mappings'inRepoHomego through i18n. Sentences avoid gendered articles before{{resourceType}}, or use per-type keys. (The unusedcommon.object_typesmap added in oclweb3#60 can serve here; otherwise remove it.) - Activity feed (
Events.jsx,DashboardEvents.jsx): each event type × object type is a whole-sentence key with preposition and site name, e.g. "Entrou no OCL", "Entrou em uma Organização X". The no-object "Joined" event stops using the API's Englishdescription. Remove the unusedevent_types.updatedand.source. Addevent_types/event_object_typesfor es and zh. - Error pages (
Error401/403/404,ErrorUI): replace theplease+ link +or+ … fragments with<Trans>sentences. - Search placeholders (
SearchInputDrawer): replace the fragment chains with<Trans>sentences. - Relative times and dates follow the UI language: set the Moment locale at startup from the persisted language (both apps) and on change (oclweb3), and localize the
M/D/YYYYformats inconstants.js. -
<html lang>follows the selected language. - oclweb3: guard
UserMenuwhen the stored language isn't inLANGUAGES(a storedzhcurrently throws). Drop thei18n.languages = …overwrite in both apps. - Hardcoded English found near the touched code:
UserProfile.jsx"Joined {date}" and MapperProjectLogs.jsx"{user} at {date}".
Related: #2866, OpenConceptLab/oclweb3#60, OpenConceptLab/oclmap#90
- Lingua principale
- Nessun dato sulla lingua
- Stelle
- 4
- Fork
- 2
- Merge medio
- 2h 12m
- PR unite (30g)
- 1
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di OpenConceptLab/ocl_issues
-
component/fhir type/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
OpenConceptLab/ocl_issues#3026 ·
-
component/api decision/human-review signal/needs-access signal/quick-win signal/small-scope signal/well-specified stage/triaged type/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
OpenConceptLab/ocl_issues#3012 · 2 commenti ·
-
component/design-system decision/ai-ready signal/low-risk signal/quick-win signal/small-scope signal/well-specified stage/triaged type/docs
Difficoltà 2/5 Mezza giornata Idoneità per principianti 70/100
OpenConceptLab/ocl_issues#2983 · 1 commento ·
-
component/mapper decision/ai-ready signal/low-risk signal/quick-win signal/small-scope signal/well-specified stage/triaged type/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
OpenConceptLab/ocl_issues#2966 · 2 commenti ·
-
component/mapper component/web decision/human-review signal/low-risk signal/needs-human signal/quick-win signal/small-scope signal/well-specified stage/triaged type/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
OpenConceptLab/ocl_issues#2920 · 1 commento ·
Tutte le issue di OpenConceptLab/ocl_issues
Issue simili
-
Selectmenu changes selection after its native select is disabled while openForse già presa @Xapollon430 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
feature request good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
TabularisDB/tabularis#1513 ·
I maintainer di solito rispondono entro 2 giorni
-
bug priority: medium
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
storytold/pdfcraft#7140 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
requests support
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
I maintainer di solito rispondono entro 2 giorni
-
bug lane: fast
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
unicef/adt-studio#1107 ·
I maintainer di solito rispondono entro 2 giorni