https://github.com/rmraya/sdltm
Conversion of SDLTM files from Trados Studio to standard TMX 1.4b format
https://github.com/rmraya/sdltm
Last synced: about 1 year ago
JSON representation
Conversion of SDLTM files from Trados Studio to standard TMX 1.4b format
- Host: GitHub
- URL: https://github.com/rmraya/sdltm
- Owner: rmraya
- License: epl-1.0
- Created: 2022-09-18T11:12:06.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-11-14T10:21:56.000Z (over 1 year ago)
- Last Synced: 2024-11-27T09:16:13.832Z (over 1 year ago)
- Language: TypeScript
- Homepage:
- Size: 16.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sdltm
TypeScript library for converting SDLTM files (Translation Memory databases from Trados Studio) to TMX 1.4b
## Installation
`npm install sdltm`
## Example
```TypeScript
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');
```