Add support for XLIFF (.xlf) file format
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
- Create a new loader in
packages/cli/src/loaders/xliff.ts - Implement parsing logic for XLIFF XML structure
- 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
- Update
@replexica/specto include XLIFF format - Generate a changeset using
pnpm newfor both 'replexica' and '@replexica/cli' packages - 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.
@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
this one is up for grabs again!
@maxprilutskiy raised a fresh PR for this one