How to implement the new localization?

Asked on 06/16/2025

1 search

To implement the new localization features presented at WWDC, you can follow the steps outlined in the session "Code-along: Explore localization with Xcode" (wwdc2025-225). Here are some key points from the session:

  1. Setting Up Localization: Start by adding a string catalog to your project. This can be done through the File menu in Xcode. The string catalog helps manage localizable strings and keeps them in sync with your code.

  2. Using String Catalogs: Xcode now supports two workflows for managing strings: extracting them from code and referencing them with a type-safe API. For new projects, symbol generation is enabled by default, allowing you to access localized strings using generated symbols.

  3. Providing Context for Translators: It's important to provide context for translators to ensure high-quality translations. This can be done by adding comments directly in the code or in the string catalog's comment column.

  4. Managing Complexity: As your project grows, you might need to manage multiple string catalogs across different frameworks or Swift packages. Xcode provides features to help organize and manage these complexities.

  5. Testing Localization: You can test your app in different languages by changing the app's language in the Scheme editor. This allows you to see how your app looks and functions in various localizations.

For a detailed walkthrough, you can refer to the session Code-along: Explore localization with Xcode (00:00:00).

How to implement the new localization? | Ask WWDC