Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@intl-schematic/cli
Advanced tools
@intl-schematic/cli
(WIP)npm i -D @intl-schematic/cli
intl-schematic
, as well as its plugins, defines a JSON-schema API designed specifically to allow type-checking JSON translation documents.
This CLI allows to quickly create such a schema based on the intl-schematic
plugins you have currently installed.
Broken right now, see manual definition.
To quickly define the translation.schema.json
for your translation documents,
you can run the official CLI in your project's root:
npx intl-schematic init
# or provide an optional custom file name
npx intl-schematic init ./locales/my-translation.schema.json
And then use it in your translation document:
// en.json
{
// Path to the schema from the example above
"$schema": "./translation.schema.json",
"key": "Translation of my key"
}
import translation from './en.json';
const t = createTranslator(() => translation);
// Etc., see example at the start of this file
Note: the
$schema
key will be automatically excluded
from type hints fort()
for your convenience!
FAQs
`npm i -D @intl-schematic/cli`
We found that @intl-schematic/cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.