i18n(fr): move utils/kysely-and-sdk.mdx to ecosystem/packages#205
Conversation
Lunaria Status Overview🌕 This pull request will trigger status changes. Learn moreBy default, every PR changing files present in the Lunaria configuration's You can change this by adding one of the keywords present in the Tracked Files
Warnings reference
|
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📝 WalkthroughWalkthroughRestructures the French Kysely package doc to focus on a Kysely-based StudioCMS DB client with updated imports and examples; adds a new French SDK documentation page describing SDK features and navigation links. All changes are documentation-only. Changes
Sequence Diagram(s)(omitted — changes are documentation-only and do not introduce new multi-component control flow) Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
src/content/docs/fr/ecosystem/packages/kysely.mdx (1)
260-277: Rename the example function to match the “get user” use case.This section is about fetching a user by ID, but the exported function is named
insertUser. Rename it to avoid confusion and avoid shadowing the inner helper.✏️ Suggested fix
-export const insertUser = Effect.gen(function* () { +export const getUserById = Effect.gen(function* () { const { withCodec } = yield* getDbClient; - const getUserById = withCodec({ + const fetchUserById = withCodec({ encoder: Schema.String, decoder: Schema.UndefinedOr(StudioCMSUsersTable.Select), callbackFn: (db, id) => db((client) => client.selectFrom('StudioCMSUsersTable') .selectAll() .where('id', '=', id) .executeTakeFirst() ), }); - const user = yield* getUserById('un-identifiant-utilisateur'); + const user = yield* fetchUserById('un-identifiant-utilisateur');
🤖 Fix all issues with AI agents
In `@src/content/docs/fr/ecosystem/packages/kysely.mdx`:
- Line 174: The section heading "Exemple pour insérer un nouvel d'utilisateur
(`withCodec`)" has a grammar error—remove the stray "d'": update the heading to
"Exemple pour insérer un nouvel utilisateur (`withCodec`)" (or "Exemple
d'insertion d'un nouvel utilisateur (`withCodec`)" if you prefer an alternate
phrasing) so the French is correct; modify the heading text in the file
src/content/docs/fr/ecosystem/packages/kysely.mdx accordingly.
In `@src/content/docs/fr/ecosystem/packages/sdk.mdx`:
- Line 21: Replace the straight ASCII apostrophe in the French phrase "qu'avec"
with the typographic right single quotation mark (’), i.e., change "qu'avec" to
"qu’avec" in the string shown in the diff so the document uses correct French
typography.
Description
Updates the French translations with changes from #194 to
utils/kysely-and-sdk.mdxecosystem/packages/kysely.mdxandecosystem/packages/sdk.mdxSummary by CodeRabbit
Release Notes
✏️ Tip: You can customize this high-level summary in your review settings.