Skip to content

dasmikko/i18n-editor

Repository files navigation

i18n Editor

A super simple editor for vue-18n by kazupon

It is hosted on github pages

Screenshot of the editor

Browser support

Sadly it only supports browsers that implement the FileSystem API fully, and Firefox doesn't do that.

What is this?

The goal of the tool is to simplify editing the language files, and not having to hassle with multiple files.

Normally you would have multiple JSON files for each language, like da.json, en.json and so on.

This can be quite tedious to maintain, especially when you have a lot of entries, or even add a whole new language.

Here is an example of my format for language files:

{
  "common": {
    "logoff": {
      "da": "Log af",
      "en": "Logout"
    },
    "saveCurrentView": {
      "da": "Gem nuværende view",
      "en": "Save current view"
    },
    "search": {
      "da": "Søg",
      "en": "Search"
    }
  }
}

In my version, each key contains all the languages, making it easier to edit.

I've made a Gist where I show how to use it in your own Vue.js project.

Don't worry, it's very easy to use my format.

How to use

First time use

git clone [email protected]:dasmikko/i18n-editor.git
cd i18n-editor
npm install
npm run build
npm run serve

After use

npm run serve

How to update

Simply do a git pull and run:

npm install
npm run build

Then you can run the npm run serve as usual

Future

I'm planning on supporting multiple language files, as that is the default way the i18n library does it.

Releases

No releases published

Packages

No packages published

Languages