1.1.0 • Published 6 months ago

sdltm v1.1.0

Weekly downloads
-
License
EPL-1.0
Repository
github
Last release
6 months ago

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');
1.1.0

6 months ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago