Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@translation/vue
Advanced tools
This package provides a CLI to manage your [Vue I18n](https://github.com/kazupon/vue-i18n) project synchronized with Translation.io.
This package provides a CLI to manage your Vue I18n project synchronized with Translation.io.
Currently it only supports the usage of the $t
and $tc
methods inside your .vue & .js files.
npm install @translation/vue --save
Go to your Translation.io account page and create a new project. Once the project is created, you'll see the configuration file. It should look like this :
{
"key": "YOUR_PROJECT_API_KEY",
"source_locale": "en",
"target_locales": ["fr-BE", "nl-BE"],
"source_path": "/src/**/*.?(js|vue)",
"translations_directory": "/src/locales/",
"translations_type": "key",
"default_empty": false
}
key
: the API key for your Translation.io projectsource_locale
: Source localetarget_locales
: Target localessource_path
: Where is located your source filestranslations_directory
: Where are located your translations filestranslation_type
: Either key
or source
default_empty
: Only for the key type. If true, it'll push the key as the source translation.Itialize your project and push existing translations to Translation.io with:
translation-vue init
Send new translatable keys/strings and get new translations from Translation.io.
translation-vue sync
If you need to remove unused keys/strings from Translation.io, using the current application as reference.
translation-vue sync --purge
As the name says, this operation will also perform a sync at the same time.
Warning: all keys that are not present in the current application will be permanently deleted from Translation.io.
FAQs
This package provides a CLI to manage your [Vue I18n](https://github.com/kazupon/vue-i18n) project synchronized with Translation.io.
The npm package @translation/vue receives a total of 15 weekly downloads. As such, @translation/vue popularity was classified as not popular.
We found that @translation/vue demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.