Skip to content

i18n(es): add missing docs in folder /es/storage-api.#220

Closed
jramma wants to merge 1 commit into
withstudiocms:mainfrom
jramma:main
Closed

i18n(es): add missing docs in folder /es/storage-api.#220
jramma wants to merge 1 commit into
withstudiocms:mainfrom
jramma:main

Conversation

@jramma
Copy link
Copy Markdown
Contributor

@jramma jramma commented Feb 18, 2026

New files:

  • api-endpoint.mdx
  • index.mdx
  • javascript-helpers.mx

Description

  • Closes #
  • What does this PR change? Give us a brief description.

Summary by CodeRabbit

  • Documentation
    • Added comprehensive Storage API documentation in Spanish, including endpoint specifications (PUT/POST operations), API overview with manager plugin configuration examples, and JavaScript helpers for Storage API integration.

New files:
- api-endpoint.mdx
- index.mdx
- javascript-helpers.mx
@jramma jramma requested a review from a team as a code owner February 18, 2026 16:53
@htg-1-studiocms-cloud
Copy link
Copy Markdown

htg-1-studiocms-cloud Bot commented Feb 18, 2026

Dokploy Preview Deployment

Name Status Preview Updated (UTC)
StudioCMS Docs ❌ Failed Preview URL 2026-02-18T17:05:14.776Z

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Feb 18, 2026

📝 Walkthrough

Walkthrough

This PR adds three new Spanish-language documentation files for the Storage API, including endpoint specifications, configuration examples, and JavaScript helpers documentation. A NoOpStorageService code example is included to illustrate storage manager implementation patterns.

Changes

Cohort / File(s) Summary
Storage API Documentation (Spanish)
src/content/docs/es/storage-api/api-endpoint.mdx, src/content/docs/es/storage-api/index.mdx, src/content/docs/es/storage-api/javascript-helpers.mdx
New Spanish documentation pages for Storage API covering endpoint specifications (PUT/POST), NoOpStorageService implementation example, configuration patterns, and JavaScript helper utilities.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested reviewers

  • Adammatthiesen
  • dreyfus92

Poem

🐰 ¡Documentación nueva llega con ilusión!
Storage API en español, completa descripción,
Con NoOp de ejemplo y helpers que brillan,
Las páginas se multiplican, en español destilan. ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Title check ✅ Passed The title accurately describes the primary change: adding Spanish documentation files in the /es/storage-api folder, which is exactly what the changeset contains.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@studiocms-no-reply
Copy link
Copy Markdown
Member

Lunaria Status Overview

🌕 This pull request will trigger status changes.

Learn more

By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.

You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

File Note
es/storage-api/api-endpoint.mdx Localization added, will be marked as complete.
es/storage-api/index.mdx Localization added, will be marked as complete.
es/storage-api/javascript-helpers.mdx Localization added, will be marked as complete.
Warnings reference
Icon Description
🔄️ The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 4

🧹 Nitpick comments (1)
src/content/docs/es/storage-api/api-endpoint.mdx (1)

24-24: Heading hierarchy skips level 2 — consider adding an ## parent section.

### Method: PUT and ### Method: POST (h3) are the first headings on the page with no enclosing h2 parent section. This skips a heading level, which is an accessibility concern and can produce an unusual TOC structure (h3 entries floating at the top). A simple fix is wrapping both method sections under an ## Endpoints (or ## API Endpoints) h2.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/content/docs/es/storage-api/api-endpoint.mdx` at line 24, The page starts
with h3 headings "### Method: PUT" and "### Method: POST" without an h2 parent;
add an h2 like "## Endpoints" (or "## API Endpoints") above these sections and
move/ensure both "### Method: PUT" and "### Method: POST" are nested under that
h2 so heading hierarchy is correct and the TOC/accessibility is fixed.
🤖 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/storage-api/api-endpoint.mdx`:
- Around line 2-4: The frontmatter currently sets i18nReady: true while the
document body is still English; change the frontmatter key i18nReady from true
to false (i18nReady: false) for this page (the block containing title: API
Endpoint and description) so the page is not marked as translated until the
Spanish content is completed.
- Around line 28-37: The HTTP example block contains an invalid "Headers:" label
and an indented header line; update the PUT example in the code block (Storage
API - PUT /studiocms_api/storage/manager) to use proper HTTP wire format by
removing the "Headers:" prefix and placing the header as a top-level header line
(e.g., "x-storage-key: my-file.txt") alongside other headers like Host,
Content-Type, and Accept so each header is "Key: Value" on its own line.

In `@src/content/docs/es/storage-api/index.mdx`:
- Around line 2-4: The frontmatter flag i18nReady is set to true but the page
body (title/description and prose) is still in English; change the frontmatter
key i18nReady from true to false until the Spanish translation is completed and
verified (update i18nReady back to true once you add the translated content for
title/description and all prose).

In `@src/content/docs/es/storage-api/javascript-helpers.mdx`:
- Around line 2-5: The frontmatter flag i18nReady is set to true while the page
content (title, description, body) is still in English; update the frontmatter
key i18nReady to false until the Spanish translation is complete or replace the
English text with the translated Spanish content and then set i18nReady:
true—look for the i18nReady field in the document's frontmatter (the top
metadata block containing title/description) and change its boolean
appropriately.

---

Nitpick comments:
In `@src/content/docs/es/storage-api/api-endpoint.mdx`:
- Line 24: The page starts with h3 headings "### Method: PUT" and "### Method:
POST" without an h2 parent; add an h2 like "## Endpoints" (or "## API
Endpoints") above these sections and move/ensure both "### Method: PUT" and "###
Method: POST" are nested under that h2 so heading hierarchy is correct and the
TOC/accessibility is fixed.

Comment on lines +2 to +4
i18nReady: true
title: API Endpoint
description: Learn about the API endpoints available in the StudioCMS Storage API.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

Content is not translated — i18nReady: true is premature.

Same as the other ES files: all prose remains in English. Set i18nReady: false until the page body is actually translated into Spanish.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/content/docs/es/storage-api/api-endpoint.mdx` around lines 2 - 4, The
frontmatter currently sets i18nReady: true while the document body is still
English; change the frontmatter key i18nReady from true to false (i18nReady:
false) for this page (the block containing title: API Endpoint and description)
so the page is not marked as translated until the Spanish content is completed.

