localization

Generate .strings files and implement dynamic language switching for Swift apps.

32|10|Updated Feb 21, 2026
One-click install
npx skills add https://github.com/moasq/nanowave --skill localization-moasq
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: localization
Source: https://github.com/moasq/nanowave/tree/main/internal/orchestration/skills/features/localization
Command: npx skills add https://github.com/moasq/nanowave --skill localization-moasq

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the complexities of internationalizing applications, ensuring a seamless user experience across different languages and regions by managing string localization, layout direction, and locale-aware formatting.

Core Features & Use Cases

  • .strings File Generation: Automatically creates and manages .strings files for multiple languages, using English string literals as keys.
  • RTL/LTR Layout Support: Ensures correct layout directionality for both left-to-right and right-to-left languages.
  • Language Switching: Implements dynamic language switching within the app without requiring a restart.
  • Locale-Aware Formatting: Handles dates, numbers, and currency according to user's locale settings.
  • Use Case: Integrate this Skill when developing an app that needs to support users in both English and Arabic, ensuring all text is translated correctly and the UI adapts to right-to-left layouts for Arabic speakers.

Quick Start

Use the localization skill to add Arabic language support to the app, generating the necessary .strings files and configuring the root view for language switching.

Frequently Asked Questions about localization

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate .strings files for multiple languages in a Swift app?

Generating .strings files for Swift internationalization involves automatically creating and managing files for multiple languages using English string literals as translation keys. This process ensures text is properly mapped for each supported locale.

How do I implement dynamic language switching in SwiftUI without restarting the app?

Dynamic language switching in SwiftUI is achieved by configuring the root view for language changes and explicitly setting environment locales. This allows the app to update translations immediately without requiring a restart.

How do I configure RTL layout direction for right-to-left languages in SwiftUI?

Configuring RTL layout direction in SwiftUI requires explicit configuration of environment layout directions to ensure correct directionality. This guarantees the UI adapts properly for right-to-left languages like Arabic.

How do I handle locale-aware formatting for dates, numbers, and currency in Swift?

Locale-aware formatting in Swift handles dates, numbers, and currency according to the user's locale settings. This ensures region-specific data displays correctly without manual formatting logic.

Why does my SwiftUI localization fail with runtime errors when using string literals?

SwiftUI localization runtime errors often occur due to improper string literal usage. Adhering to strict rules for string literal usage and ensuring explicit environment locale configuration prevents these runtime crashes.

Does this localization approach support RTL and LTR layouts simultaneously?

This localization approach supports both RTL and LTR layout directionality simultaneously. It automatically ensures correct layout directionality based on the active language, accommodating both left-to-right and right-to-left languages.