Skip to content

Commit

Permalink
Applanga Command Line Interface Version 1.0.93
Browse files Browse the repository at this point in the history
  • Loading branch information
steffen committed Apr 18, 2024
1 parent 84b0cc3 commit 484c81f
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
*Applanga CLI Documentation:* <https://www.applanga.com/docs-integration/cli>
***

### Version 1.0.93 (18 Apr 2024)
#### Fixed
- Fixed keepTagIds option for push commands
---

### Version 1.0.92 (4 Jan 2024)
#### Added
- Added `xliff` file format
Expand Down
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Applanga Localization Command Line Interface (CLI)

***
*Version:* 1.0.92
*Version:* 1.0.93

*Website:* <https://www.applanga.com>

Expand Down Expand Up @@ -254,6 +254,11 @@ It is possible to set the variable `<language>` in the path. In the "source" blo

***Example (Tag Array):*** `"tag": ["main page", "other page"]`

- **"keepTagIds"** *(push commands only)*

This option is only considered when you provide the 'tag' option. If you wish to retain all entries tagged with the current Tag, even if they are not included in the uploaded file, then set this option to true.

***Example:*** `"keepTagIds": true`

- **"language"**

Expand Down
6 changes: 6 additions & 0 deletions lib/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,9 @@ def uploadFiles(upload_files, force=False, draft=False, debug=False):
if 'tag' in file_data:
send_data['tag'] = file_data['tag']

if 'keepTagIds' in file_data:
send_data['keepTagIds'] = file_data['keepTagIds']

if 'key_prefix' in file_data:
send_data['key_prefix'] = file_data['key_prefix']

Expand Down Expand Up @@ -354,6 +357,9 @@ def uploadFile(file_data, force=False, draft=False, debug=False):
if 'tag' in file_data:
request_data['tag'] = file_data['tag']

if 'keepTagIds' in file_data:
request_data['keepTagIds'] = file_data['keepTagIds']

if 'key_prefix' in file_data:
request_data['addKeyPrefix'] = file_data['key_prefix']

Expand Down
2 changes: 1 addition & 1 deletion lib/constants.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION_NUMBER = '1.0.92'
VERSION_NUMBER = '1.0.93'
APPLANGA_HOST = 'https://api.applanga.com'
API_BASE_PATH = '/v1/api'
CONFIG_FILE_NAME = '.applanga.json'
Expand Down
2 changes: 2 additions & 0 deletions lib/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ def getFiles(source):
# Add other properties which got defined for file
if 'tag' in source:
return_files[file]['tag'] = source['tag']
if 'keepTagIds' in source:
return_files[file]['keepTagIds'] = source['keepTagIds']
if 'file_format' in source:
return_files[file]['file_format'] = source['file_format']
if 'key_prefix' in source:
Expand Down

0 comments on commit 484c81f

Please sign in to comment.