Skip to content

[AIT-108] Fix the Swift translations in the AIT guides#3205

Draft
lawrence-forooghian wants to merge 7 commits intoAIT-108-Framework-language-feature-combos-investigate-and-design-navigationfrom
AIT-108-language-combos-translate-swift
Draft

[AIT-108] Fix the Swift translations in the AIT guides#3205
lawrence-forooghian wants to merge 7 commits intoAIT-108-Framework-language-feature-combos-investigate-and-design-navigationfrom
AIT-108-language-combos-translate-swift

Conversation

@lawrence-forooghian
Copy link
Contributor

Based on top of #3176.

Translated using the translate-examples-to-swift skill in the as-yet-unmerged PR #3192. I've reviewed them.

@coderabbitai
Copy link

coderabbitai bot commented Feb 13, 2026

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch AIT-108-language-combos-translate-swift

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.

@lawrence-forooghian lawrence-forooghian added the review-app Create a Heroku review app label Feb 13, 2026
@ably-ci ably-ci temporarily deployed to ably-docs-ait-108-langu-goplts February 13, 2026 15:33 Inactive
@GregHolmes GregHolmes force-pushed the AIT-108-Framework-language-feature-combos-investigate-and-design-navigation branch 4 times, most recently from 852fa03 to 9fdfa49 Compare February 18, 2026 10:57
@GregHolmes GregHolmes force-pushed the AIT-108-language-combos-translate-swift branch from 0507721 to ac5229c Compare February 18, 2026 11:34
@GregHolmes GregHolmes temporarily deployed to ably-docs-ait-108-langu-goplts February 18, 2026 11:34 Inactive
@GregHolmes GregHolmes force-pushed the AIT-108-Framework-language-feature-combos-investigate-and-design-navigation branch from 1cf4a9f to 0436d5e Compare February 20, 2026 10:41
- Add Client/Agent dropdowns for separate frontend/backend language selection
- Support fe_/be_ prefixed code blocks in MDX files
- Preserve language params when navigating between guide pages
- Add aiTransport languages (javascript, python, swift, java)
- Add Guides section to AI Transport nav
- Update anthropic-message-per-response guide with dual language code blocks
- Update @ably/ui to 17.13.1-dev.c839343a

URL params: ?fe_lang=xxx&be_lang=yyy
The test mock for layout-context was missing the isDualLanguagePath
function that LeftSidebar imports, causing TypeError during test runs.
Extends the If component to support dual-language page conditionals:
- fe_lang: show content when frontend language matches
- be_lang: show content when backend language matches
- fe_or_be_lang: show content when either matches (with deduplication)

Used in AI Transport guides for language-specific prerequisites and SDK links.
- Add directory references to file creation instructions (e.g., "In your
  ably-anthropic-agent directory, create publisher.mjs")
- Add cd commands to run instructions for publisher and subscriber
- Add directory context to Step 6 rewind instructions
- Fix Swift Package.swift code block to use fe_swift prefix
- Wrap URL code block in Code component with text language
@GregHolmes GregHolmes force-pushed the AIT-108-Framework-language-feature-combos-investigate-and-design-navigation branch 2 times, most recently from 05f5832 to e4b42ce Compare February 26, 2026 14:30
…age-per-token guide

- Add multi-language support (Python, Java, Swift) to message-per-token
  guide, matching the structure of message-per-response
- Fix Python code in both guides: use AsyncAnthropic with async/await,
  use Message objects for publish with extras and append_message,
  use transport_params for echo suppression
- Scope "without await" asides to JavaScript only
@GregHolmes GregHolmes force-pushed the AIT-108-Framework-language-feature-combos-investigate-and-design-navigation branch from 88f8c70 to d85abb3 Compare February 26, 2026 15:46
GregHolmes and others added 2 commits February 27, 2026 09:54
Translated using the translate-examples-to-swift skill in the
as-yet-unmerged PR #3192. I've reviewed them.
@GregHolmes GregHolmes force-pushed the AIT-108-language-combos-translate-swift branch from ac5229c to cc8e56d Compare February 27, 2026 10:35
@GregHolmes GregHolmes force-pushed the AIT-108-Framework-language-feature-combos-investigate-and-design-navigation branch from 9e4cb2a to de6e819 Compare March 2, 2026 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review-app Create a Heroku review app

Development

Successfully merging this pull request may close these issues.

3 participants