
Product
Introducing Repository Labels and Security Policies
Socket is introducing a new way to organize repositories and apply repository-specific security policies.
@paprika/build-translations
Advanced tools
An utility tool to convert translation yml files to js.
Utility tool. Converting yml/yaml files to js files.
# Using yarn:
yarn global add @paprika/build-translations --dev
build-translations <sourcePath> --out-dir <outPath> --yaml-file-ext yml
# Or via npx:
npx @paprika/build-translations <sourcePath> --out-dir <outPath> --yaml-file-ext yml
<sourcePath>
will be default to current path.
Option | Required | Default |
---|---|---|
--out-dir | false | Same as <sourcePath> |
--yaml-file-ext | false | yml |
yarn add @paprika/build-translations --dev
import buildTranslations from "@paprika/build-translations";
// default values are same with running from CLI
buildTranslations({
sourcePath: "./src/locale",
outputPath: "./src/locale-js",
yamlFileExtension: "yaml",
});
There's no tests for this tool yet, we were going to add some, but it's unpossible to mock process.cwd()
in jest, see facebook/jest#5146.
FAQs
An utility tool to convert translation yml files to js.
We found that @paprika/build-translations demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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.
Product
Socket is introducing a new way to organize repositories and apply repository-specific security policies.
Research
Security News
Socket researchers uncovered malicious npm and PyPI packages that steal crypto wallet credentials using Google Analytics and Telegram for exfiltration.
Product
Socket now supports .NET, bringing supply chain security and SBOM accuracy to NuGet and MSBuild-powered C# projects.