Comment on lines +28 to +37
```http title="Storage API - PUT /studiocms_api/storage/manager"
PUT /studiocms_api/storage/manager HTTP/1.1
Host: example.com
Content-Type: application/octet-stream
Accept: application/json
Headers:
x-storage-key: my-file.txt

<file-content>
```
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Invalid HTTP syntax in the PUT request example.

The Headers: label with an indented x-storage-key on the next line is not valid HTTP wire format. Headers in an HTTP request are written as flat Key: Value lines, not under a Headers: section prefix. As written, this may confuse readers and is technically incorrect documentation.

🐛 Proposed fix
 PUT /studiocms_api/storage/manager HTTP/1.1
 Host: example.com
 Content-Type: application/octet-stream
 Accept: application/json
-Headers:
-  x-storage-key: my-file.txt
+x-storage-key: my-file.txt
 
 <file-content>
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
```http title="Storage API - PUT /studiocms_api/storage/manager"
PUT /studiocms_api/storage/manager HTTP/1.1
Host: example.com
Content-Type: application/octet-stream
Accept: application/json
Headers:
x-storage-key: my-file.txt
<file-content>
```
PUT /studiocms_api/storage/manager HTTP/1.1
Host: example.com
Content-Type: application/octet-stream
Accept: application/json
x-storage-key: my-file.txt
<file-content>
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/content/docs/es/storage-api/api-endpoint.mdx` around lines 28 - 37, The
HTTP example block contains an invalid "Headers:" label and an indented header
line; update the PUT example in the code block (Storage API - PUT
/studiocms_api/storage/manager) to use proper HTTP wire format by removing the
"Headers:" prefix and placing the header as a top-level header line (e.g.,
"x-storage-key: my-file.txt") alongside other headers like Host, Content-Type,
and Accept so each header is "Key: Value" on its own line.

Comment on lines +2 to +4
i18nReady: true
title: Overview
description: Learn about the Storage API in StudioCMS
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

Content is not translated — i18nReady: true is premature.

All prose remains in English. Set i18nReady: false until the Spanish translation is complete.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/content/docs/es/storage-api/index.mdx` around lines 2 - 4, The
frontmatter flag i18nReady is set to true but the page body (title/description
and prose) is still in English; change the frontmatter key i18nReady from true
to false until the Spanish translation is completed and verified (update
i18nReady back to true once you add the translated content for title/description
and all prose).

Comment on lines +2 to +5
i18nReady: true
title: JavaScript Helpers
description: Learn about the JavaScript helpers available in the StudioCMS Storage API.
tableOfContents:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

Content is not translated — i18nReady: true is premature.

All prose text (title, description, and the full page body) is in English. In Starlight-based docs, i18nReady: true on a translated page signals the translation is complete and in sync with the English source. Marking this as ready while the content is still entirely in English will suppress any "needs translation" UI indicator and mislead users expecting Spanish content.

Either translate the content before setting i18nReady: true, or set it to false until translation is complete.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/content/docs/es/storage-api/javascript-helpers.mdx` around lines 2 - 5,
The frontmatter flag i18nReady is set to true while the page content (title,
description, body) is still in English; update the frontmatter key i18nReady to
false until the Spanish translation is complete or replace the English text with
the translated Spanish content and then set i18nReady: true—look for the
i18nReady field in the document's frontmatter (the top metadata block containing
title/description) and change its boolean appropriately.

@dreyfus92 dreyfus92 changed the title Add Spanish documentation in folder /src/content/docs/es/storage-api. i18n(es): add missing docs in folder /es/storage-api. Feb 18, 2026
@jramma jramma closed this Feb 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants