Skip to content

Releases: Smartling/smartling-cli

2.5

05 Sep 14:42

Choose a tag to compare

Changed

  • Updated documentation formatting for better readability
  • Enhanced command documentation (#81)
  • Upgraded Cobra CLI to version v1.10.1.

New Features

  • Generated Markdown documentation optimized for large language models (LLMs).

2.4.1

25 Aug 21:01
1ccdf51

Choose a tag to compare

What's Changed

  • Override file type implemented in #87

2.4

18 Aug 19:23
0ee9071

Choose a tag to compare

2.4

Bug Fixes

  • Updated a list of supported file types. Additionally, improved file type handling for the mt and file commands. (#86)

2.3

08 Aug 15:43
f934889

Choose a tag to compare

2.3

Bug Fixes

  • Fixed the files push command to support file upload directives.

2.2

21 Jul 15:01

Choose a tag to compare

2.2

New Features

Job-based File Uploads: The files push command now uploads all files as part of a Smartling Job by default. This provides better organization and workflow management for translation projects.

Learn more about Smartling Jobs:

Breaking Changes

The files push command includes one new flag and two updated flags:

New Flag

  • -j, --job <job name> - Specifies the Smartling translation job name or job UID. All files upload to this job. If not specified, defaults to "CLI uploads".

Updated Flags

  • -z, --authorize - Automatically authorizes the job with uploaded files and specified locales. Without this flag, the job remains unauthorized.
  • -l, --locale <locale code> - Adds files to the job for the specified locale only. Without this flag, files are added for all project locales. Can be used multiple times: --locale fr --locale de -l es.

Recommended Usage

smartling-cli files push <file> <uri> --job <job name> [--authorize] [--locale <locale>] [flags]

Backward Compatibility

CLI v2.2 maintains compatibility with the previous files push format. However, we recommend updating to the new format.

Legacy Command Behavior

smartling-cli files push <file> <uri>

When using the legacy format (without job name and locale):

  • Creates or reuses a job named "CLI uploads"
  • Attaches the file to all project locales
  • Leaves the job unauthorized

Migration Guide

  1. Add the --job flag to existing commands and specify a job name or UID

    • The same job name can be used across multiple CLI calls
    • CLI searches by job name and reuses existing jobs
    • If a job with the same name exists in Canceled or Closed state, a new job is created with a timestamp suffix
  2. Review locale targeting by explicitly adding the --locale flag if you need specific locales

    • Without --locale, CLI targets all project locales
  3. Consider authorization by adding the --authorize flag if you want automatic content authorization

    • Without --authorize, jobs remain unauthorized and require manual authorization

2.1

10 Jul 17:30
22593a5

Choose a tag to compare

2.1

New Features

Machine Translation Commands: Added mt detect and mt translate commands for machine translation capabilities.

Enhanced Configuration Management: Implemented value resolving hierarchy for better configuration control:

  • Flag values take highest priority
  • Config file values override environment variables
  • Environment variables override default values
  • Default values serve as fallback

Other Improvements

  • Updated SDK: Upgraded to the latest version of Smartling/api-sdk-go featuring a new project layout and updated MT endpoints
  • Dynamic Output: Implemented output mode (dynamic/static) based on flag values for improved user experience

Bug Fixes

  • Fixed an issue with the init command

Breaking Changes

  • Directory Flag Change: Global flag -d, --directory was replaced with --operation-directory

Migration Guide

Update any existing scripts or workflows that use the -d or --directory flag:

Before:

smartling-cli -d /path/to/project [command]

After:

smartling-cli --operation-directory /path/to/project [command]

2.0

06 Jul 16:18
590fc3f

Choose a tag to compare

2.0

What's Changed

  • Upgrade to go 1.24.3 in #75
  • Replace yaml parser in #76
  • Use cobra CLI in #77
  • Updated Jenkins in #79

Full Changelog: 1.7...2.0

1.7

03 Jun 16:55

Choose a tag to compare

1.7

Fixed issue #73

1.6

31 May 17:21
bee312e

Choose a tag to compare

1.6

What's Changed

  • Go modules migration
  • Fixed issue with intermittently fails on file download (#69)

1.5

04 May 07:46
c1591b3

Choose a tag to compare

1.5

Improvements

  • #63 smartling-cli files push with multiple files now continues on non-critical errors.
    The output for successful files is unchanged. Files that were not uploaded either because of local reasons or rejected by API will produce an Unable to upload file message. The exit code is 0 if all files were uploaded without errors, 1 otherwise.
    An example output for 2 success and 1 failed file is:
    success-1.json (json) new [1 strings 1 words]
    Unable to upload file fail-1.json
    success-2.json (json) overwritten [1 strings 1 words]
    ERROR: failed to upload 1 files
    
    failed to upload files fail-1.json