Skip to content

i18n(fr): update config-reference/index & config-reference/locale#179

Merged
dreyfus92 merged 2 commits into
withstudiocms:mainfrom
ArmandPhilippot:i18n/fr-update-config-reference
Dec 19, 2025
Merged

i18n(fr): update config-reference/index & config-reference/locale#179
dreyfus92 merged 2 commits into
withstudiocms:mainfrom
ArmandPhilippot:i18n/fr-update-config-reference

Conversation

@ArmandPhilippot
Copy link
Copy Markdown
Member

@ArmandPhilippot ArmandPhilippot commented Dec 19, 2025

Description

Adds changes from #177 to the French translations of config-reference (except features already updated in #178)

Summary by CodeRabbit

  • New Features

    • Introduced db configuration option to the StudioCMS config object
    • Introduced i18n option in locale configuration
  • Documentation

    • Updated French configuration reference documentation with new configuration examples
    • Added i18n configuration section to French locale documentation
    • Added update badges to sidebar for modified documentation pages

✏️ Tip: You can customize this high-level summary in your review settings.

@ArmandPhilippot ArmandPhilippot requested a review from a team as a code owner December 19, 2025 18:01
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Dec 19, 2025

📝 Walkthrough

Walkthrough

French configuration reference documentation is updated with new sections describing database and internationalization options. Sidebar badges mark pages as updated, and configuration examples are extended to show the new db and i18n properties.

Changes

Cohort / File(s) Change Summary
Database Configuration Documentation
src/content/docs/fr/config-reference/index.mdx
Added new db configuration section with type, default, and usage examples. Default export updated to include db: {}. Sidebar badge added marking the page as updated.
Internationalization Configuration Documentation
src/content/docs/fr/config-reference/locale.mdx
Added new i18n configuration section with type, default, and usage examples. Configuration examples extended to show locale.i18n: {} alongside dateTimeFormat. Sidebar success badge added.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

  • Documentation-only changes with consistent patterns across both files
  • Additive updates with no logic modifications or complex interactions
  • Straightforward section additions and example enhancements

Possibly related PRs

Suggested labels

i18n

Suggested reviewers

  • Adammatthiesen
  • dreyfus92
  • louisescher

Poem

🐰 New docs bloom in French so fine,
Database and i18n align,
Badges gleam with updates bright,
Config reference shines in light! ✨

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately reflects the main change: French translation updates to the config-reference documentation pages (index and locale).
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

📜 Recent review details

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between e5e0e4f and ae3d710.

📒 Files selected for processing (2)
  • src/content/docs/fr/config-reference/index.mdx (3 hunks)
  • src/content/docs/fr/config-reference/locale.mdx (3 hunks)
🧰 Additional context used
🧠 Learnings (1)
📓 Common learnings
Learnt from: ArmandPhilippot
Repo: withstudiocms/docs PR: 149
File: src/content/docs/fr/guides/upgrade/version-guides/0-1-0-beta-21.mdx:13-15
Timestamp: 2025-07-24T11:57:15.225Z
Learning: In the withstudiocms/docs repository, when reviewing French translation files, maintain consistency with the English version even if it means keeping unused imports. Structural parity between language versions is prioritized over removing unused code.
Learnt from: ArmandPhilippot
Repo: withstudiocms/docs PR: 149
File: src/content/docs/fr/guides/upgrade/version-guides/0-1-0-beta-20.mdx:18-18
Timestamp: 2025-07-24T12:00:35.014Z
Learning: In the withstudiocms/docs repository, while translations should maintain structural parity with English versions, improving readability during translation is acceptable when the original text has clear redundancy or readability issues that would also impact the translation quality. The maintainer ArmandPhilippot confirmed this approach is reasonable when the technical meaning is preserved.
Learnt from: ArmandPhilippot
Repo: withstudiocms/docs 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.
🪛 LanguageTool
src/content/docs/fr/config-reference/locale.mdx

[grammar] ~74-~74: Essayez de remplacer cet élément par «   :  »
Context: ...ions d'internationalisation. - Type : object - Par défaut : {} ### U...

(QB_NEW_FR_OTHER_ERROR_IDS_REPLACEMENT_OTHER)


[grammar] ~75-~75: Essayez de remplacer cet élément par «   :

  »
Context: ... - Type : object - Par défaut : {} ### Utilisation ```ts twoslash {...

(QB_NEW_FR_OTHER_ERROR_IDS_REPLACEMENT_OTHER)

src/content/docs/fr/config-reference/index.mdx

[grammar] ~56-~56: Essayez de remplacer cet élément par «   :  »
Context: ...lecte de la base de données. - Type : DBConfigSchema - Par défaut : `{}...

(QB_NEW_FR_OTHER_ERROR_IDS_REPLACEMENT_OTHER)


[grammar] ~57-~57: Essayez de remplacer cet élément par «   :

  »
Context: ...pe :** DBConfigSchema - Par défaut : {} ### Utilisation ```ts twoslash {...

(QB_NEW_FR_OTHER_ERROR_IDS_REPLACEMENT_OTHER)

⏰ 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). (2)
  • GitHub Check: Run Starlight Link Check
  • GitHub Check: build-and-push
🔇 Additional comments (6)
src/content/docs/fr/config-reference/locale.mdx (3)

7-9: LGTM! Badge appropriately marks the page as updated.

The sidebar badge addition provides a clear visual indicator that this page has been updated, which is helpful for users navigating the documentation.


22-23: LGTM! Configuration example updated to include the new i18n option.

The example correctly demonstrates that both dateTimeFormat and i18n are available configuration options within the locale object.


69-88: French i18n documentation section correctly translated and structurally aligned with English source.

The French translation maintains perfect structural parity with the English version, with accurate terminology ("est un objet utilisé pour configurer les options d'internationalisation," "Utilisation"), proper French typography conventions (space before colons), and identical code examples. The section integrates seamlessly into the documentation.

src/content/docs/fr/config-reference/index.mdx (3)

7-9: LGTM! Badge addition is consistent across updated documentation pages.

The sidebar badge appropriately marks this page as updated, maintaining consistency with the locale.mdx file.


25-25: LGTM! The db property is correctly added to the default configuration example.

The placement is logical, positioned near the related dbStartPage option, and follows the pattern of showing empty objects as default values.


52-69: Documentation is accurate and well-structured.

The French db configuration section properly matches the English source with correct translation and maintains structural parity. The dialect options ('libsql' | 'postgresql' | 'mysql'), type reference (DBConfigSchema), and code examples are all consistent and accurate.


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

studiocms-no-reply commented Dec 19, 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/config-reference/index.mdx Localization changed, will be marked as complete.
fr/config-reference/locale.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.

@dreyfus92 dreyfus92 merged commit e168b89 into withstudiocms:main Dec 19, 2025
8 of 9 checks passed
@ArmandPhilippot ArmandPhilippot deleted the i18n/fr-update-config-reference branch December 20, 2025 02:13
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