Skip to content

Support for Xcode String Catalogs #931

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,26 @@ jobs:
- name: Test
run: xcodebuild -project Examples/LocalizedStringApp/LocalizedStringApp.xcodeproj -scheme LocalizedStringApp -destination 'platform=iOS Simulator,name=iPhone 16,OS=18.0' test

test-iOS-StringCatalogApp:
runs-on: self-hosted
needs: build-rswift
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download build
uses: actions/[email protected]
with:
name: rswift-dev
path: rswift-dev
- name: Put build into place
run: |
mkdir -p .build/release
mv rswift-dev/rswift .build/release/rswift
chmod +x .build/release/rswift
- name: Test
run: xcodebuild -project Examples/StringCatalogApp/StringCatalogApp.xcodeproj -scheme StringCatalogApp -destination 'platform=iOS Simulator,name=iPhone 16,OS=18.0' test


test-tvOS:
runs-on: self-hosted
needs: build-rswift
Expand Down
2 changes: 1 addition & 1 deletion Documentation/Examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ let progress = String(format: NSLocalizedString("copy.progress", comment: ""), l

*With R.swift*
```swift
// Localized strings are grouped per table (.strings file)
// Localized strings are grouped per table (.strings file or .xcstrings file)
let welcomeMessage = R.string.localizable.welcomeMessage()
let settingsTitle = R.string.settings.title()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/tomlokhorst/XcodeEdit",
"state" : {
"revision" : "cd466d6e8c5ffd2f2b61165d37b0646f09068e1e",
"version" : "2.9.0"
"revision" : "1e761a55dd8d73b4e9cc227a297f438413953571",
"version" : "2.11.1"
}
}
],
Expand Down
Loading