Skip to content

Fix TranslationFn helper extraction docs#6

Merged
ogrodev merged 1 commit into
mainfrom
fix/translation-fn-helper-docs
Jun 3, 2026
Merged

Fix TranslationFn helper extraction docs#6
ogrodev merged 1 commit into
mainfrom
fix/translation-fn-helper-docs

Conversation

@ogrodev
Copy link
Copy Markdown
Owner

@ogrodev ogrodev commented Jun 3, 2026

Summary

  • Export shared translation function types from the root and server entries
  • Teach the extractor to recognize getTranslation() only from tyndale-react/server
  • Update pure-helper docs to mark composed source strings with msgString() before passing them through TranslationFn
  • Add coverage for server extraction, type exports, and documented pure-helper extraction

Verification

  • bun test packages/tyndale/tests/extract/string-extractor.test.ts packages/tyndale/tests/commands/extract.test.ts packages/tyndale-react/tests/type-exports.test.ts
  • bun run --cwd packages/tyndale-react build
  • bun run --cwd packages/tyndale build
  • bun run --cwd apps/website build

@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 3, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
tyndale-website Ready Ready Preview, Comment Jun 3, 2026 11:08pm

Request Review

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Jun 3, 2026

Warning

Review limit reached

@ogrodev, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 43 minutes and 11 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 5a2a2ac1-5b17-4600-bf28-e9dbb4a0515e

📥 Commits

Reviewing files that changed from the base of the PR and between e0b1476 and 23455d6.

📒 Files selected for processing (18)
  • apps/website/public/_tyndale/es.json
  • apps/website/public/_tyndale/fr.json
  • apps/website/public/_tyndale/ja.json
  • apps/website/public/_tyndale/ko.json
  • apps/website/public/_tyndale/zh.json
  • apps/website/src/content/docs/reference/react-api.mdx
  • packages/tyndale-react/README.md
  • packages/tyndale-react/src/get-translation.ts
  • packages/tyndale-react/src/index.ts
  • packages/tyndale-react/src/server.ts
  • packages/tyndale-react/src/types.ts
  • packages/tyndale-react/src/use-translation.ts
  • packages/tyndale-react/tests/__fixtures__/translation-fn-type.ts
  • packages/tyndale-react/tests/type-exports.test.ts
  • packages/tyndale/src/extract/string-extractor.ts
  • packages/tyndale/tests/commands/__fixtures__/project/src/metadata.ts
  • packages/tyndale/tests/commands/extract.test.ts
  • packages/tyndale/tests/extract/string-extractor.test.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/translation-fn-helper-docs

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant