I have source files in two different folders, and I want the downloaded translations to be placed the same folder the corresponding source file is located in.
From reading the documentation, I understand that we can use groups to filter download rules. I couldn’t find a clear clear code example of doing that in the documentation, but I tried to accomplish that this way:
"upload": {
"files": [
{
"type": "ios-strings",
"pattern": "App/en.lproj/Localizable.strings"
},
{
"type": "ios-stringsdict",
"pattern": "App/en.lproj/Localizable.stringsdict"
},
{
"type": "ios-strings",
"group": "screenshots",
"pattern": "fastlane/screenshots/en-US/title.strings"
}
]
},
"download": {
"files": [
{
"group": "screenshots",
"stop": true,
"output": "fastlane/screenshots/${lang}/${file}"
},
"App/${iosLprojFolder}/${file}"
]
}
}
When I run localazy download
, all the translated files go into the App
folder. Am I doing something wrong here?