Skip to content

The logs by ./exe.sh is not clear #6

@jacobkim9881

Description

@jacobkim9881

Brief

Script started.
local_obj.json will be translated into other language version local_obj.json.
spawn node ./src/index.js 0 local_obj.json
0 :  /usr/local/bin/node
1 :  /Users/mac/localization-manager/src/index.js
2 :  0
3 :  local_obj.json
Tag name is undefined at:  []
Target language:  af
Tag name is undefined at:  undefined
file is written

Above it shows progress of translating by executing ./exe.sh local_obj.json. As executing the command target json file is copied and written as new translated json file without any error. And while waiting for finishing execution the user reads logs above, which contains unnecessary information. For example,

spawn node ./src/index.js 0 local_obj.json // this is inner command of the execution command.
1 :  /Users/mac/localization-manager/src/index.js // this is location of execution script at line 12 at ./src/index.js
Tag name is undefined at:  [] // this is console message while unit testing at line 61 at ./test/test-utils.js

Such information is needed when debugging but does not need while users executing. Rather users needs such information like Target json file the user puts, The progress how many translated json files are created. I want other contributors ideas which logs are not needed and which information is needed. After pondering this issue for a while, asking pull requesting will be proceed.

Problem

Some logs while executing command ./exe.sh local_obj.json looks not needed. Some information are omitted for users.

Objective

Suggestions and advices about helpful information to users while executing the repo.

Required environments

  1. You have linux like OS or apple OS.
  2. You have node.js within your OS.

How to check logs while executing

  1. Download this repository.
  2. Install node packages this repository needs at the repository directory.
  3. Execute this repository to check logs by command ./exe.sh local_obj.json
  4. Check the logs on the terminal(you can cancel execution to put ctrl + c or ctrl + z).
  5. Notice how the repository changes ./local_obj.json into ./_locales/*.json.

Wise advices

  1. Advices about logs which are not needed and should be deleted.
  2. About information that users need while executing the repo.
  3. Any advices that helps contribute this repo will be helpful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is neededquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions