Skip to content

i18n(es): translate sqld-server.mdx#114

Merged
dreyfus92 merged 2 commits intomainfrom
es-07
Apr 21, 2025
Merged

i18n(es): translate sqld-server.mdx#114
dreyfus92 merged 2 commits intomainfrom
es-07

Conversation

@dreyfus92
Copy link
Member

@dreyfus92 dreyfus92 commented Apr 21, 2025

Description

  • What does this PR change? Give us a brief description.
    Translates sqld-server.mdx

Summary by CodeRabbit

  • Documentation
    • Added a comprehensive Spanish-language guide for self-hosting a libSQL server with Docker for StudioCMS projects, including setup prerequisites, key generation, authentication options, environment configuration, and deployment instructions.

@dreyfus92 dreyfus92 requested a review from a team as a code owner April 21, 2025 02:37
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Apr 21, 2025

Walkthrough

A new Spanish-language guide was introduced to the documentation, detailing the process of self-hosting a libSQL server using the sqld daemon within a Docker container for StudioCMS projects. The guide provides step-by-step instructions on prerequisites, key generation, JWT token creation, Docker Compose setup, integration with StudioCMS, and initial project configuration. It also includes references for further reading and notes on deployment with Coolify.

Changes

File(s) Change Summary
src/content/docs/es/guides/database/sqld-server.mdx Added a comprehensive Spanish-language guide for self-hosting a libSQL server with Docker for StudioCMS integration, including prerequisites, setup steps, and configuration instructions.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant StudioCMS CLI
    participant Docker
    participant sqld (libSQL server)
    participant StudioCMS Project

    User->>StudioCMS CLI: Generate JWT token
    User->>Docker: Start sqld container (with keys/JWT)
    StudioCMS Project->>sqld (libSQL server): Connect using JWT authentication
    User->>StudioCMS Project: Update .env with DB URL and JWT
    StudioCMS Project->>sqld (libSQL server): Synchronize schema
Loading

Possibly related PRs

Suggested reviewers

  • Adammatthiesen

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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@studiocms-no-reply
Copy link
Member

studiocms-no-reply commented Apr 21, 2025

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/guides/database/sqld-server.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
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: 2

🧹 Nitpick comments (2)
src/content/docs/es/guides/database/sqld-server.mdx (2)

13-13: Add terminal punctuation to <ReadMore> snippet
For consistency and proper Spanish punctuation, end the sentence inside <ReadMore> with a period:

-<ReadMore>Aprende más sobre `sqld` usando su [documentación][sql-docs]</ReadMore>
+<ReadMore>Aprende más sobre `sqld` usando su [documentación][sql-docs].</ReadMore>

126-128: Standardize punctuation in step list
The numbered step uses a colon but subsequent steps use periods. To maintain consistency, consider changing the colon to a period:

-1. Arranca el contenedor Docker:
+1. Arranca el contenedor Docker.
🧰 Tools
🪛 LanguageTool

