Skip to content

i18n(fr): update how-it-works#141

Merged
dreyfus92 merged 2 commits into
withstudiocms:mainfrom
ArmandPhilippot:i18n/fr-update-how-it-works
Jul 22, 2025
Merged

i18n(fr): update how-it-works#141
dreyfus92 merged 2 commits into
withstudiocms:mainfrom
ArmandPhilippot:i18n/fr-update-how-it-works

Conversation

@ArmandPhilippot
Copy link
Copy Markdown
Member

@ArmandPhilippot ArmandPhilippot commented Jul 21, 2025

Description

Adds changes from #139 to the French translation of how-it-works:

  • update cli.mdx, index.mdx and sdk.mdx
  • translate effect.mdx

Summary by CodeRabbit

  • New Features

    • Added a new French documentation page introducing the Effect library and its integration with StudioCMS.
  • Documentation

    • Updated the French CLI documentation to remove references to the --color and --no-color options.
    • Revised the French SDK documentation for clarity, focusing on Effect-based usage and streamlined utility imports.
    • Improved the French "how-it-works" section with updated metadata, consolidated authentication module listings, and added new authentication utility entries. Removed a deprecated SDK cache module from documentation.

@ArmandPhilippot ArmandPhilippot requested a review from a team as a code owner July 21, 2025 21:07
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Jul 21, 2025

Walkthrough

This update modifies the French documentation for StudioCMS. It removes outdated CLI options, adds a new page about the Effect library, streamlines SDK usage documentation, and updates module listings and metadata in the "how-it-works" section. The changes focus on improving clarity and reflecting current features.

Changes

File(s) Change Summary
src/content/docs/fr/how-it-works/cli.mdx Removed --color and --no-color CLI options from the documentation.
src/content/docs/fr/how-it-works/effect.mdx Added new French documentation page introducing the Effect library and its usage in StudioCMS.
src/content/docs/fr/how-it-works/index.mdx Updated sidebar metadata, consolidated and added authentication module entries, removed one SDK module.
src/content/docs/fr/how-it-works/sdk.mdx Streamlined SDK documentation, updated usage examples, removed detailed namespace breakdowns.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant Docs
    participant StudioCMS

    User->>Docs: Reads updated SDK usage
    Docs->>User: Shows Effect-based SDK example
    User->>StudioCMS: Imports SDKCoreJs, runSDK, Effect
    User->>StudioCMS: Runs async SDK call via Effect
    StudioCMS-->>User: Returns result
Loading

Estimated code review effort

2 (~15 minutes)

Possibly related PRs

Suggested labels

i18n

Suggested reviewers

  • dreyfus92
  • Adammatthiesen

Poem

A hop and a skip through docs anew,
Old color flags gone, Effect shines through!
SDKs streamlined, modules aligned,
In French, clarity you’ll now find.
🥕✨
From this rabbit’s warren,
Your docs are now golden!


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 Jul 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
fr/how-it-works/cli.mdx Localization changed, will be marked as complete.
fr/how-it-works/effect.mdx Localization added, will be marked as complete.
fr/how-it-works/index.mdx Localization changed, will be marked as complete.
fr/how-it-works/sdk.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 (2)
src/content/docs/fr/how-it-works/index.mdx (1)

