You can see in the output that although I specify the group android_existing - it brings down my xcstrings files which were uploaded with the iOS group.
my Localazy.json is:
{
"writeKey": "a6992734785030821259-fe781e760c5625624cfb28c7e9cde28792c8cc7245441e53cbdc368cf3b22924",
"readKey": "a6992734785030821259-c0e236093559b7d0ff0475e3bee1d66e09db05977f975adc8804a918d3585bea",
"upload": {
"files": [
{
"type": "android",
"group": "android_source",
"pattern": "app/src/main/res/values/strings.xml",
"lang": "en",
"file": "strings.xml"
},
{
"type": "android",
"group": "android_existing",
"pattern": "app/src/main/res/values-*/strings.xml",
"lang": "${autodetectLang}",
"file": "strings.xml"
}
]
},
"download": {
"files": [
{
"group": "android_existing",
"output": "app/src/main/res/values-${lang}/strings.xml",
"stop": true
}
]
},
"transformations": []
}
and the output is…
❯ localazy download android_existing -s
Localazy CLI, v2.0.7
Command-line tool for the Localazy platform.
Read more information at https://localazy.com/docs/cli
Downloading data...
Data downloaded.
-----
File: SeriesLocalizations.xcstrings [xx]
- path: (empty)
- type: xcstrings ios json
Writing file ./app/src/main/res/values-xx/strings.xml...
-----
File: strings.xml [zh-Hans]
- path: (empty)
- type: android xml upload
Writing file ./app/src/main/res/values-zh-Hans/strings.xml...
-----
File: strings.xml [ar]
- path: (empty)
- type: android xml upload
Writing file ./app/src/main/res/values-ar/strings.xml...
-----
File: strings.xml [en]
- path: (empty)
- type: android xml upload
Skipping the source language `en`. It's not included by option `download.includeSourceLang`.
-----
File: strings.xml [hu]
- path: (empty)
- type: android xml upload
Writing file ./app/src/main/res/values-hu/strings.xml...
-----
File: strings.xml [it]
- path: (empty)
- type: android xml upload
Writing file ./app/src/main/res/values-it/strings.xml...
-----
File: strings.xml [ja]
- path: (empty)
- type: android xml upload
Writing file ./app/src/main/res/values-ja/strings.xml...
-----
File: strings.xml [ko]
- path: (empty)
- type: android xml upload
Writing file ./app/src/main/res/values-ko/strings.xml...
-----
File: strings.xml [nb]
- path: (empty)
- type: android xml upload
Writing file ./app/src/main/res/values-nb/strings.xml...
-----
File: strings.xml [pl]
- path: (empty)
- type: android xml upload
Writing file ./app/src/main/res/values-pl/strings.xml...
-----
File: strings.xml [pt-BR]
- path: (empty)
- type: android xml upload
Writing file ./app/src/main/res/values-pt-BR/strings.xml...
-----
File: strings.xml [ru]
- path: (empty)
- type: android xml upload
Writing file ./app/src/main/res/values-ru/strings.xml...
-----
File: strings.xml [sv]
- path: (empty)
- type: android xml upload
Writing file ./app/src/main/res/values-sv/strings.xml...
-----
File: strings.xml [tr]
- path: (empty)
- type: android xml upload
Writing file ./app/src/main/res/values-tr/strings.xml...
-----
File: strings.xml [es-419]
- path: (empty)
- type: android xml upload
Writing file ./app/src/main/res/values-es-419/strings.xml...
-----
File: strings.xml [fr]
- path: (empty)
- type: android xml upload
Writing file ./app/src/main/res/values-fr/strings.xml...
-----
File: strings.xml [de]
- path: (empty)
- type: android xml upload
Writing file ./app/src/main/res/values-de/strings.xml...
-----
File: RoutineLocalizations.xcstrings [xx]
- path: (empty)
- type: xcstrings ios json
Writing file ./app/src/main/res/values-xx/strings.xml...
-----
File: Localizable.xcstrings [xx]
- path: (empty)
- type: xcstrings ios json
Writing file ./app/src/main/res/values-xx/strings.xml...
-----
File: ExerciseLocalizations.xcstrings [xx]
- path: (empty)
- type: xcstrings ios json
Writing file ./app/src/main/res/values-xx/strings.xml...
-----
File: RoutineAutoCompleteSuggestions.xcstrings [xx]
- path: (empty)
- type: xcstrings ios json
Writing file ./app/src/main/res/values-xx/strings.xml...
=========== WARNING, FILES OVERWRITTEN ============
You are attempting to store several downloaded files to the same target file.
This is usually undesired behavior caused by misconfigured download section.
Problem detected for `app/src/main/res/values-xx/strings.xml` being target for:
- lang=xx, file=SeriesLocalizations.xcstrings, type=xcstrings
- lang=xx, file=RoutineLocalizations.xcstrings, type=xcstrings
- lang=xx, file=Localizable.xcstrings, type=xcstrings
- lang=xx, file=ExerciseLocalizations.xcstrings, type=xcstrings
- lang=xx, file=RoutineAutoCompleteSuggestions.xcstrings, type=xcstrings
===================================================