sdltm
TypeScript icon, indicating that this package has built-in type declarations

1.4.3 • Public • Published

sdltm

TypeScript library for converting SDLTM files (Translation Memory databases from Trados Studio) to TMX 1.4b

Installation

npm install sdltm

Example

import { TMReader } from "./TMReader";

const SUCCESS: string = 'Success';
const ERROR: string = 'Error';

class Test {

    constructor(sdltmFile: string, tmxFile: string) {
        new TMReader(sdltmFile, tmxFile, { 'productName': "My Tool", 'version': '1.0' }, (data: any) => {
            if (data.status === SUCCESS) {
                console.log(JSON.stringify(data));
            }
            if (data.status === ERROR) {
                console.error(data.reason);
            }
        });
    }
}

new Test('Japanese.sdltm', 'Japanese.tmx');

Readme

Keywords

none

Package Sidebar

Install

npm i sdltm

Weekly Downloads

6

Version

1.4.3

License

EPL-1.0

Unpacked Size

36.7 kB

Total Files

9

Last publish

Collaborators

  • rmraya