Skip to content

i18n(fr): add versions-guides/0-1-0-beta-18 and update other files#134

Merged
Adammatthiesen merged 3 commits into
withstudiocms:mainfrom
ArmandPhilippot:i18n/fr-add-versions-guides/0-1-0-beta-18
May 13, 2025
Merged

i18n(fr): add versions-guides/0-1-0-beta-18 and update other files#134
Adammatthiesen merged 3 commits into
withstudiocms:mainfrom
ArmandPhilippot:i18n/fr-add-versions-guides/0-1-0-beta-18

Conversation

@ArmandPhilippot
Copy link
Copy Markdown
Member

@ArmandPhilippot ArmandPhilippot commented May 12, 2025

Description

Adds changes from #133 to the French translation.

Summary by CodeRabbit

  • New Features

    • Added a French upgrade guide for version 0.1.0-beta.18, detailing breaking changes and bug fixes.
  • Documentation

    • Updated plugin documentation to reflect a new hook-based plugin system and interface.
    • Revised CLI documentation to remove the claim option from JWT generation and added a "Mis à jour" badge.
    • Improved database authentication guide with clearer JWT token instructions and updated terminology.
    • Updated plugin example and integration documentation to align with the new plugin API.
    • Removed the "NOUVEAU" badge from the 0.1.0-beta.17 upgrade guide.
    • Added "Mis à jour" badges to plugin and CLI documentation sidebars.

@ArmandPhilippot ArmandPhilippot requested a review from a team as a code owner May 12, 2025 21:23
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 12, 2025

Walkthrough

This update modifies French documentation for StudioCMS, focusing on JWT generation instructions, plugin interface changes, and upgrade guides. It introduces a new hook-based plugin system, updates JWT-related documentation and environment variable comments, adds a new upgrade guide for version 0.1.0-beta.18, and revises sidebar badges for clarity and consistency.

Changes

Files/Paths Change Summary
src/content/docs/fr/guides/database/sqld-server.mdx, src/content/docs/fr/how-it-works/cli.mdx Updated JWT generation documentation: removed explicit -c "iss=admin" claim, clarified JWT format as standard/base64URL, updated related environment variable comments, and revised CLI options list for JWT claims.
src/content/docs/fr/plugins/index.mdx, src/content/docs/fr/plugins/extended.mdx Refactored plugin documentation to introduce a hook-based API, updated example plugin code, changed minimum StudioCMS version to 0.1.0-beta.18, and added or updated "Mis à jour" sidebar badges.
src/content/docs/fr/guides/upgrade/version-guides/0-1-0-beta-18.mdx Added a new upgrade guide for version 0.1.0-beta.18, describing breaking changes, new extension module system, CLI refactor, and a warning about password hashing changes.
src/content/docs/fr/guides/upgrade/version-guides/0-1-0-beta-17.mdx Removed the "NOUVEAU" badge from the sidebar metadata.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant Docs
    participant Plugin
    participant StudioCMS

    User->>Docs: Reads plugin documentation
    Docs->>User: Shows new hook-based plugin API
    User->>Plugin: Implements hooks ('studiocms:astro:config', 'studiocms:config:setup')
    Plugin->>StudioCMS: Registers integrations, dashboard items, navigation, etc. via hooks
    StudioCMS-->>User: Loads plugin with new configuration
Loading

Possibly related PRs

  • i18n(fr): translate new guides pages #123: Adds the initial French translation of the sqld-server guide, which is directly built upon by this PR's refinements.
  • i18n(fr): update how-it-works/cli #122: Updates the CLI documentation and removes the -c, --claim <claim...> option, directly related to the JWT documentation changes in this PR.
  • beta 18 docs #133: Modifies documentation for the JWT generation command and plugin interface, related to the same StudioCMS version and topics as this PR.

Suggested reviewers

  • dreyfus92

Poem

In fields of docs, a bunny hops,
Updating tokens, plugins, and props.
With hooks anew and badges bright,
The French guides now are set just right.
For every upgrade, a carrot cheer—
StudioCMS, spring’s update is here!
🥕

Tip

⚡️ Faster reviews with caching
  • CodeRabbit now supports caching for code and dependencies, helping speed up reviews. This means quicker feedback, reduced wait times, and a smoother review experience overall. Cached data is encrypted and stored securely. This feature will be automatically enabled for all accounts on May 16th. To opt out, configure Review - Disable Cache at either the organization or repository level. If you prefer to disable all data retention across your organization, simply turn off the Data Retention setting under your Organization Settings.

