@makefully/dutifully 1.22.0 → 1.22.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 1.22.1
6
+
7
+ - Allow translate `format: "catalog"` (Cheerfully flat `{lang}.json` app catalogs) alongside existing loc formats.
8
+
5
9
  ## 1.22.0
6
10
 
7
11
  - Select a subset of service listings via optional job `id` and top-level `only` (`cheer -service packfully -only heroes,ui`).
package/README.md CHANGED
@@ -459,9 +459,11 @@ This text-to-text service translates Cheerfully scripts or language-matrix CSV/T
459
459
  * `format` / `exports` — optional. Defaults to the source extension (`json`, `csv`, or `tsv`).
460
460
  * `ignore` — phrases left untranslated.
461
461
 
462
- JSON sources write `{lang}/{basename}.{ext}` under `output`. CSV/TSV sources write an updated matrix file and leave existing non-empty cells unchanged.
462
+ JSON sources write `{lang}/{basename}.{ext}` under `output` (`catalog` → `{lang}.json`). CSV/TSV sources write an updated matrix file and leave existing non-empty cells unchanged.
463
463
 
464
- Supported formats: `json`, `i18n`, `csv`, `tsv`, `po`, `xliff`, `properties`, `yml` / `yaml`, `strings`, `xml`.
464
+ Supported formats: `json`, `i18n`, `catalog`, `csv`, `tsv`, `po`, `xliff`, `properties`, `yml` / `yaml`, `strings`, `xml`.
465
+
466
+ `catalog` writes flat key → caption JSON as `{lang}.json` (app localization layout). `i18n` uses the same payload under `{lang}/{basename}.i18n.json`.
465
467
 
466
468
  ## Example
467
469
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@makefully/dutifully",
3
- "version": "1.22.0",
3
+ "version": "1.22.1",
4
4
  "description": "Client tools for Cheerfully service.",
5
5
  "main": "./src/index.js",
6
6
  "bin": {
@@ -6,7 +6,7 @@
6
6
  const LYRIC_FORMATS = ['json', 'lrc', 'mp3', 'sami', 'smi', 'srt', 'vtt', 'tsv', 'xml', 'dat'];
7
7
  const TRANSCRIPTION_FORMATS = ['json', 'lrc', 'mp3', 'sami', 'smi', 'srt', 'vtt'];
8
8
  const PACKFULLY_FORMATS = ['texturepacker', 'json-array', 'createjs', 'spine', 'css', 'starling', 'unity', 'godot'];
9
- const TRANSLATE_FORMATS = ['json', 'i18n', 'po', 'xliff', 'properties', 'yml', 'yaml', 'strings', 'xml', 'csv', 'tsv'];
9
+ const TRANSLATE_FORMATS = ['json', 'i18n', 'catalog', 'po', 'xliff', 'properties', 'yml', 'yaml', 'strings', 'xml', 'csv', 'tsv'];
10
10
 
11
11
  const EXPORT_CATALOG = {
12
12
  transcription: {