Convert JS file as excel sheet and excel sheet convert to JS files
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.
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
}
}
}
First Export your JS file and then work on it.
MIT