lingo.dev icon indicating copy to clipboard operation
lingo.dev copied to clipboard

Add support for XLIFF (.xlf) file format

Open vrcprl opened this issue 2 years ago • 3 comments

What

Implement a loader for XLIFF files in Replexica.

Why

To support developers, LSPs, and translation agencies working on software, web, and mobile app localization.

How

  1. Create a new loader in packages/cli/src/loaders/xliff.ts
  2. Implement parsing logic for XLIFF XML structure
  3. Add two unit tests in packages/cli/src/loaders/index.spec.ts:
    • Test parsing a simple XLIFF file
    • Test handling context groups in XLIFF entries
  4. Update @replexica/spec to include XLIFF format
  5. Generate a changeset using pnpm new for both 'replexica' and '@replexica/cli' packages
  6. In the pull request, include a link to the XLIFF specification used.

After completing the task

Noticed a file format Replexica doesn't yet support? Please create a new GitHub ticket (if it doesn't yet exist!), using the format/structure of this GitHub issue.

vrcprl avatar Nov 04 '24 19:11 vrcprl

@maxprilutskiy was working on this using a library xliff but this file does not contain type definition file for the function, hence we need to create modules for type definitions for the functions used So should I proceed with this approach or you suggest doing something else

partik03 avatar Nov 08 '24 11:11 partik03

this one is up for grabs again!

maxprilutskiy avatar Nov 20 '24 20:11 maxprilutskiy

@maxprilutskiy raised a fresh PR for this one

partik03 avatar Nov 23 '24 18:11 partik03