Skip to content

Commit

Permalink
Version Packages (#171)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
seek-oss-ci and github-actions[bot] committed Oct 30, 2023
1 parent 161d698 commit 914a00f
Show file tree
Hide file tree
Showing 15 changed files with 131 additions and 73 deletions.
27 changes: 0 additions & 27 deletions .changeset/lemon-mails-battle.md

This file was deleted.

14 changes: 0 additions & 14 deletions .changeset/many-apricots-try.md

This file was deleted.

20 changes: 0 additions & 20 deletions .changeset/slimy-dingos-begin.md

This file was deleted.

21 changes: 21 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# @vocab/cli

## 1.4.0

### Minor Changes

- [`161d698`](https://github.com/seek-oss/vocab/commit/161d698f7fd198f594a765104f02261d2e45f007) [#170](https://github.com/seek-oss/vocab/pull/170) Thanks [@jasoncheng-jora](https://github.com/jasoncheng-jora)! - Error on no translation for global key

By default, `vocab pull` will not error if a translation is missing in Phrase for a translation with a global key.
If you want to throw an error in this situation, pass the `--error-on-no-global-key-translation` flag:

**EXAMPLE USAGE**:

```sh
vocab pull --error-on-no-global-key-translation
```

### Patch Changes

- Updated dependencies [[`161d698`](https://github.com/seek-oss/vocab/commit/161d698f7fd198f594a765104f02261d2e45f007), [`161d698`](https://github.com/seek-oss/vocab/commit/161d698f7fd198f594a765104f02261d2e45f007)]:
- @vocab/phrase@1.3.0
- @vocab/core@1.5.0

## 1.3.7

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vocab/cli",
"version": "1.3.7",
"version": "1.4.0",
"main": "dist/vocab-cli.cjs.js",
"module": "dist/vocab-cli.esm.js",
"bin": {
Expand All @@ -14,8 +14,8 @@
"license": "MIT",
"dependencies": {
"@types/env-ci": "^3.1.0",
"@vocab/core": "^1.4.0",
"@vocab/phrase": "^1.2.8",
"@vocab/core": "^1.5.0",
"@vocab/phrase": "^1.3.0",
"env-ci": "^5.0.2",
"fast-glob": "^3.2.4",
"form-data": "^3.0.0",
Expand Down
27 changes: 27 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,32 @@
# @vocab/core

## 1.5.0

### Minor Changes

- [`161d698`](https://github.com/seek-oss/vocab/commit/161d698f7fd198f594a765104f02261d2e45f007) [#170](https://github.com/seek-oss/vocab/pull/170) Thanks [@jasoncheng-jora](https://github.com/jasoncheng-jora)! - `vocab push` and `vocab pull` can support global keys mapping. When you want certain translations to use a specific/custom key in Phrase, add the `globalKey` to the structure.

**EXAMPLE USAGE**:

```jsonc
// translations.json
{
"Hello": {
"message": "Hello",
"globalKey": "hello"
},
"Goodbye": {
"message": "Goodbye",
"globalKey": "app.goodbye.label"
}
}
```

In the above example,

- `vocab push` will push the `hello` and `app.goodbye.label` keys to Phrase.
- `vocab pull` will pull translations from Phrase and map them to the `hello` and `app.goodbye.label` keys.

## 1.4.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vocab/core",
"version": "1.4.0",
"version": "1.5.0",
"main": "dist/vocab-core.cjs.js",
"module": "dist/vocab-core.esm.js",
"exports": {
Expand Down
50 changes: 50 additions & 0 deletions packages/phrase/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,55 @@
# @vocab/phrase

## 1.3.0

### Minor Changes

- [`161d698`](https://github.com/seek-oss/vocab/commit/161d698f7fd198f594a765104f02261d2e45f007) [#170](https://github.com/seek-oss/vocab/pull/170) Thanks [@jasoncheng-jora](https://github.com/jasoncheng-jora)! - `vocab push` and `vocab pull` can support global keys mapping. When you want certain translations to use a specific/custom key in Phrase, add the `globalKey` to the structure.

**EXAMPLE USAGE**:

```jsonc
// translations.json
{
"Hello": {
"message": "Hello",
"globalKey": "hello"
},
"Goodbye": {
"message": "Goodbye",
"globalKey": "app.goodbye.label"
}
}
```

In the above example,

- `vocab push` will push the `hello` and `app.goodbye.label` keys to Phrase.
- `vocab pull` will pull translations from Phrase and map them to the `hello` and `app.goodbye.label` keys.

- [`161d698`](https://github.com/seek-oss/vocab/commit/161d698f7fd198f594a765104f02261d2e45f007) [#170](https://github.com/seek-oss/vocab/pull/170) Thanks [@jasoncheng-jora](https://github.com/jasoncheng-jora)! - Add an optional `errorOnNoGlobalKeyTranslation` flag to `pull` function. If set to `true`, it will error if a translation is missing in Phrase for a translation with a global key.

**EXAMPLE USAGE**:

```js
import { pull } from '@vocab/phrase';

const vocabConfig = {
devLanguage: 'en',
language: ['en', 'fr'],
};

await pull(
{ branch: 'myBranch', errorOnNoGlobalKeyTranslation: true },
vocabConfig,
);
```

### Patch Changes

- Updated dependencies [[`161d698`](https://github.com/seek-oss/vocab/commit/161d698f7fd198f594a765104f02261d2e45f007)]:
- @vocab/core@1.5.0

## 1.2.8

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/phrase/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "@vocab/phrase",
"version": "1.2.8",
"version": "1.3.0",
"main": "dist/vocab-phrase.cjs.js",
"module": "dist/vocab-phrase.esm.js",
"author": "SEEK",
"license": "MIT",
"dependencies": {
"@vocab/core": "^1.4.0",
"@vocab/core": "^1.5.0",
"chalk": "^4.1.0",
"csv-stringify": "^6.2.3",
"debug": "^4.3.1",
Expand Down
7 changes: 7 additions & 0 deletions packages/react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @vocab/react

## 1.1.8

### Patch Changes

- Updated dependencies [[`161d698`](https://github.com/seek-oss/vocab/commit/161d698f7fd198f594a765104f02261d2e45f007)]:
- @vocab/core@1.5.0

## 1.1.7

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vocab/react",
"version": "1.1.7",
"version": "1.1.8",
"main": "dist/vocab-react.cjs.js",
"module": "dist/vocab-react.esm.js",
"author": "SEEK",
Expand All @@ -12,7 +12,7 @@
"dist"
],
"dependencies": {
"@vocab/core": "^1.4.0",
"@vocab/core": "^1.5.0",
"intl-messageformat": "^10.0.0"
},
"devDependencies": {
Expand Down
7 changes: 7 additions & 0 deletions packages/types/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @vocab/types

## 1.3.3

### Patch Changes

- Updated dependencies [[`161d698`](https://github.com/seek-oss/vocab/commit/161d698f7fd198f594a765104f02261d2e45f007)]:
- @vocab/core@1.5.0

## 1.3.2

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vocab/types",
"version": "1.3.2",
"version": "1.3.3",
"main": "dist/vocab-types.cjs.js",
"module": "dist/vocab-types.esm.js",
"author": "SEEK",
Expand All @@ -9,6 +9,6 @@
"dist"
],
"dependencies": {
"@vocab/core": "^1.4.0"
"@vocab/core": "^1.5.0"
}
}
7 changes: 7 additions & 0 deletions packages/webpack/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @vocab/webpack

## 1.2.4

### Patch Changes

- Updated dependencies [[`161d698`](https://github.com/seek-oss/vocab/commit/161d698f7fd198f594a765104f02261d2e45f007)]:
- @vocab/core@1.5.0

## 1.2.3

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/webpack/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vocab/webpack",
"version": "1.2.3",
"version": "1.2.4",
"main": "dist/vocab-webpack.cjs.js",
"module": "dist/vocab-webpack.esm.js",
"exports": {
Expand Down Expand Up @@ -39,7 +39,7 @@
"web"
],
"dependencies": {
"@vocab/core": "^1.4.0",
"@vocab/core": "^1.5.0",
"chalk": "^4.1.0",
"cjs-module-lexer": "^1.2.2",
"debug": "^4.3.1",
Expand Down

0 comments on commit 914a00f

Please sign in to comment.