native: iPhone project, string catalog and the native gate
XcodeGen project for EquipoPhone (works.oficina.equipo, Oficina Equipo), a placeholder icon, the privacy manifest, the English string catalog from scripts/strings.json with check-strings.py, the Sparkle settings for bundle-mac.py, and check-native.sh: fixtures, strings, Swift tests, the Mac app and the iPhone Simulator build.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
18 files changed,
+1,417
−17
native/.gitignore+1 −0native/PrivacyInfo.xcprivacy+24 −0native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings+1,115 −3native/apple/Sources/EquipoKit/UI/RosterViews.swift+13 −13native/apple/Sources/EquipoKit/UI/Theme.swift+1 −1native/apple/Tests/EquipoKitTests/SessionTests.swift+4 −0native/ios/Assets.xcassets/AppIcon.appiconset/AppIcon.pngbinarynative/ios/Assets.xcassets/AppIcon.appiconset/Contents.json+4 −0native/ios/Assets.xcassets/Contents.json+1 −0native/ios/Sources/EquipoPhoneApp.swift+9 −0native/ios/project.yml+48 −0native/mac-updates.json+9 −0native/scripts/build-iphone.sh+16 −0native/scripts/build-mac.sh+10 −0native/scripts/check-fixtures.py+0 −0native/scripts/check-native.sh+15 −0native/scripts/check-strings.py+44 −0native/scripts/strings.json+103 −0
diff --git a/native/.gitignore b/native/.gitignore| index 10b89d95..12a13114 100644 |
| --- a/native/.gitignore |
| +++ b/native/.gitignore |
| @@ -3,3 +3,4 @@ |
| DerivedData/ |
| build/ |
| *.xcodeproj/ |
| +*.log |
diff --git a/native/PrivacyInfo.xcprivacy b/native/PrivacyInfo.xcprivacy| new file mode 100644 |
| index 00000000..ff79651f |
| --- /dev/null |
| +++ b/native/PrivacyInfo.xcprivacy |
| @@ -0,0 +1,24 @@ |
| +<?xml version="1.0" encoding="UTF-8"?> |
| +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
| +<plist version="1.0"> |
| +<dict> |
| + <key>NSPrivacyTracking</key> |
| + <false/> |
| + <key>NSPrivacyTrackingDomains</key> |
| + <array/> |
| + <key>NSPrivacyCollectedDataTypes</key> |
| + <array/> |
| + <key>NSPrivacyAccessedAPITypes</key> |
| + <array> |
| + <dict> |
| + <!-- The notification subscription's ID, revision and cursor. --> |
| + <key>NSPrivacyAccessedAPIType</key> |
| + <string>NSPrivacyAccessedAPICategoryUserDefaults</string> |
| + <key>NSPrivacyAccessedAPITypeReasons</key> |
| + <array> |
| + <string>CA92.1</string> |
| + </array> |
| + </dict> |
| + </array> |
| +</dict> |
| +</plist> |
diff --git a/native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings b/native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings| index 8a470103..bdc1f7d8 100644 |
| --- a/native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings |
| +++ b/native/apple/Sources/EquipoKit/Resources/Localizable.xcstrings |
| @@ -1,5 +1,1117 @@ |
| { |
| - "sourceLanguage" : "en", |
| - "strings" : {}, |
| - "version" : "1.0" |
| + "sourceLanguage": "en", |
| + "version": "1.0", |
| + "strings": { |
| + "account.address": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Address" |
| + } |
| + } |
| + } |
| + }, |
| + "account.device": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "This device" |
| + } |
| + } |
| + } |
| + }, |
| + "account.device_name": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Name" |
| + } |
| + } |
| + } |
| + }, |
| + "account.sign_out": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Sign out" |
| + } |
| + } |
| + } |
| + }, |
| + "account.sign_out_confirm": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Sign out of this team on this device?" |
| + } |
| + } |
| + } |
| + }, |
| + "account.sign_out_footer": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Signing out removes this device from the team. You can pair it again at any time." |
| + } |
| + } |
| + } |
| + }, |
| + "account.signed_in_as": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Signed in as" |
| + } |
| + } |
| + } |
| + }, |
| + "account.team": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Team" |
| + } |
| + } |
| + } |
| + }, |
| + "account.team_name": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Name" |
| + } |
| + } |
| + } |
| + }, |
| + "account.title": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Account" |
| + } |
| + } |
| + } |
| + }, |
| + "account.until": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Signed in until" |
| + } |
| + } |
| + } |
| + }, |
| + "action.sending": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Sending…" |
| + } |
| + } |
| + } |
| + }, |
| + "action.set_aside": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Set aside" |
| + } |
| + } |
| + } |
| + }, |
| + "action.setting_aside": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Setting aside…" |
| + } |
| + } |
| + } |
| + }, |
| + "byline.asks": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "asks" |
| + } |
| + } |
| + } |
| + }, |
| + "byline.reports": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "reports" |
| + } |
| + } |
| + } |
| + }, |
| + "card.changed": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "This item has changed. Check it before trying again." |
| + } |
| + } |
| + } |
| + }, |
| + "card.failed": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Couldn’t confirm that change. Try again." |
| + } |
| + } |
| + } |
| + }, |
| + "card.offline": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Couldn’t reach your team, so nothing was sent. Try again." |
| + } |
| + } |
| + } |
| + }, |
| + "card.open_on_web": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Open in Equipo on the web" |
| + } |
| + } |
| + } |
| + }, |
| + "chip.needs_you": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Needs you" |
| + } |
| + } |
| + } |
| + }, |
| + "composer.send": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Send" |
| + } |
| + } |
| + } |
| + }, |
| + "conversation.empty": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Say what you want done. Your coordinator picks the project and tells you, and you can change it." |
| + } |
| + } |
| + } |
| + }, |
| + "conversation.placeholder": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Message" |
| + } |
| + } |
| + } |
| + }, |
| + "decision.on_web": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "For now you make this decision on the web, where its full context is." |
| + } |
| + } |
| + } |
| + }, |
| + "decision.untitled": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "A decision" |
| + } |
| + } |
| + } |
| + }, |
| + "message.coordinator_spoken %@ %@": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Coordinator, %1$@. %2$@" |
| + } |
| + } |
| + } |
| + }, |
| + "message.failed": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Not sent. Try again." |
| + } |
| + } |
| + } |
| + }, |
| + "message.own_spoken %@": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "You said: %@" |
| + } |
| + } |
| + } |
| + }, |
| + "message.sending": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Sending…" |
| + } |
| + } |
| + } |
| + }, |
| + "message.waiting": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Waiting for a connection. Try again." |
| + } |
| + } |
| + } |
| + }, |
| + "needs.count_spoken %lld": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "%lld waiting for you" |
| + } |
| + } |
| + } |
| + }, |
| + "needs.empty": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Questions and decisions for you appear here." |
| + } |
| + } |
| + } |
| + }, |
| + "needs.empty_title": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Nothing needs you" |
| + } |
| + } |
| + } |
| + }, |
| + "pairing.approve_lede": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Approve this device in your browser. There is no password or token to paste." |
| + } |
| + } |
| + } |
| + }, |
| + "pairing.approved %@": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "This device is paired with %@." |
| + } |
| + } |
| + } |
| + }, |
| + "pairing.approved_title": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Paired" |
| + } |
| + } |
| + } |
| + }, |
| + "pairing.bad_team": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "That is not a team address. Check it and try again." |
| + } |
| + } |
| + } |
| + }, |
| + "pairing.cancel": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Cancel" |
| + } |
| + } |
| + } |
| + }, |
| + "pairing.continue": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Continue" |
| + } |
| + } |
| + } |
| + }, |
| + "pairing.ended %@": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "%@ ended this device’s session. Pair it again to continue." |
| + } |
| + } |
| + } |
| + }, |
| + "pairing.expired": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "The code expired. Pair again for a new one." |
| + } |
| + } |
| + } |
| + }, |
| + "pairing.failed": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Couldn’t pair this device. Try again." |
| + } |
| + } |
| + } |
| + }, |
| + "pairing.not_equipo": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "There is no Equipo team at that address." |
| + } |
| + } |
| + } |
| + }, |
| + "pairing.offline": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Couldn’t reach that address. Check your connection and try again." |
| + } |
| + } |
| + } |
| + }, |
| + "pairing.open_browser": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Open your team to approve" |
| + } |
| + } |
| + } |
| + }, |
| + "pairing.pair": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Pair this device" |
| + } |
| + } |
| + } |
| + }, |
| + "pairing.requesting": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Asking your team for a code…" |
| + } |
| + } |
| + } |
| + }, |
| + "pairing.shown_as %@": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Shown in your browser as %@" |
| + } |
| + } |
| + } |
| + }, |
| + "pairing.slow_down": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Too many tries. Wait a minute and try again." |
| + } |
| + } |
| + } |
| + }, |
| + "pairing.team_hint": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "The address you open Equipo at in your browser." |
| + } |
| + } |
| + } |
| + }, |
| + "pairing.team_label": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Team address" |
| + } |
| + } |
| + } |
| + }, |
| + "pairing.team_placeholder": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "team.equipo.oficina.works" |
| + } |
| + } |
| + } |
| + }, |
| + "pairing.title": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Pair with your team" |
| + } |
| + } |
| + } |
| + }, |
| + "pairing.waiting": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Waiting for you to approve. The code lasts 10 minutes." |
| + } |
| + } |
| + } |
| + }, |
| + "pairing.welcome_lede": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Talk to your coordinator, answer questions and follow your team’s work from this device." |
| + } |
| + } |
| + } |
| + }, |
| + "pairing.welcome_title": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Equipo" |
| + } |
| + } |
| + } |
| + }, |
| + "pairing.your_code": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Your code" |
| + } |
| + } |
| + } |
| + }, |
| + "project.spoken %@": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Project %@" |
| + } |
| + } |
| + } |
| + }, |
| + "question.answer_placeholder": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Answer" |
| + } |
| + } |
| + } |
| + }, |
| + "question.answered %@": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "You answered: %@" |
| + } |
| + } |
| + } |
| + }, |
| + "question.closed": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "This question is no longer open." |
| + } |
| + } |
| + } |
| + }, |
| + "question.loading": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Loading the question…" |
| + } |
| + } |
| + } |
| + }, |
| + "specialist.checks": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Checks" |
| + } |
| + } |
| + } |
| + }, |
| + "specialist.coordinator": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Coordinator" |
| + } |
| + } |
| + } |
| + }, |
| + "specialist.copy": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Copy" |
| + } |
| + } |
| + } |
| + }, |
| + "specialist.design": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Design" |
| + } |
| + } |
| + } |
| + }, |
| + "specialist.engineering": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Engineering" |
| + } |
| + } |
| + } |
| + }, |
| + "specialist.research": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Research" |
| + } |
| + } |
| + } |
| + }, |
| + "specialist.review": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Review" |
| + } |
| + } |
| + } |
| + }, |
| + "tab.conversation": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Conversation" |
| + } |
| + } |
| + } |
| + }, |
| + "tab.needs": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Needs you" |
| + } |
| + } |
| + } |
| + }, |
| + "tab.tasks": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Tasks" |
| + } |
| + } |
| + } |
| + }, |
| + "task.cancelled": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Cancelled" |
| + } |
| + } |
| + } |
| + }, |
| + "task.done": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Done" |
| + } |
| + } |
| + } |
| + }, |
| + "task.hide_talk": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Hide the talk" |
| + } |
| + } |
| + } |
| + }, |
| + "task.missing": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "This task is not available." |
| + } |
| + } |
| + } |
| + }, |
| + "task.needs_you": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Needs you" |
| + } |
| + } |
| + } |
| + }, |
| + "task.not_started": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Not started" |
| + } |
| + } |
| + } |
| + }, |
| + "task.open_hint": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Opens the task" |
| + } |
| + } |
| + } |
| + }, |
| + "task.open_web": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Open on the web" |
| + } |
| + } |
| + } |
| + }, |
| + "task.reply": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Reply" |
| + } |
| + } |
| + } |
| + }, |
| + "task.step_failed %@": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "%@ stopped" |
| + } |
| + } |
| + } |
| + }, |
| + "task.step_running %@": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "%@ is working" |
| + } |
| + } |
| + } |
| + }, |
| + "task.step_waiting %@": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "%@ is waiting" |
| + } |
| + } |
| + } |
| + }, |
| + "task.steps": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Steps" |
| + } |
| + } |
| + } |
| + }, |
| + "task.talk": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Talk about this" |
| + } |
| + } |
| + } |
| + }, |
| + "task.thread_empty": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Nothing has been said about this task yet." |
| + } |
| + } |
| + } |
| + }, |
| + "task.title": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Task" |
| + } |
| + } |
| + } |
| + }, |
| + "task.usage": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Used so far" |
| + } |
| + } |
| + } |
| + }, |
| + "tasks.empty": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Tasks you and your team ask for appear here." |
| + } |
| + } |
| + } |
| + }, |
| + "tasks.empty_title": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "No tasks yet" |
| + } |
| + } |
| + } |
| + }, |
| + "tasks.finished": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Finished" |
| + } |
| + } |
| + } |
| + }, |
| + "tasks.in_progress": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "In progress" |
| + } |
| + } |
| + } |
| + }, |
| + "tasks.needs_you": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Needs you" |
| + } |
| + } |
| + } |
| + }, |
| + "thread.own_spoken %@": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "You said: %@. Sent" |
| + } |
| + } |
| + } |
| + }, |
| + "thread.reading %@": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "%@ is reading" |
| + } |
| + } |
| + } |
| + }, |
| + "thread.sent": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Sent" |
| + } |
| + } |
| + } |
| + }, |
| + "usage.calls": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Calls" |
| + } |
| + } |
| + } |
| + }, |
| + "usage.tokens_in": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Tokens in" |
| + } |
| + } |
| + } |
| + }, |
| + "usage.tokens_out": { |
| + "extractionState": "manual", |
| + "localizations": { |
| + "en": { |
| + "stringUnit": { |
| + "state": "translated", |
| + "value": "Tokens out" |
| + } |
| + } |
| + } |
| + } |
| + } |
| } |
diff --git a/native/apple/Sources/EquipoKit/UI/RosterViews.swift b/native/apple/Sources/EquipoKit/UI/RosterViews.swift| index e916d0f0..5ba6f722 100644 |
| --- a/native/apple/Sources/EquipoKit/UI/RosterViews.swift |
| +++ b/native/apple/Sources/EquipoKit/UI/RosterViews.swift |
| @@ -31,7 +31,7 @@ struct CoordinatorMark: View { |
| .frame(width: size, height: size) |
| .rotationEffect(.degrees(thinking ? 45 : 0)).scaleEffect(thinking ? 0.85 : 1).opacity(thinking ? 0.5 : 1) |
| .animation(thinking ? .easeInOut(duration: 1.3).repeatForever(autoreverses: true) : nil, value: thinking) |
| - .accessibilityLabel("Coordinator") |
| + .accessibilityLabel(Text(Specialist.coordinator.name)) |
| } |
| } |
| /// A specialist: its icon centred in a tile, beside its name. Never a letter. |
| @@ -99,7 +99,7 @@ struct ProjectChip: View { |
| if let action { |
| Button(action: action) { label.frame(minHeight: Metric.tile).contentShape(Rectangle()) } |
| .buttonStyle(.plain).onHover { hovering = $0 } |
| - .accessibilityLabel("Project \(name). Wrong project?") |
| + .accessibilityLabel(Text(String(localized: "project.spoken \(name)", bundle: .module))) |
| } else { label } |
| } |
| } |
| @@ -144,7 +144,7 @@ struct NeedsChip: View { |
| var body: some View { |
| HStack(spacing: 4) { |
| Image(systemName: "hand.raised").font(.system(size: 11, weight: .semibold)) |
| - Text("Needs you").textCase(.uppercase).kerning(0.3) |
| + Text(String(localized: "chip.needs_you", bundle: .module)).textCase(.uppercase).kerning(0.3) |
| } |
| .font(Typo.chip).foregroundStyle(Palette.warning) |
| .padding(.horizontal, 8).padding(.vertical, 3) |
| @@ -211,7 +211,7 @@ struct SetAsideButton: View { |
| Button(action: action) { |
| Group { |
| if busy { |
| - Text("Setting aside…").font(Typo.caption).padding(.horizontal, 8) |
| + Text(String(localized: "action.setting_aside", bundle: .module)).font(Typo.caption).padding(.horizontal, 8) |
| } else { |
| Image(systemName: "xmark").font(.system(size: 13, weight: .semibold)).frame(width: 36, height: 36) |
| } |
| @@ -228,8 +228,8 @@ struct SetAsideButton: View { |
| } |
| .buttonStyle(.plain).onHover { hovering = $0 } |
| .disabled(busy) |
| - .accessibilityLabel("Set aside") |
| - .help("Set aside") |
| + .accessibilityLabel(Text(String(localized: "action.set_aside", bundle: .module))) |
| + .help(Text(String(localized: "action.set_aside", bundle: .module))) |
| } |
| } |
| /// Only things that need you are raised: a surface, a rim and a soft shadow. |
| @@ -289,12 +289,12 @@ struct ThreadBubble: View { |
| .padding(.horizontal, 12).padding(.vertical, 8) |
| .background(Palette.soft, in: RoundedRectangle(cornerRadius: 14, style: .continuous)) |
| .overlay(RoundedRectangle(cornerRadius: 14, style: .continuous).strokeBorder(Palette.lightRim, lineWidth: 1)) |
| - Text("Sent").font(Typo.caption).foregroundStyle(Palette.faint) |
| + Text(String(localized: "thread.sent", bundle: .module)).font(Typo.caption).foregroundStyle(Palette.faint) |
| } |
| .padding(.leading, 32) |
| .frame(maxWidth: .infinity, alignment: .trailing) |
| .accessibilityElement(children: .combine) |
| - .accessibilityLabel("You said: \(turn.text). Sent") |
| + .accessibilityLabel(Text(String(localized: "thread.own_spoken \(turn.text)", bundle: .module))) |
| } else { |
| let who = turn.who ?? .coordinator |
| HStack(alignment: .top, spacing: 8) { |
| @@ -320,7 +320,7 @@ struct ReadingLine: View { |
| var body: some View { |
| HStack(spacing: 8) { |
| HStack(spacing: 3) { ForEach(0..<3, id: \.self) { _ in Circle().frame(width: 4, height: 4) } } |
| - Text("\(who.name) is reading") |
| + Text(String(localized: "thread.reading \(who.name)", bundle: .module)) |
| } |
| .font(Typo.secondary).foregroundStyle(Palette.secondary) |
| .accessibilityElement(children: .combine) |
| @@ -351,7 +351,7 @@ struct MiniComposer: View { |
| Button { if has { onSend(text); text = "" } } label: { |
| Group { |
| if busy { |
| - HStack(spacing: 5) { ProgressView().controlSize(.mini).tint(.white); Text("Sending…").font(Typo.caption) } |
| + HStack(spacing: 5) { ProgressView().controlSize(.mini).tint(.white); Text(String(localized: "action.sending", bundle: .module)).font(Typo.caption) } |
| .foregroundStyle(.white).padding(.horizontal, 12).frame(height: 36) |
| .background(Palette.primaryFill, in: Capsule()) |
| } else { |
| @@ -364,7 +364,7 @@ struct MiniComposer: View { |
| .frame(minWidth: 44, minHeight: 44).contentShape(Rectangle()) |
| } |
| .buttonStyle(.plain).padding(.trailing, 1).padding(.bottom, 1) |
| - .accessibilityLabel(busy ? "Sending" : "Send") |
| + .accessibilityLabel(Text(busy ? String(localized: "action.sending", bundle: .module) : String(localized: "composer.send", bundle: .module))) |
| .disabled(!has || busy) |
| } |
| .background(Palette.surface, in: shape) |
| @@ -401,7 +401,7 @@ struct CoordinatorMessage: View { |
| } |
| .frame(maxWidth: .infinity, alignment: .leading) |
| .accessibilityElement(children: .combine) |
| - .accessibilityLabel("Coordinator, \(message.createdAt.formatted(date: .omitted, time: .shortened)). \(message.body)") |
| + .accessibilityLabel(Text(String(localized: "message.coordinator_spoken \(message.createdAt.formatted(date: .omitted, time: .shortened)) \(message.body)", bundle: .module))) |
| } |
| } |
| struct OwnMessage: View { |
| @@ -413,7 +413,7 @@ struct OwnMessage: View { |
| .overlay(RoundedRectangle(cornerRadius: 18, style: .continuous).strokeBorder(Palette.lightRim.opacity(0.7), lineWidth: 1)) |
| .padding(.leading, 48) |
| .frame(maxWidth: .infinity, alignment: .trailing) |
| - .accessibilityLabel("You said: \(text)") |
| + .accessibilityLabel(Text(String(localized: "message.own_spoken \(text)", bundle: .module))) |
| } |
| } |
| /// One line: the mark, the real activity, elapsed time and a quiet Stop. |
diff --git a/native/apple/Sources/EquipoKit/UI/Theme.swift b/native/apple/Sources/EquipoKit/UI/Theme.swift| index cb152c57..d674208a 100644 |
| --- a/native/apple/Sources/EquipoKit/UI/Theme.swift |
| +++ b/native/apple/Sources/EquipoKit/UI/Theme.swift |
| @@ -210,7 +210,7 @@ struct CountBadge: View { |
| .foregroundStyle(Palette.warning) |
| .padding(.horizontal, 7).frame(minWidth: 22, minHeight: 20) |
| .background(Palette.warningBackground, in: Capsule()) |
| - .accessibilityLabel("\(count) waiting") |
| + .accessibilityLabel(Text(String(localized: "needs.count_spoken \(count)", bundle: .module))) |
| } |
| } |
| /// A specialist is always an icon beside its name. No lettered squares. |
diff --git a/native/apple/Tests/EquipoKitTests/SessionTests.swift b/native/apple/Tests/EquipoKitTests/SessionTests.swift| index 1fe6c35f..325c3569 100644 |
| --- a/native/apple/Tests/EquipoKitTests/SessionTests.swift |
| +++ b/native/apple/Tests/EquipoKitTests/SessionTests.swift |
| @@ -154,6 +154,10 @@ private func readable(_ t: ScriptedTransport) { |
| #expect(TaskSummary(tasks.items[0]).tone == .warning) |
| #expect(TaskSummary(tasks.items[0]).specialist == .copy) |
| #expect(TaskSummary(tasks.items[1]).specialist == .review) |
| + // The catalog resolves: a missing key would show the key itself. |
| + #expect(TaskSummary(tasks.items[1]).label == "Review is working") |
| + #expect(TaskSummary(tasks.items[0]).label == "Needs you") |
| + #expect(Specialist.coordinator.name == "Coordinator") |
| var failed = tasks.items[1]; failed.steps?[1].state = "failed" |
| #expect(TaskSummary(failed).tone == .negative) |
| } |
diff --git a/native/ios/Assets.xcassets/AppIcon.appiconset/AppIcon.png b/native/ios/Assets.xcassets/AppIcon.appiconset/AppIcon.png| new file mode 100644 |
| index 00000000..afa6ae99 |
| Binary files /dev/null and b/native/ios/Assets.xcassets/AppIcon.appiconset/AppIcon.png differ |
diff --git a/native/ios/Assets.xcassets/AppIcon.appiconset/Contents.json b/native/ios/Assets.xcassets/AppIcon.appiconset/Contents.json| new file mode 100644 |
| index 00000000..da294ba2 |
| --- /dev/null |
| +++ b/native/ios/Assets.xcassets/AppIcon.appiconset/Contents.json |
| @@ -0,0 +1,4 @@ |
| +{ |
| + "images" : [ { "filename" : "AppIcon.png", "idiom" : "universal", "platform" : "ios", "size" : "1024x1024" } ], |
| + "info" : { "author" : "xcode", "version" : 1 } |
| +} |
diff --git a/native/ios/Assets.xcassets/Contents.json b/native/ios/Assets.xcassets/Contents.json| new file mode 100644 |
| index 00000000..46cba7df |
| --- /dev/null |
| +++ b/native/ios/Assets.xcassets/Contents.json |
| @@ -0,0 +1 @@ |
| +{ "info" : { "author" : "xcode", "version" : 1 } } |
diff --git a/native/ios/Sources/EquipoPhoneApp.swift b/native/ios/Sources/EquipoPhoneApp.swift| new file mode 100644 |
| index 00000000..34c00217 |
| --- /dev/null |
| +++ b/native/ios/Sources/EquipoPhoneApp.swift |
| @@ -0,0 +1,9 @@ |
| +import EquipoKit |
| +import SwiftUI |
| + |
| +@main |
| +struct EquipoPhoneApp: App { |
| + var body: some Scene { |
| + WindowGroup { PhoneRoot() } |
| + } |
| +} |
diff --git a/native/ios/project.yml b/native/ios/project.yml| new file mode 100644 |
| index 00000000..6c6c7df1 |
| --- /dev/null |
| +++ b/native/ios/project.yml |
| @@ -0,0 +1,48 @@ |
| +name: EquipoPhone |
| +options: |
| + bundleIdPrefix: works.oficina |
| + deploymentTarget: |
| + iOS: '26.0' |
| +packages: |
| + EquipoNative: |
| + path: ../apple |
| +settings: |
| + base: |
| + SWIFT_VERSION: '6.0' |
| + CODE_SIGN_STYLE: Automatic |
| + MARKETING_VERSION: 0.1.0 |
| + CURRENT_PROJECT_VERSION: '1' |
| +targets: |
| + EquipoPhone: |
| + type: application |
| + platform: iOS |
| + sources: |
| + - Sources |
| + - Assets.xcassets |
| + - path: ../PrivacyInfo.xcprivacy |
| + buildPhase: resources |
| + dependencies: |
| + - package: EquipoNative |
| + product: EquipoKit |
| + settings: |
| + base: |
| + ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon |
| + PROVISIONING_PROFILE_SPECIFIER: $(OFICINA_PROVISIONING_PROFILE) |
| + PRODUCT_BUNDLE_IDENTIFIER: works.oficina.equipo |
| + TARGETED_DEVICE_FAMILY: '1' |
| + GENERATE_INFOPLIST_FILE: true |
| + # "Oficina Equipo" on the Home Screen and in Spotlight; "Equipo" |
| + # inside the app (the native level-up's D2). |
| + INFOPLIST_KEY_CFBundleDisplayName: Oficina Equipo |
| + INFOPLIST_KEY_UILaunchScreen_Generation: true |
| + INFOPLIST_KEY_UISupportedInterfaceOrientations: UIInterfaceOrientationPortrait |
| + info: |
| + path: Info.plist |
| + properties: |
| + CFBundleShortVersionString: $(MARKETING_VERSION) |
| + CFBundleVersion: $(CURRENT_PROJECT_VERSION) |
| + CFBundleName: Equipo |
| + # Interface text is English in slice 1; dates and numbers follow the |
| + # reader's locale through Foundation's format styles. |
| + CFBundleLocalizations: |
| + - en |
diff --git a/native/mac-updates.json b/native/mac-updates.json| new file mode 100644 |
| index 00000000..11dfe94c |
| --- /dev/null |
| +++ b/native/mac-updates.json |
| @@ -0,0 +1,9 @@ |
| +{ |
| + "bundle_id": "works.oficina.equipo", |
| + "install": "automatic", |
| + "url_schemes": [], |
| + "localizations": ["en"], |
| + "feed_url": "https://raw.amadan.net/oficina/native-releases/main/equipo/appcast.xml", |
| + "public_ed_key": "/FxO7cZnM7P5c9ZrUPUJvpCnR65sNmrzte+I5vHarE8=", |
| + "keychain_account": "oficina" |
| +} |
diff --git a/native/scripts/build-iphone.sh b/native/scripts/build-iphone.sh| new file mode 100755 |
| index 00000000..a77fd2c4 |
| --- /dev/null |
| +++ b/native/scripts/build-iphone.sh |
| @@ -0,0 +1,16 @@ |
| +#!/bin/sh |
| +# The iPhone app. "simulator" builds unsigned for the iOS Simulator; |
| +# "device" signs for a phone with OFICINA_DEVELOPMENT_TEAM set. |
| +set -eu |
| +cd "$(dirname "$0")/../ios" |
| +xcodegen generate --quiet |
| +case "${1:-simulator}" in |
| + simulator) |
| + xcodebuild -project EquipoPhone.xcodeproj -scheme EquipoPhone -configuration Debug -sdk iphonesimulator \ |
| + -destination 'generic/platform=iOS Simulator' -derivedDataPath ../build/Phone CODE_SIGNING_ALLOWED=NO build ;; |
| + device) |
| + : "${OFICINA_DEVELOPMENT_TEAM:?set OFICINA_DEVELOPMENT_TEAM to sign for a device}" |
| + xcodebuild -project EquipoPhone.xcodeproj -scheme EquipoPhone -configuration Debug -sdk iphoneos \ |
| + -destination 'generic/platform=iOS' -derivedDataPath ../build/Phone DEVELOPMENT_TEAM="$OFICINA_DEVELOPMENT_TEAM" -allowProvisioningUpdates build ;; |
| + *) echo "usage: build-iphone.sh [simulator|device]" >&2; exit 2 ;; |
| +esac |
diff --git a/native/scripts/build-mac.sh b/native/scripts/build-mac.sh| new file mode 100755 |
| index 00000000..4ef6fb92 |
| --- /dev/null |
| +++ b/native/scripts/build-mac.sh |
| @@ -0,0 +1,10 @@ |
| +#!/bin/sh |
| +# The Mac app, bundled by rastrillo/native's bundle-mac.py: works.oficina.equipo, |
| +# "Oficina Equipo" in Finder and the Dock, "Equipo" in its menus, Sparkle |
| +# configured from mac-updates.json. Signs ad hoc unless --sign-identity says |
| +# otherwise; never notarises or publishes. |
| +set -eu |
| +cd "$(dirname "$0")/.." |
| +swift package --package-path apple resolve |
| +shared_native="${OFICINA_NATIVE_PACKAGE_PATH:-apple/.build/checkouts/native}" |
| +python3 "$shared_native/tools/bundle-mac.py" . Equipo --updates-config mac-updates.json "$@" |
diff --git a/native/scripts/check-fixtures.py b/native/scripts/check-fixtures.py| old mode 100644 |
| new mode 100755 |
diff --git a/native/scripts/check-native.sh b/native/scripts/check-native.sh| new file mode 100755 |
| index 00000000..9ee7bbed |
| --- /dev/null |
| +++ b/native/scripts/check-native.sh |
| @@ -0,0 +1,15 @@ |
| +#!/bin/sh |
| +# The native gate, on a Mac: fixtures against the API schema, the string |
| +# catalog, EquipoKit's tests, the Mac app and an unsigned iPhone Simulator |
| +# build. The proof vector's server half runs in `make test` (Go). |
| +set -eu |
| +cd "$(dirname "$0")/.." |
| +logs=build/logs; mkdir -p "$logs" |
| +python3 scripts/check-fixtures.py |
| +python3 scripts/check-strings.py |
| +swift test --package-path apple > "$logs/swift-test.log" 2>&1 || { tail -40 "$logs/swift-test.log"; exit 1; } |
| +grep -E 'Test run with .* passed' "$logs/swift-test.log" |
| +swift build --package-path apple --product EquipoMac > "$logs/mac-build.log" 2>&1 || { grep -E 'error' "$logs/mac-build.log" | head -20; exit 1; } |
| +echo "EquipoMac builds" |
| +scripts/build-iphone.sh simulator > "$logs/phone-build.log" 2>&1 || { grep -E 'error' "$logs/phone-build.log" | head -20; exit 1; } |
| +echo "EquipoPhone builds for the iOS Simulator" |
diff --git a/native/scripts/check-strings.py b/native/scripts/check-strings.py| new file mode 100755 |
| index 00000000..936d5680 |
| --- /dev/null |
| +++ b/native/scripts/check-strings.py |
| @@ -0,0 +1,44 @@ |
| +#!/usr/bin/env python3 |
| +"""Keep the string catalog whole and in Equipo's voice. |
| + |
| +scripts/strings.json is the English source (draft copy until the copy |
| +review). This writes it into the String Catalog with --write, and checks: |
| +every key the Swift sources use has English text, no text has an em dash |
| +or an exclamation mark, and the catalog matches strings.json.""" |
| +import json, re, sys |
| +from pathlib import Path |
| + |
| +native = Path(__file__).resolve().parents[1] |
| +source = json.loads((native / 'scripts/strings.json').read_text()) |
| +catalog_path = native / 'apple/Sources/EquipoKit/Resources/Localizable.xcstrings' |
| + |
| +def catalog(): |
| + return {'sourceLanguage': 'en', 'version': '1.0', 'strings': { |
| + k: {'extractionState': 'manual', 'localizations': {'en': {'stringUnit': {'state': 'translated', 'value': v}}}} |
| + for k, v in sorted(source.items())}} |
| + |
| +def used_keys(): |
| + keys = set() |
| + for f in (native / 'apple/Sources').rglob('*.swift'): |
| + text = f.read_text() |
| + for m in re.finditer(r'(?:String\(localized:|EquipoStrings\.text\()\s*"((?:[^"\\]|\\.|\\\([^)]*\))*)"', text): |
| + raw = m.group(1) |
| + # Interpolations become format specifiers: Int as %lld, the rest %@. |
| + raw = re.sub(r'\\\((count|[a-z]+\.count)\)', '%lld', raw) |
| + raw = re.sub(r'\\\((?:[^()]|\([^()]*\))*\)', '%@', raw) |
| + keys.add(raw) |
| + return keys |
| + |
| +problems = [] |
| +for k in sorted(used_keys() - source.keys()): problems.append(f'no English text for key: {k}') |
| +for k, v in source.items(): |
| + if '—' in v: problems.append(f'em dash in {k}') |
| + if '!' in v: problems.append(f'exclamation mark in {k}') |
| +if '--write' in sys.argv: |
| + catalog_path.write_text(json.dumps(catalog(), indent=2, ensure_ascii=False) + '\n') |
| +elif json.loads(catalog_path.read_text()) != catalog(): |
| + problems.append('the catalog is out of date: run native/scripts/check-strings.py --write') |
| +for p in problems: print(p) |
| +if problems: sys.exit(1) |
| +unused = sorted(source.keys() - used_keys()) |
| +print(f'{len(source)} strings, all used keys present' + (f'; unused: {unused}' if unused else '')) |
diff --git a/native/scripts/strings.json b/native/scripts/strings.json| new file mode 100644 |
| index 00000000..3a25d9b8 |
| --- /dev/null |
| +++ b/native/scripts/strings.json |
| @@ -0,0 +1,103 @@ |
| +{ |
| + "account.address": "Address", |
| + "account.device": "This device", |
| + "account.device_name": "Name", |
| + "account.sign_out": "Sign out", |
| + "account.sign_out_confirm": "Sign out of this team on this device?", |
| + "account.sign_out_footer": "Signing out removes this device from the team. You can pair it again at any time.", |
| + "account.signed_in_as": "Signed in as", |
| + "account.team": "Team", |
| + "account.team_name": "Name", |
| + "account.title": "Account", |
| + "account.until": "Signed in until", |
| + "action.sending": "Sending…", |
| + "action.set_aside": "Set aside", |
| + "action.setting_aside": "Setting aside…", |
| + "byline.asks": "asks", |
| + "byline.reports": "reports", |
| + "card.changed": "This item has changed. Check it before trying again.", |
| + "card.failed": "Couldn’t confirm that change. Try again.", |
| + "card.offline": "Couldn’t reach your team, so nothing was sent. Try again.", |
| + "card.open_on_web": "Open in Equipo on the web", |
| + "chip.needs_you": "Needs you", |
| + "composer.send": "Send", |
| + "conversation.empty": "Say what you want done. Your coordinator picks the project and tells you, and you can change it.", |
| + "conversation.placeholder": "Message", |
| + "decision.on_web": "For now you make this decision on the web, where its full context is.", |
| + "decision.untitled": "A decision", |
| + "message.coordinator_spoken %@ %@": "Coordinator, %1$@. %2$@", |
| + "message.failed": "Not sent. Try again.", |
| + "message.own_spoken %@": "You said: %@", |
| + "message.sending": "Sending…", |
| + "message.waiting": "Waiting for a connection. Try again.", |
| + "needs.count_spoken %lld": "%lld waiting for you", |
| + "needs.empty": "Questions and decisions for you appear here.", |
| + "needs.empty_title": "Nothing needs you", |
| + "pairing.approve_lede": "Approve this device in your browser. There is no password or token to paste.", |
| + "pairing.approved %@": "This device is paired with %@.", |
| + "pairing.approved_title": "Paired", |
| + "pairing.bad_team": "That is not a team address. Check it and try again.", |
| + "pairing.cancel": "Cancel", |
| + "pairing.continue": "Continue", |
| + "pairing.ended %@": "%@ ended this device’s session. Pair it again to continue.", |
| + "pairing.expired": "The code expired. Pair again for a new one.", |
| + "pairing.failed": "Couldn’t pair this device. Try again.", |
| + "pairing.not_equipo": "There is no Equipo team at that address.", |
| + "pairing.offline": "Couldn’t reach that address. Check your connection and try again.", |
| + "pairing.open_browser": "Open your team to approve", |
| + "pairing.pair": "Pair this device", |
| + "pairing.requesting": "Asking your team for a code…", |
| + "pairing.shown_as %@": "Shown in your browser as %@", |
| + "pairing.slow_down": "Too many tries. Wait a minute and try again.", |
| + "pairing.team_hint": "The address you open Equipo at in your browser.", |
| + "pairing.team_label": "Team address", |
| + "pairing.team_placeholder": "team.equipo.oficina.works", |
| + "pairing.title": "Pair with your team", |
| + "pairing.waiting": "Waiting for you to approve. The code lasts 10 minutes.", |
| + "pairing.welcome_lede": "Talk to your coordinator, answer questions and follow your team’s work from this device.", |
| + "pairing.welcome_title": "Equipo", |
| + "pairing.your_code": "Your code", |
| + "project.spoken %@": "Project %@", |
| + "question.answer_placeholder": "Answer", |
| + "question.answered %@": "You answered: %@", |
| + "question.closed": "This question is no longer open.", |
| + "question.loading": "Loading the question…", |
| + "specialist.checks": "Checks", |
| + "specialist.coordinator": "Coordinator", |
| + "specialist.copy": "Copy", |
| + "specialist.design": "Design", |
| + "specialist.engineering": "Engineering", |
| + "specialist.research": "Research", |
| + "specialist.review": "Review", |
| + "tab.conversation": "Conversation", |
| + "tab.needs": "Needs you", |
| + "tab.tasks": "Tasks", |
| + "task.cancelled": "Cancelled", |
| + "task.done": "Done", |
| + "task.hide_talk": "Hide the talk", |
| + "task.missing": "This task is not available.", |
| + "task.needs_you": "Needs you", |
| + "task.not_started": "Not started", |
| + "task.open_hint": "Opens the task", |
| + "task.open_web": "Open on the web", |
| + "task.reply": "Reply", |
| + "task.step_failed %@": "%@ stopped", |
| + "task.step_running %@": "%@ is working", |
| + "task.step_waiting %@": "%@ is waiting", |
| + "task.steps": "Steps", |
| + "task.talk": "Talk about this", |
| + "task.thread_empty": "Nothing has been said about this task yet.", |
| + "task.title": "Task", |
| + "task.usage": "Used so far", |
| + "tasks.empty": "Tasks you and your team ask for appear here.", |
| + "tasks.empty_title": "No tasks yet", |
| + "tasks.finished": "Finished", |
| + "tasks.in_progress": "In progress", |
| + "tasks.needs_you": "Needs you", |
| + "thread.own_spoken %@": "You said: %@. Sent", |
| + "thread.reading %@": "%@ is reading", |
| + "thread.sent": "Sent", |
| + "usage.calls": "Calls", |
| + "usage.tokens_in": "Tokens in", |
| + "usage.tokens_out": "Tokens out" |
| +} |