(Formerly nstack-translations-manager)
No more string keys, strongly typed translations are the way!
A tool to generate localizations from NStack API.
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.
TODO: Improve
- In your Xcode project (build phases) add New Run Script Phase and drag it before Compile Sources phase
- Put in the script below and change your project specific IDs and Paths
- 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. - Everytime you do Clean and then Build, your translations will be fetched and models generated
You can find the localizations run script here.
Made with ❤️ at Nodes.
nstack-translations-generator is available under the MIT license. See the LICENSE file for more info.