project to load one set of files: horizon for the web app, or auth for the login pages. Omit it, or send all, to load both. For each key in a file:common when common lacks the key.auth files: left alone, so the web app's text wins on shared keys.horizon, translator descriptions are also loaded, for keys that already exist. Only files named like en.json or en-US.json are read.success: false inside projects, with 200. The change is accepted and applied shortly after this response, so a read made immediately after can still show the old value.project returns 400 with the list of valid names.Authorization: Bearer ********************curl --location 'https://awqacore01.crexendocloud.com/ns-api/v2/translations/sync-filesystem' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'{
"success": true,
"projects": {
"horizon": {
"success": true,
"translations_path": "/opt/app/web/locales/",
"descriptions_path": "/opt/app/web/locales/descriptions/",
"locales": {
"en-US": {
"success": true,
"file_path": "/opt/app/web/locales/en-US.json",
"summary": {
"total_keys": 1317,
"added": 2,
"updated": 1,
"unchanged": 1300,
"skipped_user_customized": 14,
"skipped_secondary": 0
},
"changes": [
{
"namespace": "common",
"key": "SEARCH_TRANSLATIONS",
"action": "added",
"value": "Search translations..."
},
{
"namespace": "common",
"key": "SET_ACTIVE",
"action": "added",
"value": "Set Active"
},
{
"namespace": "settings",
"key": "TIME_ZONE_LABEL",
"action": "updated",
"old_value": "Timezone",
"new_value": "Time zone"
}
],
"descriptions": {
"success": true,
"file_path": "/opt/app/web/locales/descriptions/en-US.json",
"summary": {
"total_keys": 69,
"updated": 1,
"not_found": 0,
"skipped": 0
}
}
}
}
}
},
"totals": {
"total_keys": 1317,
"added": 2,
"updated": 1,
"unchanged": 1300,
"skipped_user_customized": 14,
"skipped_secondary": 0
}
}