Files
SpotiFLAC-Mobile/rust_backend/crates
zarzet bbd4332653 feat(lyrics): save AI translation word timing
A saved AI translation kept only its line text, so the word-synced
translation went back to line sync once the AI cache was gone. It now
travels with the lyrics as an [x-translation-words:<ms>:<base64 JSON>]
tag, the same JSON as [x-romaji-words].

- Both lyrics parsers read the new tag, keep it only when its words spell
  the line's translation, and move it with the file's offset. The native
  parser sends translationWords only for lines that have it, so the shared
  goldens stay as they were; a new golden covers the tag.
- Saving into the song file or a .mlrc file writes it, a new translation
  drops timing kept for the old one, and the lyrics editor moves it with
  its line like pronunciation timing.
- A shown translation whose timing the file lacks counts as unsaved, so
  the save action and automatic saving add it.
- Older versions drop the tag as an unknown x- ID tag.
2026-11-07 15:31:38 +07:00
..