Add Turkish localization support#1020
Add Turkish localization support#1020abdbali wants to merge 3 commits intopermissionlesstech:mainfrom
Conversation
Add Turkish localization support
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3cc5637f01
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| // MARK: - BluetoothMeshService Class | ||
| class BluetoothMeshService: NSObject, ObservableObject, CBCentralManagerDelegate, CBPeripheralDelegate { | ||
|
|
There was a problem hiding this comment.
Rename or remove duplicate BluetoothMeshService class
This file introduces a second BluetoothMeshService type in the same module, but bitchat/Services/BluetoothMeshService.swift already defines a class with that name. Because Package.swift’s executable target includes all .swift files under bitchat/, SwiftPM builds will fail with an invalid redeclaration error when compiling this commit. Consider renaming this new class or removing it from the target to avoid breaking SwiftPM builds.
Useful? React with 👍 / 👎.
Motivation
Provide Turkish language support for the app UI and help/commands so Turkish-speaking users can use the app in their language.
Ensure the new localization is included in the project build configuration and Xcode project metadata so it is packaged with the app.
Description
Added bitchat/tr.lproj/Localizable.strings containing Turkish translations for the main UI, commands and AppInfo copy (≈95 keys).
Updated bitchat/Views/ContentView.swift to use a localized fallback for the default channel name via String(localized: "channel") and fixed self-label formatting to use string interpolation ("(displayName) (you)").
Registered the localization in the build configuration by adding bitchat/tr.lproj to project.yml resources and updated bitchat.xcodeproj/project.pbxproj to add the tr region, file references, and resource entries.