Generate App with multi language support with Tuist

988 Views Asked by At

my app, which i am setting up with tuist, is supposed to support localization. how can I configure this in the tuist project?

1

There are 1 best solutions below

1
Søren Gregersen On

In your Resources folder for the target, you can create multiple folders with the locale name like this:

  • Resources/
    • Base.lproj/
      • Localizable.strings
    • da.lproj/
      • Localizable.strings
    • pl.lproj/
      • Localizable.strings

When setting up your target in the Project.swift file in Tuist, you specify the resources path like .., resources: "Resources/**"... Tuist will then make sure the Xcode project is generated with the proper languages set up.