Communitygithub.com

iOS 本地化與資源管理標準

定義字串目錄、本地化 (L10n) 與資源管理的標準。在需要為 iOS 專案加入多語言支援,或處理字串目錄與資源管理流程時使用。

iOS 本地化與資源管理標準 是什麼?

此技能為 iOS 開發者提供了一套完整的本地化 (L10n) 與資源管理標準。它明確指出使用 Xcode 15+ 的字串目錄 (.stringcatalog) 作為主要的本地化工具,並鼓勵採用現代化的 `String(localized:)` 或 `LocalizedStringResource` 來取代傳統的 `NSLocalizedString`。在資源管理方面,技能強調使用資產目錄 (.xcassets) 來組織圖片、SF Symbols 與向量圖形,以維護一致性和可及性。技能也明確列出反模式,例如不應在程式碼中硬編碼字串、不允許在版本庫中存放零散的 PNG/JPG 檔案,以及確保字串目錄的翻譯覆蓋率達到 100%。此標準適用於所有使用 Xcode 開發 iOS 應用的團隊,特別是在需要新增或管理多語言支援、維護資源檔案時,能幫助開發者遵循業界最佳實務,減少後續維護成本。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/ComeOnOliver/skillshub/tree/HEAD/skills/HoangNguyen0403/agent-skills-standard/ios-localization

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

iOS 本地化與資源管理標準 是做什麼的?

優先級:P1

實作指南

本地化 (L10n)

  • 字串目錄 (.stringcatalog):在 Xcode 15+ 中作為主要的本地化工具。它提供可視化編輯器,並在編譯時檢查遺漏的翻譯。
  • 原生實作:使用 String(localized: "key") 或 LocalizedStringResource。盡可能避免手動使用 NSLocalizedString。
  • 複數規則:使用字串目錄內建的複數支援,避免撰寫複雜的複數邏輯。
  • 格式化:對日期、數字和貨幣使用 Formatted API,以尊重使用者的語言區域設定。

資源管理

  • 資產目錄 (.xcassets):保持資源檔案有組織。對於大型專案,啟用資料夾的「提供命名空間」功能。
  • SF Symbols:使用標準圖示以確保一致性和無障礙性。
  • 向量資源:使用 PDF 或 SVG,並啟用「保留向量資料」以獲得解析度無關性。

最佳做法

  • 硬編碼字串:切勿在 UI 中使用硬編碼字串。每個向使用者顯示的字串都必須進行本地化。
  • 基底套件:在新增其他語言之前,確保 Base 本地化已完成。

反模式

  • 不要手動拼接貨幣符號:請使用 NumberFormatter 或 .formatted(.currency)。
  • 不要將零散的 png/jpg 檔案放在版本庫中:一律使用資產目錄。
  • 不要遺留佔位字串:確保字串目錄的翻譯覆蓋率達到 100%。

參考資料

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

ComeOnOliver/skillshub

Create stunning, animation-rich HTML presentations from scratch or by converting PowerPoint files. Use when the user wants to build a presentation, convert a PPT/PPTX to web, or create slides for a talk/pitch. Helps non-designers discover their aesthetic through visual exploration rather than abstract choices.

ComeOnOliver/skillshub

Next.js 16+ 和 Turbopack — 增量打包、文件系统缓存、开发速度,以及何时使用 Turbopack 与 webpack。

ComeOnOliver/skillshub

SwiftUI architecture patterns, state management with @Observable, view composition, navigation, performance optimization, and modern iOS/macOS UI best practices.

ComeOnOliver/skillshub

See, Understand, Act on video and audio. See- ingest from local files, URLs, RTSP/live feeds, or live record desktop; return realtime context and playable stream links. Understand- extract frames, build visual/semantic/temporal indexes, and search moments with timestamps and auto-clips. Act- transcode and normalize (codec, fps, resolution, aspect ratio), perform timeline edits (subtitles, text/image overlays, branding, audio overlays, dubbing, translation), generate media assets (image, audio, video), and create real time alerts for events from live streams or desktop capture.

ComeOnOliver/skillshub

AI-assisted video editing workflows for cutting, structuring, and augmenting real footage. Covers the full pipeline from raw capture through FFmpeg, Remotion, ElevenLabs, fal.ai, and final polish in Descript or CapCut. Use when the user wants to edit video, cut footage, create vlogs, or build video content.

ComeOnOliver/skillshub

Next.js 15 애플리케이션을 위한 프론트엔드 개발 가이드라인. React 19, TypeScript, Shadcn/ui, Tailwind CSS를 사용한 모던 패턴. Server Components, Client Components, App Router, 파일 구조, Shadcn/ui 컴포넌트, 성능 최적화, TypeScript 모범 사례 포함. 컴포넌트, 페이지, 기능 생성, 데이터 페칭, 스타일링, 라우팅, 프론트엔드 코드 작업 시 사용.

ComeOnOliver/skillshub

Provides Tamagui patterns for config v4, compiler optimization, styled context, and cross-platform styling. Must use when working with Tamagui projects (tamagui.config.ts, @tamagui imports).

ComeOnOliver/skillshub

Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.

ComeOnOliver/skillshub

Create high-converting, visually distinctive landing pages. Use when building marketing pages, product launches, SaaS homepages, or any single-page conversion-focused website. Guides section-by-section composition with anti-AI-slop principles.

ComeOnOliver/skillshub

Auto-loaded context for Portfolio Buddy 2 development. Use for ANY task involving: React 19 development, TypeScript, portfolio analysis features, metrics calculations, trading strategy comparison, or working with the Portfolio Buddy 2 codebase. Contains tech stack, known issues, and architectural constraints.

ComeOnOliver/skillshub

Next.js development tooling via MCP. Inspect routes, components, build info, and debug Next.js apps. Use when working on Next.js applications, debugging routing, or inspecting app structure. NOT for general React or non-Next.js projects.

ComeOnOliver/skillshub

Implement UI using Shadcn MCP (atoms/theme) and 21st.dev MCP (complex sections). Use when adding buttons, layouts, or generating landing pages.

ComeOnOliver/skillshub

A conceptual skill for building an API client in Next.js that handles JWT tokens

ComeOnOliver/skillshub

Best practices and patterns for Next.js App Router, Server Actions, and Routing in this project.

ComeOnOliver/skillshub

The Design System, Theme, and UX rules for the Physical AI Hub.

ComeOnOliver/skillshub

Comprehensive frontend development skill for building modern, performant web applications using ReactJS, NextJS, TypeScript, Tailwind CSS. Includes component scaffolding, performance optimization, bundle analysis, and UI best practices. Use when developing frontend features, optimizing performance, implementing UI/UX designs, managing state, or reviewing frontend code.

ComeOnOliver/skillshub

This document captures learnings from fixing keyboard navigation issues when floating components (Select, DropdownMenu, Popover) have CSS open/close animations.

ComeOnOliver/skillshub

Build Next.js 16 applications with correct patterns and distinctive design. Use when creating pages, layouts, dynamic routes, upgrading from Next.js 15, or implementing proxy.ts. Covers breaking changes (async params/searchParams, Turbopack, cacheComponents) and frontend aesthetics. NOT when building non-React or backend-only applications.

ComeOnOliver/skillshub

Comprehensive Framer Motion animation library for React. Covers motion components, variants, gestures, page transitions, and scroll animations. Use when adding animations to React/Next.js applications.

ComeOnOliver/skillshub

Build interfaces that resonate, not just render. This skill enforces bold, intentional

相關技能