Hi @georeith, I’ve run into exactly the same issue you are dealing with. What is working for me so far is converting json files into csv files, then you can use “schema” property in the yaml file to correctly upload this csv into crowdin.
So steps are:
- formatjs extract --crowdin format
You will get your files in this format:
{
"someKey": {
"description": "Some description",
"message": "Some source string"
},
...
}
- Write node script using “csv-stringify” to convert json into csv with this structure
identifier,source_or_translation,context
someKey,Some source string,Some description
- Update your crowdin.yml to include something like this:
files: [
{
"source": "extracted.csv",
"first_line_contains_header": true,
"scheme": "identifier,source_or_translation,context"
}
]
Finally you may use crowdin-cli to upload these string into crowdin.
For downloading strings in a react-intl format you can then use JSON Exporter with object-shape configuration.