Giter Club home page Giter Club logo

exctotmx-backend's Introduction

EXCtoTMX

This is the backend part for the simple project EXCtoTMX developed with TypeScript and Node.js (repo for the frontend part here). This minimal app converts a bilingual .xlsx file into a TMX file to be imported into translation software (CAT tools).

TMX is a type of XML file that contains translation units (source text and corresponding translations) that can be imported into translation memories (TMs) from translation software. A TM is a database of translations which is populated as translators translate source files.

Motivation

Having worked as a translator for many years, I often found myself in a situation where I had an Excel file with existing translations that could be reused in another translation project, so I needed to generate a TMX file to import these existing translations into the translation editor and avoid having to re-type or copy and paste each translation unit.

How it works

The TMX file is an XML file that follows a common structure, so this app basically allows you to upload a bilingual .xlsx file (source text in column A and translations in column B), which is read and processed to generate the proper XML data.

The backend uses Express, Multer to handle the uploaded file, then uses the library Excel.JS to read the uploaded .xlsx file and map it to an array of [source, translation] tuples, which is in turn mapped to the proper XML translation units. The app then combines all translations units into one single big string containing the TMX data, which is sent to the frontend for download.

The backend also does some validation, returning an error as a response if some of the needed information is not included in the request or if the file is empty.

Dependencies

The packages used for the backend were Express, Multer, CORS, Excel.JS and XML Formatter.

exctotmx-backend's People

Contributors

edmundobiglia avatar

Watchers

 avatar

Forkers

pgy866

exctotmx-backend's Issues

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.