New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

i18n-validate

Package Overview
Dependencies
Maintainers
1
Versions
134
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

i18n-validate - npm Package Compare versions

Comparing version 1.4.0-next.3673637.0 to 1.4.0

12

CHANGELOG.md

@@ -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 @@

2

dist/cli.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc