💬 nstack-localizations-generator

(Formerly nstack-translations-manager)

No more string keys, strongly typed translations are the way!

A tool to generate localizations from NStack API.

GitHub license Plaform

📦 How does it work

TODO: Elaborate

Since Swift frameworks unfortunately can't be used inside other frameworks, this project has a special structure to be able to generate one executable, which is wrapped in a bundle. Check out this great article by Alsey Miller on how this works.

However, this makes it even more portable because you need to copy a single file.

🔧 Setup

TODO: Improve

  1. In your Xcode project (build phases) add New Run Script Phase and drag it before Compile Sources phase
  2. Put in the script below and change your project specific IDs and Paths
  3. Go to the latest release and download the nstack-localizations-generator.bundle.zip, unzip it and copy it to ${SRCROOT}/${TL_PROJ_ROOT_FOLDER}/Resources/NStack/. This will be referenced from the build script, so the location has to match the one in the script.
  4. Everytime you do Clean and then Build, your translations will be fetched and models generated

You can find the localizations run script here.

👥 Credits

Made with ❤️ at Nodes.

📄 License

nstack-translations-generator is available under the MIT license. See the LICENSE file for more info.