Skip to main content
Upload local template translation JSON files to a workspace. Reads all .json files from the input directory and pushes them. Use --commit=true to also finalize the changes immediately, or use the translation commit command separately.

Syntax

suprsend translation push [flags]

Flags

FlagDescriptionDefault
-h, --helpShow help for the command
-c, --commit stringPromote changes from draft to live after pushing (true/false)false
-m, --commit-message stringMessage describing the changes being committed
-d, --dir stringDirectory containing translation JSON files./suprsend/translation
-j, --json stringTranslations as a JSON object mapping locale codes (without .json extension) to their translation content objects

Example

# Push translations from default directory
suprsend translation push

# Push translations from custom directory
suprsend translation push --dir dev-environment/translations

# Push translations and commit them
suprsend translation push --commit=true --commit-message "Updated French translations"

# Push translations to production workspace
suprsend translation push --workspace production

# Push translations inline via JSON
suprsend translation push --json '{"en":{"key":"value"},"fr":{"key":"valeur"}}'