Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@translation/vue

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@translation/vue

This package provides a CLI to manage your [Vue I18n](https://github.com/kazupon/vue-i18n) project synchronized with Translation.io.

  • 1.0.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
17
decreased by-32%
Maintainers
2
Weekly downloads
 
Created
Source

Translation.io client for Vue.js

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.

Installation

npm install @translation/vue --save

Configuration

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 project
  • source_locale: Source locale
  • target_locales: Target locales
  • source_path: Where is located your source files
  • translations_directory: Where are located your translations files
  • translation_type: Either key or source
  • default_empty: Only for the key type. If true, it'll push the key as the source translation.

Usage

Init

Itialize your project and push existing translations to Translation.io with:

translation-vue init

Sync

Send new translatable keys/strings and get new translations from Translation.io.

translation-vue sync

Sync & Purge

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

Package last updated on 19 Dec 2019

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

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