Skip to content

baraley/LocoScript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation:

  1. File > Swift Packages > Add Package Dependency
  2. Add https://github.com/baraley/LocoScript.git
  3. Set Dependency Rule to Branch and enter main as the branch name
  4. In Add to Target column, select None, if the option is available
Screenshot 2023-08-30 at 11 25 33
  1. Select the new LocoScript scheme in the toolbar  Screenshot 2023-09-07 at 10 45 38

  2. Go to Edit Scheme: Click on LocoScript scheme and select Edit Scheme

  3. Go to Run phase and select the Options tab. In Working Directory field, check Use custom working directory toggle and enter the path of root directory, the one where the script will perform in. Usually it's the root folder of the project

Screenshot 2023-08-30 at 10 55 49
  1. Find the hidden .locoConfig file in the root folder of the Package and copy it to the folder selected on the previous step
  2. Open the .locoConfig file and set locoAPIKey and tags fields with your values. In tags dictionary key represents a tag name, and the value represents the destination folder where the strings should be saved to
Screenshot 2023-09-07 at 11 14 45

*APIKey could be created here:

Screenshot 2023-08-30 at 07 50 27
  1. Select your Mac as a Run Destination
Screenshot 2023-09-07 at 11 30 38
  1. Run the script and wait until it print: ✅ Loco script did finish

About

Swift Package that helps to load iOS localization strings from localise.biz

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages