Skip to content

Generate for Apple Project

wiki de pasquale edited this page Aug 22, 2022 · 3 revisions

Navigate to your Target, then Build Phases and create a new Run Script phase. Move the phase above compilation. Enter the following:

GoogleSheetID="<sheet-id>"
GoogleSheet="<sheet-name>"
GoogleSpreadsheet="https://docs.google.com/spreadsheets/d/$GoogleSheetID/gviz/tq?tqx=out:csv&sheet=$GoogleSheet"
OutputDirectory="shared/resources"

## Download a CSV
wget -q -O keys.csv -c $GoogleSpreadsheet

## Update generate translation files
./dragapultw generate -i keys.csv -s csv -o $OutputDirectory -t apple

Download dragapultw and place it to the root of your project.

Don't forget to move resources directory to the Project Navigator and create Group References.

Clone this wiki locally