[uncategorized] ~126-~126: Probablemente hay un error. Considere aplicar la sugerencia.
Context: ... 1. Arranca el contenedor Docker: Desde el directorio base (o el serv...

(AI_ES_GGEC_REPLACEMENT_PUNCTUATION)


[uncategorized] ~128-~128: Probablemente falta un signo de puntuación.
Context: ...ker: Desde el directorio base (o el servidor si elegiste esa ruta) ejecuta el siguie...

(AI_ES_GGEC_MISSING_PUNCTUATION)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 490827a and e43970c.

📒 Files selected for processing (1)
  • src/content/docs/es/guides/database/sqld-server.mdx (1 hunks)
🧰 Additional context used
🪛 LanguageTool
src/content/docs/es/guides/database/sqld-server.mdx

[uncategorized] ~11-~11: Probablemente hay un error. Considere aplicar la sugerencia.
Context: ... explicará cómo configurar y configurar sqld para trabajar desde un contenedor de Do...

(AI_ES_GGEC_REPLACEMENT_PUNCTUATION)


[uncategorized] ~51-~51: Probablemente hay un error. Considere aplicar la sugerencia.
Context: ...CS#8 que se utilizarán para el servidor sqld. ## Generar tu token JWT Navega a tu ...

(AI_ES_GGEC_REPLACEMENT_OTHER)


[uncategorized] ~72-~72: Probablemente hay un error. Considere aplicar la sugerencia.
Context: ...L: - Usando el archivo de clave pública - Usanto el token JWT como variable de ent...

(AI_ES_GGEC_REPLACEMENT_OTHER)


[uncategorized] ~126-~126: Probablemente hay un error. Considere aplicar la sugerencia.
Context: ... 1. Arranca el contenedor Docker: Desde el directorio base (o el serv...

(AI_ES_GGEC_REPLACEMENT_PUNCTUATION)


[uncategorized] ~128-~128: Probablemente falta un signo de puntuación.
Context: ...ker: Desde el directorio base (o el servidor si elegiste esa ruta) ejecuta el siguie...

(AI_ES_GGEC_MISSING_PUNCTUATION)


[uncategorized] ~152-~152: El verbo empleado no parece adecuado en este contexto. Considere una alternativa.
Context: ...ntos finales Si buscas una opción para auto-alojar tu propia base de datos libSQL con Stud...

(AI_ES_GGEC_REPLACEMENT_VERB)


[uncategorized] ~152-~152: Probablemente hay un error. Considere aplicar la sugerencia.
Context: ...pia base de datos libSQL con StudioCMS, sqld es una opción viable y no es muy compli...

(AI_ES_GGEC_REPLACEMENT_OTHER)

⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: Run Starlight Link Check

Copy link
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: 2

🧹 Nitpick comments (4)
src/content/docs/es/guides/database/sqld-server.mdx (4)

1-5: Nitpick: Uniform formatting and hyphenation in frontmatter
La descripción actual expone sqld sin formato de código y el título usa “auto-alojado” con guion. Para mayor coherencia con el resto de la docu, sugiero envolver sqld en backticks y unificar “autoalojado” sin guion:

--- a/src/content/docs/es/guides/database/sqld-server.mdx
+++ b/src/content/docs/es/guides/database/sqld-server.mdx
@@
-description: Aloja tu propio servidor sqld libSQL con Docker
+description: Aloja tu propio servidor `sqld` de libSQL usando Docker
 title: Servidor libSQL auto-alojado
+# Opcional: cambiar a "Servidor libSQL autoalojado"

19-19: Nitpick: Inconsistencia en el uso de “StudioCMS”
En la línea 19 aparece “CLI de StudioCMS” y en la línea 55 “proyecto studiocms”. Recomiendo usar siempre la forma “StudioCMS” (con mayúscula) para mantener la marca consistente:

- CLI de StudioCMS (disponible desde la raíz de tu proyecto StudioCMS)
+ CLI de StudioCMS (disponible desde la raíz de tu proyecto StudioCMS)

- Navega a tu directorio del proyecto studiocms y ejecuta el siguiente comando:
+ Navega a tu directorio del proyecto StudioCMS y ejecuta el siguiente comando:

Also applies to: 55-55


126-128: Mejora de puntuación para mayor claridad
Falta una coma tras el paréntesis para separar la aclaración y el verbo principal:

- Desde el directorio base (o el servidor si elegiste esa ruta) ejecuta el siguiente comando para iniciar el contenedor del servidor libSQL
+ Desde el directorio base (o el servidor si elegiste esa ruta), ejecuta el siguiente comando para iniciar el contenedor del servidor libSQL
🧰 Tools
🪛 LanguageTool

[uncategorized] ~126-~126: Probablemente hay un error. Considere aplicar la sugerencia.
Context: ... 1. Arranca el contenedor Docker: Desde el directorio base (o el serv...

(AI_ES_GGEC_REPLACEMENT_PUNCTUATION)


[uncategorized] ~128-~128: Probablemente falta un signo de puntuación.
Context: ...ker: Desde el directorio base (o el servidor si elegiste esa ruta) ejecuta el siguie...

(AI_ES_GGEC_MISSING_PUNCTUATION)


38-38: Opcional: Simplificar título de sección
Para ajustarse al uso común en español, podrías cambiar:

- ## Generar claves privadas y públicas
+ ## Generar clave privada y clave pública
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between e43970c and 10a0657.

📒 Files selected for processing (1)
  • src/content/docs/es/guides/database/sqld-server.mdx (1 hunks)
🧰 Additional context used
🪛 LanguageTool
src/content/docs/es/guides/database/sqld-server.mdx

[uncategorized] ~11-~11: Probablemente hay un error. Considere aplicar la sugerencia.
Context: ...ía explicará cómo configurar y ejecutar sqld para trabajar desde un contenedor de Do...

(AI_ES_GGEC_REPLACEMENT_PUNCTUATION)


[uncategorized] ~51-~51: Probablemente hay un error. Considere aplicar la sugerencia.
Context: ...CS#8 que se utilizarán para el servidor sqld. ## Generar tu token JWT Navega a tu ...

(AI_ES_GGEC_REPLACEMENT_OTHER)


[uncategorized] ~72-~72: Probablemente hay un error. Considere aplicar la sugerencia.
Context: ...L: - Usando el archivo de clave pública - Usando el token JWT como variable de ent...

(AI_ES_GGEC_REPLACEMENT_OTHER)


[uncategorized] ~126-~126: Probablemente hay un error. Considere aplicar la sugerencia.
Context: ... 1. Arranca el contenedor Docker: Desde el directorio base (o el serv...

(AI_ES_GGEC_REPLACEMENT_PUNCTUATION)


[uncategorized] ~128-~128: Probablemente falta un signo de puntuación.
Context: ...ker: Desde el directorio base (o el servidor si elegiste esa ruta) ejecuta el siguie...

(AI_ES_GGEC_MISSING_PUNCTUATION)


[uncategorized] ~152-~152: El verbo empleado no parece adecuado en este contexto. Considere una alternativa.
Context: ...ntos finales Si buscas una opción para auto-alojar tu propia base de datos libSQL con Stud...

(AI_ES_GGEC_REPLACEMENT_VERB)


[uncategorized] ~152-~152: Probablemente hay un error. Considere aplicar la sugerencia.
Context: ...pia base de datos libSQL con StudioCMS, sqld es una opción viable y no es muy compli...

(AI_ES_GGEC_REPLACEMENT_OTHER)

⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: Run Starlight Link Check


<PackageManagers pkg='studiocms' type='run' args='crypto gen-jwt "../keys/libsql.pem" -c "iss=admin" -e 31556926' />

El resultado es el token de autenticación JWT cifrado con tu clave privada, que se utilizará para la autenticación de libSQL. Ten en cuenta que el token será válido durante 1 año.
Copy link
Contributor

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Corrección técnica: JWT firmado vs cifrado
El token JWT no se cifra con la clave privada, sino que se firma. Sugiero ajustar la redacción:

- El resultado es el token de autenticación JWT cifrado con tu clave privada, que se utilizará para la autenticación de libSQL.
+ El resultado es el token de autenticación JWT firmado con tu clave privada, que se utilizará para la autenticación de libSQL.
📝 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
El resultado es el token de autenticación JWT cifrado con tu clave privada, que se utilizará para la autenticación de libSQL. Ten en cuenta que el token será válido durante 1 año.
- El resultado es el token de autenticación JWT cifrado con tu clave privada, que se utilizará para la autenticación de libSQL. Ten en cuenta que el token será válido durante 1 año.
+ El resultado es el token de autenticación JWT firmado con tu clave privada, que se utilizará para la autenticación de libSQL. Ten en cuenta que el token será válido durante 1 año.

- "5001:5001"
environment:
- SQLD_NODE=primary
- SQLD_AUTH_JWT_KEY=paste your JWT token here
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue

Error de traducción en snippet de Docker
El placeholder en inglés “paste your JWT token here” quedó sin traducir. Debe aparecer en español:

-    - SQLD_AUTH_JWT_KEY=paste your JWT token here
+    - SQLD_AUTH_JWT_KEY=<pega tu token JWT aquí>
📝 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
- SQLD_AUTH_JWT_KEY=paste your JWT token here
- SQLD_AUTH_JWT_KEY=<pega tu token JWT aquí>

@dreyfus92 dreyfus92 merged commit c3678b8 into main Apr 21, 2025
8 checks passed
@dreyfus92 dreyfus92 deleted the es-07 branch April 21, 2025 03:08
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.

3 participants