Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

node-tranlsation-scripts

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

node-tranlsation-scripts

Zero dependency i18n translation cli scripts

unpublished
latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

Node Translation Scripts

Zero dependency i18n translation cli scripts

CLI

--help

Validate

--validate - Validates reference language against other translations

-r or --refLanguagePath - Path to root of directory with reference language

-t or --translationPaths - Paths to root of directories with translations delimited by comma

Export

--export - Exports translation data to specified languages

-r or --refLanguagePath - Path to root of directory with reference language

-t or --translationPaths - Paths to root of directories with translations delimited by comma

-k or --keepOriginalTranslations - Determines whether original translations should be preserved or not

-o or --outputPath - Path to output directory

-i or --includeReferenceLanguage - Include reference language

Import

--import - Imports translated data to specified directory

-i or --inputPath - Path to directory with translated files

-o or --outputPath - Path to output directory

-r or --referenceLanguage - Reference language (won't be imported)

-d or --dry - Dry run

Example

{
  ...
  "scripts": {
    "validate-translations": "node-translation-scripts --validate -r \"./public/locales/en/\" -t \"./public/locales/cs/\"",
    "validate-translations:dry": "node-translation-scripts --validate -r \"./public/locales/en/\" -t \"./public/locales/cs/\" --dry",
    "export-translations": "node-translation-scripts --export -r \"./public/locales/en/\" -t \"./public/locales/cs/\" -o \"./export/translations/\" -k -i",
    "import-translations": "node translation-scripts --import -i \"./export/translations\" -o \"./public/locales/\" -r \"en\""
  }
  ...
}

Keywords

i18n

FAQs

Package last updated on 27 May 2022

Did you know?

Socket

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.

Install

Related posts