@l10nmonster/helpers-xliff

1.0.0 • Public • Published

L10n Monster PO Helpers

XLIFF Translator

this.translationProvider = new translators.XliffBridge({
    requestPath: (lang, prjId) => `xliff/outbox/prj${prjId)}-${lang}.xml`,
    completePath: (lang, prjId) => `xliff/inbox/prj${(prjId)}-${lang}.xml`,
    quality: 80,
});

XLIFF is the industry standard for translation exchange. The adapter writes translation requests as XLIFF files that can be manually given to a translation vendor. Once translations are received, the corresponding translated files can be imported and saved. There are no standard naming conventions for xliff files, so any can be implemented by providing 2 functions in the requestPath and completePath properties. The functions are given the target language and the project id as parameters from which to form a naming convention. By default, quality is set to 50 but it should be specified by passing the quality property.

Readme

Keywords

none

Package Sidebar

Install

npm i @l10nmonster/helpers-xliff

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

9.96 kB

Total Files

5

Last publish

Collaborators

  • diegone