i18n-validate
Advanced tools
Comparing version 1.4.0-next.3673637.0 to 1.4.0
@@ -5,2 +5,14 @@ # Changelog | ||
## [i18n-validate@1.4.0](https://github.com/imranbarbhuiya/i18n-validate/compare/v1.2.1...i18n-validate@1.4.0) - (2023-07-18) | ||
### 🐛 Bug Fixes | ||
- Add file count ([2b2002c](https://github.com/imranbarbhuiya/i18n-validate/commit/2b2002cdca4ea31edc76bb2d018c378a161b7ee5)) | ||
- Add time taken log ([91a1533](https://github.com/imranbarbhuiya/i18n-validate/commit/91a153309bbfef7450b46cced9091a68ccb6e9f8)) | ||
### 🚀 Features | ||
- Support dynamic key using ts type ([3673637](https://github.com/imranbarbhuiya/i18n-validate/commit/36736374577a15030a80929870de98fb43d520a7)) | ||
- Support ternary and string concatenation in key ([943682f](https://github.com/imranbarbhuiya/i18n-validate/commit/943682f7aefac0da152ae2ae240c1c314c6d1f16)) | ||
## [i18n-validate@1.3.0](https://github.com/imranbarbhuiya/i18n-validate/compare/v1.2.1...i18n-validate@1.3.0) - (2023-07-18) | ||
@@ -7,0 +19,0 @@ |
@@ -8,3 +8,3 @@ #!/usr/bin/env node | ||
var start = performance.now(); | ||
var command = new Command().version("1.4.0-next.3673637.0").usage("[options] <file ...>").option("-c, --config <config>", "Path to the config file", "./i18n-validate.json").option("--log-level <logLevel>", "Log level").option("--exclude <exclude...>", "Exclude files from parsing").option("--exit-on-error", "Exit immediately if an error is found"); | ||
var command = new Command().version("1.4.0").usage("[options] <file ...>").option("-c, --config <config>", "Path to the config file", "./i18n-validate.json").option("--log-level <logLevel>", "Log level").option("--exclude <exclude...>", "Exclude files from parsing").option("--exit-on-error", "Exit immediately if an error is found"); | ||
command.on("--help", () => { | ||
@@ -11,0 +11,0 @@ console.log(""); |
{ | ||
"name": "i18n-validate", | ||
"version": "1.4.0-next.3673637.0", | ||
"version": "1.4.0", | ||
"description": "A cli tool to find invalid i18n keys, missing variables and many more", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -61,2 +61,4 @@ <div align="center"> | ||
For ts files | ||
```ts | ||
@@ -76,3 +78,7 @@ const a = 'namespace:key1'; | ||
t(c); | ||
``` | ||
For js files | ||
```js | ||
/** | ||
@@ -85,3 +91,3 @@ * @type {'a:key5' | 'a:key6'} | ||
const e = /** @type {'a:key7' | 'a:key8'} */ `a:${b}`; | ||
const e = /** @type {'a:key7' | 'a:key8'} */ (`a:${b}`); | ||
@@ -88,0 +94,0 @@ t(e); |
Sorry, the diff of this file is not supported yet
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
57599
0
1
140
0