Fix duplicate line and typo in Tolgee.swift#4
Merged
petrpavlik merged 2 commits intofeature/relatime-language-switchingfrom Jan 2, 2026
Merged
Fix duplicate line and typo in Tolgee.swift#4petrpavlik merged 2 commits intofeature/relatime-language-switchingfrom
petrpavlik merged 2 commits intofeature/relatime-language-switchingfrom
Conversation
Co-authored-by: petrpavlik <1067678+petrpavlik@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add option for realtime language switching feature
Fix duplicate line and typo in Tolgee.swift
Jan 2, 2026
petrpavlik
approved these changes
Jan 2, 2026
petrpavlik
added a commit
that referenced
this pull request
Jan 8, 2026
* support language switching basics * Implement cache clearing for old app versions and add mock implementation * Add tests for clearing old cache in MockCache and FileCache * Enhance localization support by adding Czech and English translations, updating test cases, and refining initialization logic for locale handling * Add language switcher support and improve localization handling in examples * Fix language code in README examples to use Brazilian Portuguese (pt_BR) * Support pre-fetching languages from CDN. * add better language detection * refactor bundle repository * CDN language inferences now supports regions * Enhance language resolution logic and add support for custom local language * Add bundleForLanguageDetection parameter to Tolgee initialization * language switching for swiftui previews is not iOS 18.4+ anymore * cleanup * Refine documentation for locale handling and initialization in Tolgee SDK * Add README examples for SwiftUI and UIKit integration with Tolgee SDK * Clarify parameter name in documentation for fetching translations * fixes * Add pre-fetch all languages to readme * Fix duplicate line and typo in Tolgee.swift (#4) * 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> --------- Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com> Co-authored-by: petrpavlik <1067678+petrpavlik@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Code review identified two minor issues in the realtime language switching implementation.
Changes
cdnEtags.removeAll()call inclearCaches()methodlocalLaunguage→localLanguagein tuple return type and property assignments (4 occurrences)Both issues were in
/Sources/Tolgee/Tolgee.swiftand did not affect functionality, but improve code quality and maintainability.✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.