sdltm
v1.4.0
Published
TypeScript library for converting SDLTM files to TMX 1.4
Downloads
25
Readme
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');