Skip to content

i18n(zh): fill missing zh-Hans/zh-Hant strings for Media settings and welcome prompts - #2623

Open
thedavidweng wants to merge 1 commit into
osaurus-ai:mainfrom
thedavidweng:i18n/zh-hans-media-welcome
Open

i18n(zh): fill missing zh-Hans/zh-Hant strings for Media settings and welcome prompts#2623
thedavidweng wants to merge 1 commit into
osaurus-ai:mainfrom
thedavidweng:i18n/zh-hans-media-welcome

Conversation

@thedavidweng

Copy link
Copy Markdown

Summary

Fills zh-Hans/zh-Hant translations for UI strings that were referenced in code but missing from Packages/OsaurusCore/Resources/Localizable.xcstrings (absent keys or empty stubs), so they silently fell back to English on a Chinese system language. Follow-up discussion issues: #2621 (Thinking key split), #2622 (CI visibility for untranslated keys).

Changes

  • Behavior change
  • UI change (screenshots below)
  • Refactor / chore
  • Tests
  • Docs

Single-file change, translation data only, no Swift touched:

  • Media tab: Media title, header subtitle (+ %lld on-device variant), Image generation model / Text-to-video model / Image-to-video model rows, Video Jobs section (title, blurb, permission hint), Venice hint, empty-state strings
  • Welcome screen: What can Osaurus do? and Create an agent quick-action chips, including the prompts they send
  • zh-Hans/zh-Hant fully translated; de/ko/ru filled with English needs_review fallback per repo convention so check.sh stays green

Test Plan

bash scripts/i18n/check.sh
# Localizable.xcstrings: OK (7171 keys, locales: de, zh-Hans, ko, ru)
# InfoPlist.xcstrings: OK (13 keys, locales: de, zh-Hans, ko, ru)
# Swift localization keys referenced: OK (3443)
# Localization lint: OK (0 suspect literals)

(stale-key warnings are pre-existing: 869 / 1, untouched by this PR).
Manual: set system language to Simplified/Traditional Chinese, open Settings → Media and the welcome screen, confirm no English remnants in the listed rows.

Screenshots

Before: Media settings showed English subtitle + Image generation model / Text-to-video model / Image-to-video model rows and Media title; welcome screen showed English What can Osaurus do? / Create an agent chips (reported with screenshots). After: all listed strings render in Chinese. After-screenshots to be attached on request (string-only change, verified via catalog + preview).

Checklist

  • I have read CONTRIBUTING.md
  • I added/updated tests where reasonable (scripts/i18n/check.sh coverage + Swift-key cross-check + literal lint, all passing)
  • I updated docs/README as needed (no behavior/config change, none needed)
  • I verified build on macOS with Xcode 16.4+ (catalog-data-only change, no Swift touched; leaving the full build to CI)

… welcome prompts

Keys referenced via L()/LocalizedStringKey but missing from the catalog
or left as empty stubs silently fell back to English:

- Media tab: Media title, header subtitle (+ %lld variant),
  Image/Text-to-video/Image-to-video generation model rows,
  Video Jobs section, Venice hint, empty-state strings
- Welcome screen: What can Osaurus do? / Create an agent chips
  (labels and the prompts they send)

zh-Hans/zh-Hant translated; de/ko/ru/es/ja left as needs_review
English fallback per repo convention. Validated with
bash scripts/i18n/check.sh (coverage, Swift-key cross-check,
literal lint all pass).
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.

1 participant