Skip to content

Commit

Permalink
Applanga Command Line Interface Version 1.0.41
Browse files Browse the repository at this point in the history
  • Loading branch information
steffen-roemer committed Aug 8, 2018
1 parent cbde233 commit 6867375
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*Applanga CLI Documentation:* <https://www.applanga.com/docs-integration/cli>
***

### Version 1.0.40 (25 Jul 2018)
### Version 1.0.41 (8 Aug 2018)
#### Added
- Support for chrome i18n json localization
- Support for go i18n json localization
Expand Down
11 changes: 8 additions & 3 deletions 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.40
*Version:* 1.0.41

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

Expand All @@ -12,7 +12,7 @@

1. [Installation](#installation)
2. [Initialization](#initialize-project)
3. [Usage](#push-pull-translations)
3. [Usage](#push-pull-translation-files)
4. [Configuration](#configuration)
5. [Configuration Examples](#configuration-examples)
- [Android Examples](#android-configuration-examples)
Expand Down Expand Up @@ -84,6 +84,7 @@ To pull translations from Applanga into local files:
applanga pull
```

###### *NOTE: The CLI is communicating with the [Applanga API](https://www.applanga.com/docs-integration/api) through our CDN to make sure the data is always reachable but that also means changes (including `push`es) are only available to pull after a 10 minute delay even though they are already visible on the [Dashboard](https://dashboard.applanga.com)!*

## Configuration

Expand Down Expand Up @@ -119,7 +120,7 @@ The most basic configuration file generated after `applanga init` will look simi
}
}
```
If you are using file formats on platforms that have different folders for their base languages or more complex folder structures like iOS or Android you'll need to modify the config as show in the [configuration examples](#configuration-examples).
If you are using multiple files, file formats on platforms that have different folders for their base languages or more complex folder structures like [iOS](#ios-configuration-examples) or [Android](#android-configuration-examples) you'll need to modify the config as show in the [configuration examples](#configuration-examples).

### Target/Source Properties

Expand All @@ -137,6 +138,7 @@ There are a few mandatory and several optional properties that you can use to cu
- android_xml : Android XML (.xml)
- angular_translate_json : [i18next](https://github.com/angular-translate/angular-translate) (.json)
- chrome_i18n_json : [Chrome i18n](https://developer.chrome.com/extensions/i18n) (.json)
- ember_i18n_json_module : [Ember i18n JSON Module](https://github.com/jamesarosen/ember-i18n) (.js)
- gettext_po : Gettext PO File (.po)
- gettext_pot : Gettext POT File (.pot)
- go_i18n_json : [go-i18n](https://github.com/nicksnyder/go-i18n) (.json)
Expand All @@ -146,7 +148,10 @@ There are a few mandatory and several optional properties that you can use to cu
- java_properties : JAVA properties (.properties)
- mozilla_i18n_json : [Mozilla i18n](https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/i18n/getMessage) (.json)
- mozilla_properties : Mozilla properties (.properties)
- nested_json : Nested JSON (.json)
- node_2_json : [i18n-node-2](https://github.com/jeresig/i18n-node-2) (.json)
- react_nested_json : [React Nested JSON](https://github.com/yahoo/react-intl) (.json)
- react_simple_json : React Simple JSON (.json)

***Example:*** `"file_format": "android_xml"`

Expand Down
23 changes: 21 additions & 2 deletions lib/constants.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
VERSION_NUMBER = '1.0.0'
# API_BASE_URL = 'https://api.applanga.com/v1/api'
API_BASE_URL = 'http://localhost:3000/v1/api'
API_BASE_URL = 'https://api.applanga.com/v1/api'
CONFIG_FILE_NAME = '.applanga.json'
DEBUG_TEXT_COLOR = 'blue'
ENVIRONMENT_VARIABLE = 'APPLANGA_CONFIG'
Expand All @@ -20,11 +19,21 @@
'extension': 'json',
'default_file_path': './_locales/<language>/messages.json'
},
'ember_i18n_json_module': {
'name': 'Ember i18n JSON Module',
'extension': 'js',
'default_file_path': './app/locales/<language>/translations.js'
},
'mozilla_i18n_json': {
'name': 'Mozilla i18n JSON',
'extension': 'json',
'default_file_path': './_locales/<language>/messages.json'
},
'nested_json': {
'name': 'Nested JSON',
'extension': 'json',
'default_file_path': './<language>.json'
},
'ios_strings': {
'name': 'iOS strings',
'extension': 'strings',
Expand Down Expand Up @@ -80,4 +89,14 @@
'extension': 'json',
'default_file_path': './locales/<language>/translations.json'
},
'react_simple_json': {
'name': 'React Simple JSON',
'extension': 'json',
'default_file_path': './<language>.json'
},
'react_nested_json': {
'name': 'React Nested JSON',
'extension': 'json',
'default_file_path': './<language>.json'
},
}

0 comments on commit 6867375

Please sign in to comment.