Skip to content

feat: add Spanish (es) localization - #228

Open
c0detamer wants to merge 1 commit into
aws-amplify:mainfrom
c0detamer:feat/spanish-localization
Open

feat: add Spanish (es) localization#228
c0detamer wants to merge 1 commit into
aws-amplify:mainfrom
c0detamer:feat/spanish-localization

Conversation

@c0detamer

Copy link
Copy Markdown

Description

Adds Spanish localization support to the FaceLiveness package. Spanish-speaking users will see all liveness check UI strings in Spanish automatically when their device language is set to Spanish — no changes required from app developers.

Changes

  • Added Sources/FaceLiveness/Resources/es.lproj/Localizable.strings with Spanish translations for all 38 UI strings
  • Updated Package.swift to declare es.lproj as a processed resource so SPM bundles it at build time

How it works

The existing NSLocalizedString/Bundle.module lookup in String+Localizable.swift already handles locale selection automatically. iOS falls back to Base.lproj (English) for any non-Spanish locale or missing key — no Swift source changes were needed.

Testing

  • All 38 keys in es.lproj match exactly the keys in Base.lproj — no missing or extra keys
  • Existing English behavior is unaffected; Base.lproj/Localizable.strings is unchanged

Checklist

  • Spanish translations cover all existing localization keys
  • Base.lproj/Localizable.strings is unmodified
  • Package.swift builds without errors
  • Tested on a Spanish-locale device/simulator

@c0detamer
c0detamer requested review from a team as code owners April 27, 2026 13:44
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.

2 participants