# polyglot-cli

## 2.3.0

### Minor Changes

- 296928f: Add `DirectoryBased` file type
- 7782f86: \* Add version check before any action is executed
  - Improve error messages (no more silent fails)

### Patch Changes

- c9e8236: Migrate to datx@3

## 2.3.0-beta.1

### Minor Changes

- aab1b70: Add `DirectoryBased` file type

## 2.3.0-beta.0

### Minor Changes

- 7782f86: \* Add version check before any action is executed
  - Improve error messages (no more silent fails)

### Patch Changes

- c9e8236: Migrate to datx@3

## 2.2.1

### Patch Changes

- e5e2611: fix: add missing shebang

## 2.2.0

### Minor Changes

- 1a45473: Add `--dry-run` option for `push` command.
- f31bf58: Add `--delete` option to `polyglot push` command that will delete the remote keys that are not present in the local file.

### Patch Changes

- 66500ce: Fix `...logged in as undefined` message
- e67325a: Fix pull fails if no folder

### 2.1.3

- Change `prepublish` npm script to `prepublishOnly`

### 2.1.2

- Fix incorrect reading of scoped files
- Remove prepending if scope is a default scope

### 2.1.1

- Fixed support for scoped translation

### 2.1.0

- Make file override as default option
- Add merge and no-merge flags
- Throw on pull if translation key is not present on the remote

### 2.0.2

- Fixed config path on Windows

### 2.0.1

- Fixed `import` command issue where translations and translation keys local values were not initialized
- Import translations for each project language
- Fixed `push` command issue where translation keys were saved twice

### 2.0.0

- Add the `push` command
- Add support for multiple projects
- Add progress bar to the `push` and `pull` commands
- Show help if no option is specified

**Breaking changes:**

- Config file expects list of projects with `id`, `name` and `path`.

Old:

```js
//.polyglot.json
{
  "id": "projectId",
  "name": "Project name",
  "path": "path/to/",
  "lastUpdatedAt": 0,
 ...
}
```

New:

```js
//.polyglot.json
{
  "projects": [
    {
      "id": "projectId",
      "name": "Project name",
      "path": "path/to/",
      "lastUpdatedAt": 0
    },
  ...
  ],
 ...
}
```

### 1.7.0

- Add `skipConfigUpdates` flag to config - if set to true, it won't update the `lastUpdatedAt` property in config

### 1.6.0

- Add support for specifying the project configuration path

### 1.5.0

- Add support for auth via env variable

#### 1.4.4

- Fix nested import issue

#### 1.4.3

- Implemented object denesting algorithm

#### 1.4.2

- Fix nested translation import issue

#### 1.4.1

- Fix locale format initialization

### 1.4.0

- Support for language only format
- Create the folder structure automatically

#### 1.3.1

- Fix Node 6 issue

### 1.3.0

- Translation import

#### 1.2.1

- Logout bugfix
- Added some debug info

### 1.2.0

- `polyglot status`
- `lastUpdatedAt` property in the project file
- Updated API endpoint for production

### 1.1.0

- Support for nested pulling
- Sorted pulled translations
- Pretty-print JSON
