1.1.0 • Published 3 years ago

translation-tracer v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

translation-tracer

check and trace git base translation

Install

Use as cli tool

npm install --global translation-tracer

Usage

CLI

before start

  1. create and cd directory
  2. clone base content repository. dirname 'content' is default
  3. clone translate content repository. dirname 'translated-content' is default

command

translation-tracer

command options

Option KeyCLI AliasDescriptionTypeDefault
--contentRepositoryBase content Repository for trancelation.string./content
--trancelatedRepositorytrancelated content Repository.string./trancelated-content
--contentPathtarget path in base content repository.stringen-US
--nocontentPathflag for contentPath make void.booleanfalse
--translatedPathtarget path in trancelated content repository.stringfiles/ja
--notranslatedPathflag for translatedPath make void.booleanfalse
--resultFilefilepath for log. templated by day.js format.string[./trancelate-status-]YYYY-MM-DD-HH-mm-ssZZ[.csv]
--exts--etarget file extention(eg. html, htm). if you want set multiple, type like '-e html --e htm --e txt'string list[html, htm]
--verbose--vverbose flagbooleantrue

Log File

Translation-tracer makes log file as csv with headers. because it assumed use in spreadsheet application. ex. filter status.

Column NumberColumn NameMean
0filetarget file name
1statustranslation status. ex. out of date
2scoretime or simirality parsentage
3extraextra data if need. likly rename base and renamed filename
Translation Status
NameDescriptionScoreExtra
not translatedthis file did not translated.latest update or create time
not deletebase file deleted but translation file did not deletedelete time
rename mistakerename mistake at translation file.base file similaritytranslated file name after renamed
out of datethis file is translated but out of datebase file's last modified time
rename mistaketranslated file miss renamedbase file similality percentagetranslated file name "after and before" renamed.
not renamedbase file renamed, but translated file did not renamebase file similality percentagetranslated file name when base file renamed
translated filename mistake or base file deletedtranslated file exist. but base file does not existif this file was renamed, file similality percentageif this file was renamed, filename before renamed