Giter Site home page Giter Site logo

esail-translate-checker's Introduction

eSail Language Translation Checker

Translate a lot of texts tempered with markup is an error prune task. This script is intended to assure the tags and structure are not compromised.

Online version

rodrigolop.es/esail

How to Use (CLI version)

  • NodeJS required version > 14

  • Install dependecies:

    npm install

  • Download csv from zoho and move than to this directory.

  • Run

    node cli.js #run against all langs node cli.js --pt #for pt lang only

Dev

To run the tests:

npm run test

Sample output

demo0

How to Interpret the Results

Two validations is run against the CSVs.

  1. Check for Empties
./eSailData_LocaleAlerts.csv
┌line 93 2=Alert Header
├en Apparent Wind
└it <empty>

Read: At sheet LocaleAlerts, line 93, the english column 2=Alert Header has no corresponding italian (it) translation.

  1. Markup Matcher

Checks if the tags on the en column matches the tags on other language column.

./eSailData_LocaleAlerts.csv
┌line 33 3=Alert Text     \n\n    °  <flink=000></fLink>
├en [ '<i>', '</I>', '<Rebind_Autopilot>' ]
└it [ '<i>', '<Rebind_Autopilot>' ]

Read: At sheet LocaleAlerts, line 33, the english column 3=Alert Text     \n\n    ° <flink=000></fLink> has a problem with the markup tags in the corresponding italian (it) column. In this example, the problem is: no closing </I>.

Links

eSail Sailing Simulator

esail-translate-checker's People

Contributors

rodvlopes avatar

Watchers

 avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.