Repository navigation
Translate guide introduction, getting started, key concepts and application structure to Spanish - #550
Conversation
…cation structure to Spanish
Reviewer's GuideConfigurationReview the Spanish VitePress locale configuration, sidebar structure and translated interface labels.
DocumentationReview the completed Spanish translations together as one documentation block, including the glossary and guide navigation pages.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've found 1 issue
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="src/.vitepress/config.js" line_range="296" />
<code_context>
}
},
es: {
+ title: 'Documentación de Yii3',
label: 'Español',
lang: 'es',
</code_context>
<issue_to_address>
**Alert labels remain English**
When a Spanish guide page renders an alert block, the translated guide pages retain alert markers, but no Spanish `blocktypes.json` provides their label translations, so readers see English alert labels on Spanish pages.
Add a Spanish `blocktypes.json` with translations for Note, Tip, Important, Warning, and Caution.
</issue_to_address>Sourcery assessment
Approval pending. 1 finding to address first.
Blocking findings: src/.vitepress/config.js:296
| } | ||
| }, | ||
| es: { | ||
| title: 'Documentación de Yii3', |
There was a problem hiding this comment.
🟡 Medium · Alert labels remain English
When a Spanish guide page renders an alert block, the translated guide pages retain alert markers, but no Spanish blocktypes.json provides their label translations, so readers see English alert labels on Spanish pages.
Add a Spanish blocktypes.json with translations for Note, Tip, Important, Warning, and Caution.
Prompt for AI agents
In `src/.vitepress/config.js` at line 296:
**Alert labels remain English**
When a Spanish guide page renders an alert block, the translated guide pages retain alert markers, but no Spanish `blocktypes.json` provides their label translations, so readers see English alert labels on Spanish pages.
Add a Spanish `blocktypes.json` with translations for Note, Tip, Important, Warning, and Caution.From src/internals/014-docs.md L74-87:
each guide translation should have a `blocktypes.json` file containing the translations|
👍 |
This translates the first part of the Definitive Guide into Spanish. The Spanish
.pofiles were mostly empty: 43 of 5,216 strings were translated, and 229 entries were fuzzy with unrelated matches. This PR completes one coherent block instead of the whole site.Changes
.pofiles in_translations/po/es/to 100% (1,446 strings, 1,411 of them new or previously fuzzy):index.md(home page),guide/index.md(table of contents) andguide/glossary.mdintro/what-is-yii.md,intro/upgrade-from-v1.md,intro/upgrade-from-v2.mdguide/start/guide/concept/guide/structure/[!Nota]→[!NOTE]), an outdated code block in the aliases page, PSR-0 → PSR-4 in the autoloading page, and some typos.eslocale insrc/.vitepress/config.js: the sidebar now matches the English structure and uses the translated page titles. It adds the missing pages and sections and removes links toguide/structure/domainandguide/structure/service, which moved to the Cookbook. It also adds the title, outline, doc footer, last updated and search labels, as other locales do.Notes
.pofiles;src/esis not regenerated here. TheUpdate translationsworkflow cannot push to a fork branch, so that check is expected to fail on this PR; the workflow regeneratessrc/esonmasterafter merge.[!NOTE],[!TIP], ...) and theTODOmarkers in the table of contents are kept as they are.#contenedor-di,#parametros,#proveedores-de-servicios). Anchors to pages that are still untranslated keep their English slugs.Summary by Sourcery
Complete the Spanish translation of the first major block of the Yii Definitive Guide and update its localized navigation and interface.
New Features:
Bug Fixes:
Enhancements:
Documentation: