lingo.dev
lingo.dev copied to clipboard
Add support for SRT (SubRip Subtitle) file format
What
Implement a loader for SRT files in Replexica.
Why
To support video editors and translators working with video subtitles.
How
- Create a new loader in
packages/cli/src/loaders/srt.ts - Implement parsing logic for SRT structure
- Add two unit tests in
packages/cli/src/loaders/index.spec.ts:- Test parsing a simple SRT file
- Test handling multi-line subtitles in SRT entries
- Update
@replexica/specto include SRT format - Generate a changeset using
pnpm newfor both 'replexica' and '@replexica/cli' packages - In the pull request, include a link to the SRT 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 please assign this issue to me I am already trying to solve this
@partik03 assigned, go for it!