locize-cli 12.0.0 → 12.0.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/.github/workflows/node.yml +25 -0
- package/CHANGELOG.md +4 -0
- package/README.md +1 -0
- package/dist/cjs/cli.js +2 -2
- package/dist/cjs/index.js +3 -3
- package/dist/cjs/missing.js +4 -1
- package/dist/cjs/package.json +1 -1
- package/dist/cjs/parseLocalLanguage.js +1 -1
- package/dist/cjs/request.js +1 -1
- package/dist/cjs/sync.js +1 -1
- package/dist/esm/cli.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/missing.js +1 -1
- package/dist/esm/parseLocalLanguage.js +1 -1
- package/dist/esm/request.js +1 -1
- package/dist/esm/sync.js +1 -1
- package/package.json +6 -4
- package/rollup.config.js +2 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
name: node
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
test:
|
|
10
|
+
name: Test on node ${{ matrix.node }} and ${{ matrix.os }}
|
|
11
|
+
runs-on: ${{ matrix.os }}
|
|
12
|
+
strategy:
|
|
13
|
+
matrix:
|
|
14
|
+
node: [ '24.x', '22.x' ]
|
|
15
|
+
# os: [ubuntu-latest, windows-latest, macOS-latest]
|
|
16
|
+
os: [ubuntu-latest, windows-latest, macOS-latest]
|
|
17
|
+
steps:
|
|
18
|
+
- uses: actions/checkout@v4
|
|
19
|
+
- name: Setup Node.js
|
|
20
|
+
uses: actions/setup-node@v4
|
|
21
|
+
with:
|
|
22
|
+
node-version: ${{ matrix.node }}
|
|
23
|
+
- run: npm install
|
|
24
|
+
- run: npm run build
|
|
25
|
+
- run: npm test
|
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
Project versioning adheres to [Semantic Versioning](http://semver.org/).
|
|
6
6
|
Change log format is based on [Keep a Changelog](http://keepachangelog.com/).
|
|
7
7
|
|
|
8
|
+
## [12.0.1](https://github.com/locize/locize-cli/compare/v12.0.0...v12.0.1) - 2026-01-13
|
|
9
|
+
|
|
10
|
+
- update dependencies
|
|
11
|
+
|
|
8
12
|
## [12.0.0](https://github.com/locize/locize-cli/compare/v11.1.0...v12.0.0) - 2026-01-04
|
|
9
13
|
|
|
10
14
|
- changed default cdnType to "standard" instead of "prod"
|
package/README.md
CHANGED
package/dist/cjs/cli.js
CHANGED
|
@@ -50,7 +50,7 @@ const program = new commander.Command();
|
|
|
50
50
|
|
|
51
51
|
program
|
|
52
52
|
.description('The official locize CLI.')
|
|
53
|
-
.version('12.0.
|
|
53
|
+
.version('12.0.1'); // This string is replaced with the actual version at build time by rollup
|
|
54
54
|
// .option('-a, --api-endpoint <url>', `Specify the api-endpoint url that should be used (default: ${defaultApiEndpoint})`)
|
|
55
55
|
// .option('-C, --config-path <configPath>', `Specify the path to the optional locize config file (default: ${configInWorkingDirectory} or ${configInHome})`);
|
|
56
56
|
|
|
@@ -583,7 +583,7 @@ program
|
|
|
583
583
|
const referenceLanguageOnly = options.referenceLanguageOnly !== 'false';
|
|
584
584
|
const pathMask = options.pathMask;
|
|
585
585
|
|
|
586
|
-
missing({
|
|
586
|
+
missing.default({
|
|
587
587
|
cdnType: cdnType || defaultCdnType,
|
|
588
588
|
apiEndpoint,
|
|
589
589
|
apiKey,
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var add = require('./add.js');
|
|
4
|
+
var copyVersion = require('./copyVersion.js');
|
|
4
5
|
var get = require('./get.js');
|
|
5
6
|
var download = require('./download.js');
|
|
6
7
|
var migrate = require('./migrate.js');
|
|
7
8
|
var sync = require('./sync.js');
|
|
8
9
|
var publishVersion = require('./publishVersion.js');
|
|
9
|
-
var copyVersion = require('./copyVersion.js');
|
|
10
10
|
var createBranch = require('./createBranch.js');
|
|
11
11
|
var deleteBranch = require('./deleteBranch.js');
|
|
12
12
|
var deleteNamespace = require('./deleteNamespace.js');
|
|
@@ -20,12 +20,12 @@ var removeVersion = require('./removeVersion.js');
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
exports.add = add;
|
|
23
|
+
exports.copyVersion = copyVersion;
|
|
23
24
|
exports.get = get;
|
|
24
25
|
exports.download = download;
|
|
25
26
|
exports.migrate = migrate;
|
|
26
27
|
exports.sync = sync;
|
|
27
28
|
exports.publishVersion = publishVersion;
|
|
28
|
-
exports.copyVersion = copyVersion;
|
|
29
29
|
exports.createBranch = createBranch;
|
|
30
30
|
exports.deleteBranch = deleteBranch;
|
|
31
31
|
exports.deleteNamespace = deleteNamespace;
|
|
@@ -33,5 +33,5 @@ exports.format = format;
|
|
|
33
33
|
exports.getBranches = getBranches;
|
|
34
34
|
exports.getJob = getJob;
|
|
35
35
|
exports.mergeBranch = mergeBranch;
|
|
36
|
-
exports.missing = missing;
|
|
36
|
+
exports.missing = missing.default;
|
|
37
37
|
exports.removeVersion = removeVersion;
|
package/dist/cjs/missing.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
3
5
|
var colors = require('colors');
|
|
4
6
|
var path = require('node:path');
|
|
5
7
|
var request = require('./request.js');
|
|
@@ -159,4 +161,5 @@ const missing = async (opt) => {
|
|
|
159
161
|
await handleMissing(opt, localNamespaces);
|
|
160
162
|
};
|
|
161
163
|
|
|
162
|
-
|
|
164
|
+
exports.compareNamespace = compareNamespace;
|
|
165
|
+
exports.default = missing;
|
package/dist/cjs/package.json
CHANGED
|
@@ -5,7 +5,7 @@ var path = require('node:path');
|
|
|
5
5
|
var mkdirp = require('mkdirp');
|
|
6
6
|
var convertToFlatFormat = require('./convertToFlatFormat.js');
|
|
7
7
|
var formats = require('./formats.js');
|
|
8
|
-
var xcstrings2locize = require('locize-xcstrings/
|
|
8
|
+
var xcstrings2locize = require('locize-xcstrings/xcstrings2locize');
|
|
9
9
|
|
|
10
10
|
const fileExtensionsMap = formats.fileExtensionsMap;
|
|
11
11
|
const acceptedFileExtensions = formats.acceptedFileExtensions;
|
package/dist/cjs/request.js
CHANGED
|
@@ -38,7 +38,7 @@ async function request (url, options) {
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
options.headers = options.headers || {};
|
|
41
|
-
options.headers['User-Agent'] = `
|
|
41
|
+
options.headers['User-Agent'] = `locize-cli/v12.0.1 (node/${process.version}; ${process.platform} ${process.arch})`; // This string is replaced with the actual version at build time by rollup
|
|
42
42
|
options.headers['X-User-Agent'] = options.headers['User-Agent'];
|
|
43
43
|
if (options.body || options.method !== 'get') options.headers['Content-Type'] = 'application/json';
|
|
44
44
|
if (options.body) {
|
package/dist/cjs/sync.js
CHANGED
|
@@ -16,7 +16,7 @@ var parseLocalReference = require('./parseLocalReference.js');
|
|
|
16
16
|
var formats = require('./formats.js');
|
|
17
17
|
var deleteNamespace = require('./deleteNamespace.js');
|
|
18
18
|
var getProjectStats = require('./getProjectStats.js');
|
|
19
|
-
var locize2xcstrings = require('locize-xcstrings/
|
|
19
|
+
var locize2xcstrings = require('locize-xcstrings/locize2xcstrings');
|
|
20
20
|
var getBranches = require('./getBranches.js');
|
|
21
21
|
var isValidUuid = require('./isValidUuid.js');
|
|
22
22
|
var os = require('node:os');
|
package/dist/esm/cli.js
CHANGED
|
@@ -48,7 +48,7 @@ const program = new Command();
|
|
|
48
48
|
|
|
49
49
|
program
|
|
50
50
|
.description('The official locize CLI.')
|
|
51
|
-
.version('12.0.
|
|
51
|
+
.version('12.0.1'); // This string is replaced with the actual version at build time by rollup
|
|
52
52
|
// .option('-a, --api-endpoint <url>', `Specify the api-endpoint url that should be used (default: ${defaultApiEndpoint})`)
|
|
53
53
|
// .option('-C, --config-path <configPath>', `Specify the path to the optional locize config file (default: ${configInWorkingDirectory} or ${configInHome})`);
|
|
54
54
|
|
package/dist/esm/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export { default as add } from './add.js';
|
|
2
|
+
export { default as copyVersion } from './copyVersion.js';
|
|
2
3
|
export { default as get } from './get.js';
|
|
3
4
|
export { default as download } from './download.js';
|
|
4
5
|
export { default as migrate } from './migrate.js';
|
|
5
6
|
export { default as sync } from './sync.js';
|
|
6
7
|
export { default as publishVersion } from './publishVersion.js';
|
|
7
|
-
export { default as copyVersion } from './copyVersion.js';
|
|
8
8
|
export { default as createBranch } from './createBranch.js';
|
|
9
9
|
export { default as deleteBranch } from './deleteBranch.js';
|
|
10
10
|
export { default as deleteNamespace } from './deleteNamespace.js';
|
package/dist/esm/missing.js
CHANGED
|
@@ -3,7 +3,7 @@ import path from 'node:path';
|
|
|
3
3
|
import { mkdirp } from 'mkdirp';
|
|
4
4
|
import convertToFlatFormat from './convertToFlatFormat.js';
|
|
5
5
|
import { fileExtensionsMap as fileExtensionsMap$1, acceptedFileExtensions as acceptedFileExtensions$1 } from './formats.js';
|
|
6
|
-
import xcstrings2locize from 'locize-xcstrings/
|
|
6
|
+
import xcstrings2locize from 'locize-xcstrings/xcstrings2locize';
|
|
7
7
|
|
|
8
8
|
const fileExtensionsMap = fileExtensionsMap$1;
|
|
9
9
|
const acceptedFileExtensions = acceptedFileExtensions$1;
|
package/dist/esm/request.js
CHANGED
|
@@ -36,7 +36,7 @@ async function request (url, options) {
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
options.headers = options.headers || {};
|
|
39
|
-
options.headers['User-Agent'] = `
|
|
39
|
+
options.headers['User-Agent'] = `locize-cli/v12.0.1 (node/${process.version}; ${process.platform} ${process.arch})`; // This string is replaced with the actual version at build time by rollup
|
|
40
40
|
options.headers['X-User-Agent'] = options.headers['User-Agent'];
|
|
41
41
|
if (options.body || options.method !== 'get') options.headers['Content-Type'] = 'application/json';
|
|
42
42
|
if (options.body) {
|
package/dist/esm/sync.js
CHANGED
|
@@ -14,7 +14,7 @@ import parseLocalReference from './parseLocalReference.js';
|
|
|
14
14
|
import { reversedFileExtensionsMap as reversedFileExtensionsMap$1 } from './formats.js';
|
|
15
15
|
import deleteNamespace from './deleteNamespace.js';
|
|
16
16
|
import getProjectStats from './getProjectStats.js';
|
|
17
|
-
import locize2xcstrings from 'locize-xcstrings/
|
|
17
|
+
import locize2xcstrings from 'locize-xcstrings/locize2xcstrings';
|
|
18
18
|
import getBranches from './getBranches.js';
|
|
19
19
|
import isValidUuid from './isValidUuid.js';
|
|
20
20
|
import os from 'node:os';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "locize-cli",
|
|
3
|
-
"version": "12.0.
|
|
3
|
+
"version": "12.0.1",
|
|
4
4
|
"description": "locize cli to import locales",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/cjs/index.js",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"cacheable-lookup": "6.1.0",
|
|
31
31
|
"colors": "1.4.0",
|
|
32
32
|
"commander": "14.0.2",
|
|
33
|
-
"diff": "8.0.
|
|
33
|
+
"diff": "8.0.3",
|
|
34
34
|
"dotenv": "17.2.3",
|
|
35
35
|
"fast-csv": "5.0.5",
|
|
36
36
|
"flat": "5.0.2",
|
|
@@ -58,12 +58,14 @@
|
|
|
58
58
|
"eslint-plugin-import": "2.32.0",
|
|
59
59
|
"gh-release": "7.0.2",
|
|
60
60
|
"neostandard": "0.12.2",
|
|
61
|
-
"rollup": "4.
|
|
61
|
+
"rollup": "4.55.1",
|
|
62
|
+
"vitest": "4.0.17"
|
|
62
63
|
},
|
|
63
64
|
"scripts": {
|
|
64
65
|
"lint": "eslint .",
|
|
65
66
|
"build": "rm -rf dist && rollup -c",
|
|
66
|
-
"test": "
|
|
67
|
+
"test:watch": "vitest",
|
|
68
|
+
"test": "npm run lint && vitest run",
|
|
67
69
|
"pkg": "mkdir -p ./bins && pkg ./dist/cjs/cli.js --output ./bins/locize --targets node24-linux-x64,node24-macos-x64,node24-win-x64,node24-alpine-x64",
|
|
68
70
|
"release": "gh-release --assets ./bins/locize-linux,./bins/locize-macos,./bins/locize-win.exe,./bins/locize-alpine",
|
|
69
71
|
"preversion": "npm run test",
|
package/rollup.config.js
CHANGED
|
@@ -33,8 +33,9 @@ export default {
|
|
|
33
33
|
],
|
|
34
34
|
plugins: [
|
|
35
35
|
replace({
|
|
36
|
-
|
|
36
|
+
__packageName__: pkg.name,
|
|
37
37
|
__packageVersion__: pkg.version,
|
|
38
|
+
__v_packageVersion__: `v${pkg.version}`,
|
|
38
39
|
preventAssignment: true
|
|
39
40
|
}),
|
|
40
41
|
// terser(), // minifies generated bundles
|