vue-i18n single file component exporter/importer

vue-i18n single file component exporter/importer

The translation team (not developers) wants a file with all the keys to translate. But I love to use translations in Single File Components.

vue-i18n-service

The translation team (not developers) wants a file with all the keys to translate. But I love to use translations in Single File Components.

And I found a solution to make everyone happy: vue-i18n-service export|import

Vue I18n Service makes to manage SFC translations easier in a file. It collects all the <i18n> definitions in Single File Components and collects them into a file.

What's the flow:

Hello.vue

<template>
  <div>{{ hello }}</div>
</template>

<i18n>
{
  "en": {
    "hello": "Hi 

Github Repository

Tags: #VueJs #i18n