Skip to content

Realtime language switching#3

Merged
petrpavlik merged 20 commits intomainfrom
feature/relatime-language-switching
Jan 8, 2026
Merged

Realtime language switching#3
petrpavlik merged 20 commits intomainfrom
feature/relatime-language-switching

Conversation

@petrpavlik
Copy link
Collaborator

@petrpavlik petrpavlik commented Dec 15, 2025

This PR adds the option to set a custom Locale either via a new parameter exposed through the initialize method or by a new method called setCustomLocale. Refer to the updated README or updated examples.

Implements #2

  • Support for real-time language switching.
    • Update SDK Examples to showcase this functionality.
  • Support for pre-fetching of languages the SDK is currently not set to.
  • Regional languages (like pt_BR) are now implicitly resolved and fetched from the CDN.
  • Drop the requirements for translate API with custom locale being iOS 18.4+, it's now iOS 16+
    • With that the SDK will not compile using older Xcode and macOS
  • Move JSON parsing and file access logic off the main thread.
  • Add a bunch of new tests.

@petrpavlik
Copy link
Collaborator Author

@copilot review please

@petrpavlik petrpavlik marked this pull request as ready for review January 2, 2026 11:35
Copy link
Contributor

Copilot AI commented Jan 2, 2026

@petrpavlik I've opened a new pull request, #4, to work on those changes. Once the pull request is ready, I'll request review from you.

* Initial plan

* Fix duplicate line and typo in variable name

Co-authored-by: petrpavlik <1067678+petrpavlik@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: petrpavlik <1067678+petrpavlik@users.noreply.github.com>
@petrpavlik petrpavlik merged commit 07c4059 into main Jan 8, 2026
1 check passed
@petrpavlik petrpavlik deleted the feature/relatime-language-switching branch January 8, 2026 18:33
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.

2 participants