i18n(es): adds multiple files#226
Conversation
New files: - api-endpoint.mdx - index.mdx - javascript-helpers.mx
New files: - api-endpoint.mdx - index.mdx - javascript-helpers.mx
- JSDoc comments should remain in English for built-in service implementations. - Spanish capitalization rule violated in three H4 headings. - Spanish documentation should use the English method name to match the actual package source.
Co-authored-by: Adam Matthiesen <amatthiesen@outlook.com>
- /src/content/docs/es/plugins/renderers.mdx - And plugins (small translations in folder /src/content/docs/es/package-catalog/studiocms-plugins/): - sudiocms-auth0.mdx - sudiocms-cloudinary-js.mdx - sudiocoms-discord.mdx - sudiocoms-github.mdx - sudiocoms-google.mdx - sudiocms-html.mdx - sudiocms-md.mdx
Dokploy Preview Deployment
|
Lunaria Status Overview🌕 This pull request will trigger status changes. Learn moreBy default, every PR changing files present in the Lunaria configuration's You can change this by adding one of the keywords present in the Tracked Files
Warnings reference
|
📝 WalkthroughWalkthroughAdds Spanish localized documentation pages for multiple StudioCMS plugins (Auth0, Cloudinary, Discord, GitHub, Google, HTML, Markdown) and a Spanish guide on renderer plugin development; each file contains frontmatter, installation/config examples, usage snippets, and environment variable guidance. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 4
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In
`@src/content/docs/es/package-catalog/studiocms-plugins/studiocms-cloudinary-js.mdx`:
- Line 6: The frontmatter description string currently reads description:
"Servicio de imagenes Cloudinary para StudioCMS" and misses the accent on
"imágenes"; update that description value to "Servicio de imágenes Cloudinary
para StudioCMS" (adjust the quoted description field in the frontmatter) so the
accented character is used correctly.
In `@src/content/docs/es/package-catalog/studiocms-plugins/studiocms-md.mdx`:
- Line 12: Fix the header typo by replacing the text "# Introucción" with the
correctly spelled "# Introducción" in the document (update the header string
used in the MDX file).
- Line 16: The heading "## Installation" in the MDX document is untranslated;
replace the exact heading text "## Installation" with "## Instalación" so it
matches the other Spanish docs (look for the line containing the literal heading
"## Installation" in this file/studiocms-md.mdx and update it to "##
Instalación").
In `@src/content/docs/es/plugins/renderers.mdx`:
- Around line 54-67: Update the code block title to match the TypeScript syntax:
change the twoslash title from "components/render.js" to "components/render.ts"
so the TypeScript-only features (import type, : string annotation, satisfies)
are correctly represented; locate the block containing the render constant
(name: 'mi-renderizador-personalizado', renderer: async (content: string) =>
..., satisfies PluginRenderer) and replace the title in the opening
triple-backtick line accordingly.
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
There was a problem hiding this comment.
Actionable comments posted: 2
🧹 Nitpick comments (1)
src/content/docs/es/package-catalog/studiocms-plugins/studiocms-cloudinary-js.mdx (1)
9-10: Remove unused component imports.
Steps,Tabs, andTabItemare imported but never used in this file. OnlyPackageManagersis used.🧹 Proposed fix
import { PackageManagers } from 'starlight-package-managers' -import { Steps, Tabs, TabItem } from '@astrojs/starlight/components';🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@src/content/docs/es/package-catalog/studiocms-plugins/studiocms-cloudinary-js.mdx` around lines 9 - 10, The file imports unused components Steps, Tabs, and TabItem which should be removed to avoid dead imports; keep only the used symbol PackageManagers by deleting Steps, Tabs, and TabItem from the import statement (i.e., remove the named imports Steps, Tabs, TabItem and leave import { PackageManagers } from 'starlight-package-managers').
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In
`@src/content/docs/es/package-catalog/studiocms-plugins/studiocms-cloudinary-js.mdx`:
- Line 14: Add missing terminal periods to the Spanish sentences in the MDX
content: append a period to "Este plugin habilita el servicio de imágenes
Cloudinary para StudioCMS" and to the other sentence flagged at the same
document (line shown as 35-35). Update the two strings so each sentence ends
with a period to satisfy the QB_NEW_ES grammar linter.
- Around line 24-33: The code block inside the list item is over-indented by one
space, causing a leading space in rendered lines; adjust the fenced block so
every inner line uses the same 3-space list-continuation indent — specifically
reduce the indentation of the lines inside the block (including the line
starting with "export default defineStudioCMSConfig" and the subsequent plugin
array lines that call cloudinaryJS()) by one space so they align with the
opening ```ts fence and render without the spurious leading space.
---
Nitpick comments:
In
`@src/content/docs/es/package-catalog/studiocms-plugins/studiocms-cloudinary-js.mdx`:
- Around line 9-10: The file imports unused components Steps, Tabs, and TabItem
which should be removed to avoid dead imports; keep only the used symbol
PackageManagers by deleting Steps, Tabs, and TabItem from the import statement
(i.e., remove the named imports Steps, Tabs, TabItem and leave import {
PackageManagers } from 'starlight-package-managers').
There was a problem hiding this comment.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Duplicate comments:
In
`@src/content/docs/es/package-catalog/studiocms-plugins/studiocms-cloudinary-js.mdx`:
- Around line 24-33: The code fence inside the list item is indented 3 spaces
but the code lines (the imports, cloudinaryJS invocation and export) have one
extra leading space, causing a spurious leading space when rendered; fix by
removing one leading space from each code line inside the fenced block so the
import { defineStudioCMSConfig }..., import cloudinaryJS..., and export default
defineStudioCMSConfig({...}) lines align with the fence indentation (i.e., have
exactly the same 3-space list-continuation indent).
Co-authored-by: paul valladares <85648028+dreyfus92@users.noreply.github.com>
|
thanks @dreyfus92 😁 |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
src/content/docs/es/package-catalog/studiocms-plugins/studiocms-auth0.mdx (1)
12-12: Minor Spanish redundancy: "Configura la configuración".The phrase "Configura la configuración necesaria" repeats the same root (configura / configuración), which reads awkwardly. Consider a cleaner alternative:
✏️ Suggested rewording
-Este plugin integra Auth0 como un proveedor de autenticación OAuth para StudioCMS, permitiendo la autenticación mediante Auth0. Configura la configuración necesaria, incluyendo las variables de entorno requeridas y las rutas de los endpoints. +Este plugin integra Auth0 como un proveedor de autenticación OAuth para StudioCMS, permitiendo la autenticación mediante Auth0. Establece los ajustes necesarios, incluyendo las variables de entorno requeridas y las rutas de los endpoints.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@src/content/docs/es/package-catalog/studiocms-plugins/studiocms-auth0.mdx` at line 12, Replace the redundant phrase "Configura la configuración necesaria" in the sentence that starts with "Este plugin integra Auth0..." with a cleaner alternative (e.g., "Configura los parámetros necesarios", "Proporciona la configuración necesaria" or simply "Incluye la configuración necesaria"); locate the exact phrase "Configura la configuración necesaria" in the content and update it to one of these alternatives so the sentence reads smoothly and avoids root-word repetition.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@src/content/docs/es/package-catalog/studiocms-plugins/studiocms-auth0.mdx`:
- Around line 1-35: The phrase "Configura la configuración necesaria" is
redundant; edit the introductory paragraph (the sentence that currently reads
"Configura la configuración necesaria, incluyendo las variables de entorno
requeridas y las rutas de los endpoints.") and replace it with a clearer
alternative such as "Establece la configuración necesaria, incluyendo las
variables de entorno requeridas y las rutas de los endpoints" or "Define los
ajustes necesarios, incluyendo las variables de entorno requeridas y las rutas
de los endpoints" so the repetition of "configuración" is removed.
---
Nitpick comments:
In `@src/content/docs/es/package-catalog/studiocms-plugins/studiocms-auth0.mdx`:
- Line 12: Replace the redundant phrase "Configura la configuración necesaria"
in the sentence that starts with "Este plugin integra Auth0..." with a cleaner
alternative (e.g., "Configura los parámetros necesarios", "Proporciona la
configuración necesaria" or simply "Incluye la configuración necesaria"); locate
the exact phrase "Configura la configuración necesaria" in the content and
update it to one of these alternatives so the sentence reads smoothly and avoids
root-word repetition.
Summary by CodeRabbit