process-drive/translation-drive

This library file is help for javascript locales file convert to the Excel sheet. Then Excel sheet convert to the javascript locales file.

v1.0.0 2022-03-31 11:30 UTC

This package is not auto-updated.

Last update: 2024-04-12 13:55:39 UTC


README

logo.png

ProcessDrive JS Translation Converter

Latest Stable Version License Total Downloads Monthly Downloads Daily Downloads

Convert JS file as excel sheet and excel sheet convert to JS files

Installation

The preferred way to install this extension is through composer.

run

composer require process-drive/translation-drive

Either run

composer require process-drive/translation-drive:v1.0.0

or run

composer require process-drive/translation-drive:"Set your version"

to the require section of your composer.json file.

.env

JS_LOCALES      = "en,no,lt,sv,pl"
JS_KEY_STRING   = "no"
DIRECTORY       = "resources"
JS_PROJECT_PATH = "checklist"
FIND_DIRECTORY  = "language,languages"
JS_LOCALES      = Set your locales files
JS_KEY_STRING   = Key values render in JS File
DIRECTORY       = folder name (resources or public) 
JS_PROJECT_PATH = JS project file (vuejs project file) 
FIND_DIRECTORY  = Read Language folders (inside project file locale directory)
'resources' => {
    'checklist' => {
        'language' => {
          en.js
          no.js
        }
        'languages' => {
          en.js
          no.js
        }
    }
}

After Instalization

First Export your JS file and then work on it.

License

MIT