26-30: Valider la consolidation du sous-module d’authentification et les nouvelles entrées

  1. Le passage de plusieurs sous-modules (utils/*) à un seul studiocms:auth/lib dans l’anglais source supprime-t-il réellement les import utilisables ?
  2. Vérifier que studiocms:auth/utils/validImages et studiocms:auth/scripts/three existent bien côté build – ils n’apparaissent pas dans la version anglaise stable 🤔.
  3. Formulation : « Utilitaires d’authentification pour StudioCMS » est redondant avec le contexte ; une version plus concise serait « Utilitaires d’authentification ».
- **`studiocms:auth/lib`** : Utilitaires d’authentification pour StudioCMS.
+ **`studiocms:auth/lib`** : Utilitaires d’authentification.
src/content/docs/fr/how-it-works/sdk.mdx (1)

47-64: Liste utilitaires : ordre et exhaustivité

La destructuration mélange verbes (CLEAR, DELETE…) et namespaces (db, REST_API). Pour gagner en lisibilité :

  • regrouper par catégorie (DB, REST, CRUD, services) ou
  • conserver l’ordre alphabétique comme dans l’anglais.

Pas bloquant mais améliore la consultation.

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 7be1157 and b32c0d2.

📒 Files selected for processing (4)
  • src/content/docs/fr/how-it-works/cli.mdx (0 hunks)
  • src/content/docs/fr/how-it-works/effect.mdx (1 hunks)
  • src/content/docs/fr/how-it-works/index.mdx (2 hunks)
  • src/content/docs/fr/how-it-works/sdk.mdx (1 hunks)
💤 Files with no reviewable changes (1)
  • src/content/docs/fr/how-it-works/cli.mdx
🧰 Additional context used
🧠 Learnings (3)
📓 Common learnings
Learnt from: ArmandPhilippot
PR: withstudiocms/docs#130
File: src/content/docs/fr/guides/upgrade/version-guides/0-1-0-beta-17.mdx:1-11
Timestamp: 2025-04-26T12:29:17.995Z
Learning: When reviewing translations in the withstudiocms/docs repository, compare with the corresponding English version as the source of truth, not with other files in the same target language. French translations should maintain structural parity with their English counterparts.
Learnt from: ArmandPhilippot
PR: withstudiocms/docs#140
File: src/content/docs/fr/guides/upgrade/version-guides/0-1-0-beta-19.mdx:24-24
Timestamp: 2025-07-21T12:16:32.374Z
Learning: In the withstudiocms/docs repository, documentation URLs in the package-catalog may maintain legacy path names for stability and consistency across language versions, even when the actual package names have been updated. Always verify that corresponding files exist before flagging URLs as broken.
src/content/docs/fr/how-it-works/index.mdx (2)

Learnt from: ArmandPhilippot
PR: #140
File: src/content/docs/fr/guides/upgrade/version-guides/0-1-0-beta-19.mdx:24-24
Timestamp: 2025-07-21T12:16:32.374Z
Learning: In the withstudiocms/docs repository, documentation URLs in the package-catalog may maintain legacy path names for stability and consistency across language versions, even when the actual package names have been updated. Always verify that corresponding files exist before flagging URLs as broken.

Learnt from: ArmandPhilippot
PR: #130
File: src/content/docs/fr/guides/upgrade/version-guides/0-1-0-beta-17.mdx:1-11
Timestamp: 2025-04-26T12:29:17.995Z
Learning: When reviewing translations in the withstudiocms/docs repository, compare with the corresponding English version as the source of truth, not with other files in the same target language. French translations should maintain structural parity with their English counterparts.

src/content/docs/fr/how-it-works/sdk.mdx (1)

Learnt from: ArmandPhilippot
PR: #140
File: src/content/docs/fr/guides/upgrade/version-guides/0-1-0-beta-19.mdx:24-24
Timestamp: 2025-07-21T12:16:32.374Z
Learning: In the withstudiocms/docs repository, documentation URLs in the package-catalog may maintain legacy path names for stability and consistency across language versions, even when the actual package names have been updated. Always verify that corresponding files exist before flagging URLs as broken.

🪛 LanguageTool
src/content/docs/fr/how-it-works/effect.mdx

[uncategorized] ~12-12: Le point-virgule est précédé d’une espace fine insécable.
Context: ...adMore from '
/components/ReadMore.astro'; # Introduction Si vous n’en avez jama...

(FRENCH_WHITESPACE)


[style] ~18-~18: Ce verbe peut être considéré comme familier dans un contexte formel.
Context: ...chrones. StudioCMS utilise Effect pour gérer la majeure partie de notre code, ce qui...

(VERBES_FAMILIERS_PREMIUM)


[style] ~28-~28: Cette structure peut être modifiée afin de devenir plus percutante.
Context: ...nclut exactement les mêmes exportations de base que l’exportation par défaut d’Effect `...

(DE_BASE3)

src/content/docs/fr/how-it-works/index.mdx

[style] ~27-~27: Dans un contexte formel des synonymes peuvent enrichir votre style.
Context: ...uth/utils/authEnvCheck`** : Utilitaires permettant de vérifier l’environnement d’authentifica...

(REP_PERMETTRE)


[style] ~28-~28: Dans un contexte formel des synonymes peuvent enrichir votre style.
Context: ...abelForPermissionLevel`** : Utilitaires permettant d’obtenir l’étiquette d’un niveau d’autori...

(REP_PERMETTRE)

src/content/docs/fr/how-it-works/sdk.mdx

[uncategorized] ~12-12: Le point-virgule est précédé d’une espace fine insécable.
Context: ...adMore from '
/components/ReadMore.astro'; Le SDK de StudioCMS est un outil puiss...

(FRENCH_WHITESPACE)


[style] ~14-~14: Ce verbe peut être considéré comme familier dans un contexte formel.
Context: ...mble de fonctions et d’utilitaires pour gérer et diffuser votre contenu via Astro DB....

(VERBES_FAMILIERS_PREMIUM)


[style] ~14-~14: Utilisé hors du contexte militaire, on préfèrera d’autres tournures à « baser sur ».
Context: ...ase du tableau de bord StudioCMS et est basé sur Effect. ## U...

(BASER_SUR)


[style] ~16-~16: Cette structure peut être modifiée afin de devenir plus percutante.
Context: ...ttps://effect.website). ## Utilisation de base Le SDK de StudioCMS est disponible sou...

(DE_BASE3)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Run Starlight Link Check
🔇 Additional comments (6)
src/content/docs/fr/how-it-works/index.mdx (1)

7-9: Sidebar badge : rien à redire
La métadonnée « Mis à jour » + variant success est cohérente avec la taxonomie interne du site.

src/content/docs/fr/how-it-works/effect.mdx (2)

1-9: Front-matter OK
Les champs i18nReady, badge et l’ordre de sidebar sont conformes aux conventions existantes.


22-36: Confirmer le nom du module virtuel “effect” et la disponibilité des utilitaires personnalisés

  • Le reste de la doc emploie la convention studiocms:xxx. Ici l’exemple utilise studiocms/effect (slash).
    ‑ Est-ce réellement l’alias exposé par l’intégration ?
  • Les helpers convertToVanilla, errorTap, etc. sont listés mais n’apparaissent pas côté anglais ; assurez-vous qu’ils sont bien exportés pour éviter aux lecteurs un ImportError.

Si la bonne specifier est avec :, appliquer :

-import { Effect, Context, Schema, Data } from 'studiocms/effect';
+import { Effect, Context, Schema, Data } from 'studiocms:effect';
src/content/docs/fr/how-it-works/sdk.mdx (3)

7-9: Badge mis à jour : rien à signaler


18-25: Nom des modules virtuels : double convention : / / à éclaircir

On importe ici :

import { SDKCore, SDKCoreJs, runSDK } from 'studiocms:sdk';
import { Effect } from 'studiocms/effect';

Même remarque que pour effect.mdx : assurez-vous que les deux styles (: vs /) sont exacts et documentés ; sinon les lecteurs rencontreront des erreurs Vite.


27-34: SDKCore.Default existe-t-il vraiment ?

L’API courante expose souvent SDKCoreLive ou simplement un layer à fournir. Merci de valider que Default est le bon export ; sinon l’exemple échouera.

Copy link
Copy Markdown
Member

@dreyfus92 dreyfus92 left a comment

Choose a reason for hiding this comment

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

Merci @ArmandPhilippot 🫡

@dreyfus92 dreyfus92 merged commit aac6d64 into withstudiocms:main Jul 22, 2025
8 checks passed
@ArmandPhilippot ArmandPhilippot deleted the i18n/fr-update-how-it-works branch July 24, 2025 10:14
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