Importing Localization Keys

Follow these steps to import and configure localization keys using Localizer Studio:

Step 1: Select Project Folder

Start by selecting the root folder of your Xcode project that contains the Swift source files.

Step 2: Choose Localization Base Folder

Select the folder that contains all your language directories (e.g., en.lproj, fr.lproj, etc.).

If you need to add a new language, simply type the language abbreviation (e.g., es for Spanish).

Step 3: Specify Localization File Name

Enter the name of the localization file. By default, this is Localizable.strings.

Step 4: Define Pattern for String Extraction

Provide an example of how your localization keys are used in code (e.g., NSLocalizedString("key", comment: "")).

Localizer Studio will use this to generate a matching pattern for string extraction. You can add multiple usage examples or define your own pattern.

Optional: Include Comments

You may choose to include comments from your code in the extraction results to provide context for translators.

Once configured, click “Run Ectraction” to extract the keys and begin managing your localization process more efficiently.

Screenshot Example

The following screenshot illustrates the basic import steps within the Localizer Studio interface:

Screenshot showing how to import localization keys in Localizer Studio