Enjoy the performance boost—your workflow just got faster.


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.
    • Explain this complex logic.
    • 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 explain this code block.
    • @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 explain its main purpose.
    • @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.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

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 generate sequence diagram to generate a sequence diagram of the changes in 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
Copy Markdown
Member

studiocms-no-reply commented May 12, 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
fr/guides/database/sqld-server.mdx Localization changed, will be marked as complete.
fr/guides/upgrade/version-guides/0-1-0-beta-17.mdx Localization changed, will be marked as complete.
fr/guides/upgrade/version-guides/0-1-0-beta-18.mdx Localization added, will be marked as complete.
fr/how-it-works/cli.mdx Localization changed, will be marked as complete.
fr/plugins/extended.mdx Localization changed, will be marked as complete.
fr/plugins/index.mdx Localization changed, 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: 0

🧹 Nitpick comments (5)
src/content/docs/fr/guides/database/sqld-server.mdx (3)

57-57: Clarify terminology: JWT is signed, not “chiffré”
JWTs are typically signés avec votre clé privée plutôt qu’« chiffrés ». Consider updating the text to:

-Le résultat est le jeton d'authentification JWT chiffré avec votre clé privée …
+Le résultat est le jeton d'authentification JWT signé avec votre clé privée …
🧰 Tools
🪛 LanguageTool

[style] ~57-~57: Une autre expression peut sembler plus percutante.
Context: ...clé privée au format standard et encodé en tant que base64URL, qui sera utilisé pour l’au...

(EN_TANT_QUE1)


[typographical] ~57-~57: Caractère d’apostrophe incorrect.
Context: ...u format standard et encodé en tant que base64URL, qui sera utilisé pour l’authentificati...

(APOS_INCORRECT)


[style] ~57-~57: Les chiffres s’écrivent généralement en lettres.
Context: ...ez à l’esprit que le token sera valable 1 an ! ### Mettez à jour votre fichier `...

(NOMBRES_EN_LETTRES_2_IMPROVED)


63-63: Wrap placeholder in quotes for clarity
To avoid ambiguity in the .env, it may help to show the token in quotes. For example:

-ASTRO_DB_APP_TOKEN= # collez ici votre jeton d’authentification JWT standard
+ASTRO_DB_APP_TOKEN="<collez ici votre jeton JWT standard>"

107-107: Unify “base64URL” casing and quoting in Docker snippet
Use consistent casing and quote the value in the compose file:

-      - SQLD_AUTH_JWT_KEY=collez votre jeton JWT encodé en tant que Base64URL ici
+      - SQLD_AUTH_JWT_KEY="<collez votre jeton JWT encodé en base64URL>"
src/content/docs/fr/guides/upgrade/version-guides/0-1-0-beta-18.mdx (2)

21-21: French style: prefer “fondé sur” over “basé sur”
“système de modules d’extension fondé sur les hooks” sonne plus naturel en français.

🧰 Tools
🪛 LanguageTool

[style] ~21-~21: Utilisé hors du contexte militaire, on préfèrera d’autres tournures à « baser sur ».
Context: ... Nouveau système de modules d’extension basé sur les hooks - Consultez la mise à jour de...

(BASER_SUR)


31-31: Translate the English comment “Links” into French
Replace /* Links */ with /* Liens */ for consistency in the French docs.

🧰 Tools
🪛 LanguageTool

