Localization of App Using String Catalogs - Storyboard

Hi everyone! I want to localize my swift application, which uses Storyboard, using String Catalogs. I have watched several tutorial videos about localization, however, it uses SwiftUI.

I have tried localizing my storyboard through .string and migrating it to String Catalogs and it worked. (Example codes are attached below)

But in the tutorials, String Catalogs extraction works when you build the project. But if you are using storyboard, I think it is not possible? or are there any other ways to extract the strings from storyboard using string catalogs directly and not using .strings and migration?

This also makes me wonder if the Vary by Plural will work with the method that I did.

Thank you so much in advance! Have a nice day ahead!

Sample Codes from .strings (storyboard):

/* Class = "UITextField"; placeholder = "Enter Password"; ObjectID = "08D-xr-4ke"; */ "08D-xr-4ke.placeholder" = "Enter Password";

/* Class = "UIButton"; configuration.title = "Login"; ObjectID = "2gQ-cX-5nH"; */ "2gQ-cX-5nH.configuration.title" = "Login";

Migrating it to String Catalogs:

key : 08D-xr-4ke.placeholder

English(en): Enter Password

comment: /* Class = "UIButton"; configuration.title = "Login"; ObjectID = "2gQ-cX-5nH"; */

Interface Builder files such as storyboards are supported by String Catalogs.

You have already discovered the migration flow, but you can also do this from the start:

  1. Create a storyboard or xib file
  2. Hit Localize… in the file inspector
  3. Ensure the "Use String Catalog" checkbox is checked and click Localize.
  4. Expand the file in the file navigator to reveal the String Catalog

Regardless of whether you got here by migration or by the above flow, String Catalogs associated with IB files will also update every time you build, just like when using SwiftUI.

Localization of App Using String Catalogs - Storyboard
 
 
Q