Skip to content

πŸ‘©πŸ»β€πŸ’» πŸ§‘πŸ½β€πŸ’» Subscribe and Read us on Substack to Get Full Access to Our Posts


Testing Localizations in SwiftUI

To ensure that all localized content functions correctly across different settings, you should test your app in each language and region you plan to support. This is crucial because it allows you to verify that all translations appear correctly and that the app behaves as expected in different cultural contexts.

Selecting a Language and Region in the Run Scheme

  1. Open your project in Xcode and navigate to Product > Scheme > Edit Scheme.
  2. In the scheme editor that appears, select the Run action from the sidebar on the left.
  3. Go to the Options tab on the right side.
  4. Under the Application Language dropdown, select the language in which you want to run your app.
  5. Under the Application Region dropdown, select the specific region you want to test. You can choose from:
    • System Region – Uses the operating system’s region settings.
    • [Development Region] – Defaults to the region you’re developing the app in.
    • [Specific Region] – Allows you to choose from a list of all available regions, organized by continent.
  6. After setting your preferences, click Close to save the changes and dismiss the dialog.
  7. Run your app by clicking the Run button in the toolbar to see your app in the chosen language and region settings.
Back To Top
Search