[style] ~31-~31: Alternatives possibles pour cet anglicisme :
Context: ...ns une prochaine version. {/* Links */} [plugin-doc]: /fr/plugins/ [cli-doc...

(FR_SIMPLE_REPLACE_ANGLICISM_PREMIUM_LINKS)

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between f2c0ddc and 9c5f7ff.

📒 Files selected for processing (6)
  • src/content/docs/fr/guides/database/sqld-server.mdx (2 hunks)
  • src/content/docs/fr/guides/upgrade/version-guides/0-1-0-beta-17.mdx (0 hunks)
  • src/content/docs/fr/guides/upgrade/version-guides/0-1-0-beta-18.mdx (1 hunks)
  • src/content/docs/fr/how-it-works/cli.mdx (1 hunks)
  • src/content/docs/fr/plugins/extended.mdx (2 hunks)
  • src/content/docs/fr/plugins/index.mdx (3 hunks)
💤 Files with no reviewable changes (1)
  • src/content/docs/fr/guides/upgrade/version-guides/0-1-0-beta-17.mdx
🧰 Additional context used
🪛 LanguageTool
src/content/docs/fr/guides/database/sqld-server.mdx

[style] ~57-~57: Une autre expression peut sembler plus percutante.
Context: ...clé privée au format standard et encodé en tant que base64URL, qui sera utilisé pour l’au...

(EN_TANT_QUE1)


[typographical] ~57-~57: Caractère d’apostrophe incorrect.
Context: ...u format standard et encodé en tant que base64URL, qui sera utilisé pour l’authentificati...

(APOS_INCORRECT)


[style] ~57-~57: Les chiffres s’écrivent généralement en lettres.
Context: ...ez à l’esprit que le token sera valable 1 an ! ### Mettez à jour votre fichier `...

(NOMBRES_EN_LETTRES_2_IMPROVED)


[style] ~59-~59: Un autre mot peut sembler plus précis et percutant.
Context: ...t que le token sera valable 1 an ! ### Mettez à jour votre fichier .env de StudioCMS avec ...

(METTRE_A_JOUR)


[typographical] ~59-~59: Il manque une espace après le point.
Context: ...1 an ! ### Mettez à jour votre fichier .env de StudioCMS avec les éléments suivant...

(ESPACE_APRES_POINT)

src/content/docs/fr/guides/upgrade/version-guides/0-1-0-beta-18.mdx

[style] ~21-~21: Utilisé hors du contexte militaire, on préfèrera d’autres tournures à « baser sur ».
Context: ... Nouveau système de modules d’extension basé sur les hooks - Consultez la mise à jour de...

(BASER_SUR)


[uncategorized] ~25-~25: Le trait d’union doit être supprimé.
Context: ... bugs - Refactorisation de la commande gen-jwt - Consultez la mise à jour de la [docu...

(MOT_TRAIT_MOT)


[style] ~31-~31: Alternatives possibles pour cet anglicisme :
Context: ...ns une prochaine version. {/* Links */} [plugin-doc]: /fr/plugins/ [cli-doc...

(FR_SIMPLE_REPLACE_ANGLICISM_PREMIUM_LINKS)


[uncategorized] ~32-~32: Les deux-points sont précédés d’une espace insécable.
Context: ...ion. {/* Links */} [plugin-doc]: /fr/plugins/ [cli-doc]: /fr/how-it-work...

(FRENCH_WHITESPACE)


[uncategorized] ~33-~33: Les deux-points sont précédés d’une espace insécable.
Context: ... */} [plugin-doc]: /fr/plugins/ [cli-doc]: /fr/how-it-works/cli/#crypto-gen-jwt

(FRENCH_WHITESPACE)


[uncategorized] ~33-~33: Le trait d’union doit être supprimé.
Context: ...lugin-doc]: /fr/plugins/ [cli-doc]: /fr/how-it-works/cli/#crypto-gen-jwt

(MOT_TRAIT_MOT)


[uncategorized] ~33-~33: Le trait d’union doit être supprimé.
Context: ...ugins/ [cli-doc]: /fr/how-it-works/cli/#crypto-gen-jwt

(MOT_TRAIT_MOT)

src/content/docs/fr/plugins/index.mdx

[uncategorized] ~118-~118: Une phrase longue peut apporter une perte de sens pour le lecteur. Celle-ci peut donc être divisée afin d’apporter de la clarté et du rythme.
Context: ...odule d’extension pour StudioCMS appelé Mon module d’extension qui nécessite la ve...

(POINT_DET)


[typographical] ~118-~118: Une espace est requise.
Context: ...sage dans la console lorsque le crochet astro:config:setup est appelé. Pour plus ...

(DEUX_POINTS_ESPACE)

⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: Run Starlight Link Check
🔇 Additional comments (14)
src/content/docs/fr/how-it-works/cli.mdx (1)

7-9: Added “Mis à jour” badge to indicate updated content
The new badge in the sidebar metadata clearly highlights that this page has been refreshed for the 0.1.0-beta-18 release.

src/content/docs/fr/guides/database/sqld-server.mdx (1)

55-55: Verify CLI command signature change
The <PackageManagers> snippet correctly reflects the removal of the -c, --claim option and only includes the key file and expiration. This matches the new gen-jwt behavior described in the upgrade guide.

src/content/docs/fr/guides/upgrade/version-guides/0-1-0-beta-18.mdx (3)

1-4: Frontmatter metadata added for the new upgrade guide
The i18nReady, title, and description entries correctly initialize this new 0.1.0-beta-18 upgrade document.


7-10: Sidebar badge marking the guide as “NOUVEAU”
The NOUVEAU badge with success variant and proper ordering is consistent with other version guides.


25-25: Bug-fixes section bullet is clear and accurate
Referencing the CLI docs for the gen-jwt refactor aligns with linked changes.

🧰 Tools
🪛 LanguageTool

[uncategorized] ~25-~25: Le trait d’union doit être supprimé.
Context: ... bugs - Refactorisation de la commande gen-jwt - Consultez la mise à jour de la [docu...

(MOT_TRAIT_MOT)

src/content/docs/fr/plugins/extended.mdx (6)

7-9: Added “Mis à jour” badge for updated plugin example
This highlights that the extended plugin documentation has been refreshed for beta-18.


46-46: Define plugin options interface
Adding route: string; to Options correctly reflects the hook-based example’s API surface.


50-51: Implement path resolution comment and code
Using createResolver(import.meta.url) to resolve the Astro component path is clear and idiomatic.


53-54: Introduce Astro integration function
Refactoring to a monIntegration function that returns an AstroIntegration matches the new hook-based design.


55-81: Hook-driven integration logic is correct
The "astro:config:setup" hook injects the route and virtual imports as intended.


86-89: definePlugin call updated to hook-based API
Identifier, name, minimum version bump to 0.1.0-beta.18, and hook registrations align with the redesigned plugin interface.

src/content/docs/fr/plugins/index.mdx (3)

7-9: Added “Mis à jour” badge to core plugins page
This signals that the fundamental plugin docs now cover the new hook-based API in beta-18.


29-34: Updated StudioCMSPlugin interface with hooks property
Defining both 'studiocms:astro:config' and 'studiocms:config:setup' hooks ensures plugin authors can register integrations and configure site features.


107-114: Example plugin definition aligns with new interface
The studiocmsMinimumVersion bump and the hooks object in the example correctly demonstrate the hook-based pattern.

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: 0

🧹 Nitpick comments (2)
src/content/docs/fr/plugins/index.mdx (2)

108-114: Uniformiser le style des chaînes et terminer les instructions par un point-virgule
Il y a une légère incohérence de guillemets ('mon-module-extension' vs "Mon module d’extension") et l'appel addIntegrations(monIntegration(options)) pourrait se terminer par un point-virgule pour respecter les conventions du projet.


118-118: Alléger la phrase et corriger l'espacement
La phrase est longue et manque d’une espace après le point. Par exemple :

- Dans cet exemple, nous définissons un module d’extension pour StudioCMS appelé `Mon module d’extension` qui nécessite la version `0.1.0-beta.18` ou supérieure de StudioCMS.
+ Dans cet exemple, nous définissons un module d’extension pour StudioCMS nommé `Mon module d’extension`. Ce module nécessite la version `0.1.0-beta.18` (ou supérieure) de StudioCMS.
🧰 Tools
🪛 LanguageTool

[uncategorized] ~118-~118: Une phrase longue peut apporter une perte de sens pour le lecteur. Celle-ci peut donc être divisée afin d’apporter de la clarté et du rythme.
Context: ...odule d’extension pour StudioCMS appelé Mon module d’extension qui nécessite la ve...

(POINT_DET)


[typographical] ~118-~118: Une espace est requise.
Context: ...sage dans la console lorsque le crochet astro:config:setup est appelé. Pour plus ...

(DEUX_POINTS_ESPACE)

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 9c5f7ff and 845c11c.

📒 Files selected for processing (1)
  • src/content/docs/fr/plugins/index.mdx (3 hunks)
🧰 Additional context used
🪛 LanguageTool
src/content/docs/fr/plugins/index.mdx

[uncategorized] ~118-~118: Une phrase longue peut apporter une perte de sens pour le lecteur. Celle-ci peut donc être divisée afin d’apporter de la clarté et du rythme.
Context: ...odule d’extension pour StudioCMS appelé Mon module d’extension qui nécessite la ve...

(POINT_DET)


[typographical] ~118-~118: Une espace est requise.
Context: ...sage dans la console lorsque le crochet astro:config:setup est appelé. Pour plus ...

(DEUX_POINTS_ESPACE)

⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: Run Starlight Link Check
🔇 Additional comments (2)
src/content/docs/fr/plugins/index.mdx (2)

7-9: Ajout du badge "Mis à jour"
Le badge est conforme aux directives de style et aide les utilisateurs à identifier rapidement les mises à jour de cette section.


24-73: Validation de la définition de l'interface StudioCMSPlugin
La nouvelle interface et la structure hooks sont correctes et cohérentes avec le système de plugins décrit. La syntaxe TypeScript est valide et l’exemple couvre bien les deux hooks majeurs (studiocms:astro:config et studiocms:config:setup).

@Adammatthiesen Adammatthiesen merged commit fc423f0 into withstudiocms:main May 13, 2025
8 checks passed
@ArmandPhilippot ArmandPhilippot deleted the i18n/fr-add-versions-guides/0-1-0-beta-18 branch May 13, 2025 10:01
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