Add multilingual VTT transcript support with auto-detection#17
Draft
Copilot wants to merge 6 commits into
Draft
Conversation
Co-authored-by: davelab6 <261579+davelab6@users.noreply.github.com>
Co-authored-by: davelab6 <261579+davelab6@users.noreply.github.com>
Co-authored-by: davelab6 <261579+davelab6@users.noreply.github.com>
Co-authored-by: davelab6 <261579+davelab6@users.noreply.github.com>
Co-authored-by: davelab6 <261579+davelab6@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update site to support translated VTT files for posts
Add multilingual VTT transcript support with auto-detection
Oct 26, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enables displaying transcripts in 150+ languages when multiple localized VTT files exist. Video
Ja9dTjY3uWUhas 63 translations demonstrating the feature.Core Changes
_plugins/with_vtt.rb- Auto-detects and loads all language variants<video_id>.<lang>.vttpattern (e.g.,Ja9dTjY3uWU.en.vtt,Ja9dTjY3uWU.fr.vtt)languagesarray with{code, name, cues}objects to templates_layouts/post.html- Language selector UIassets/js/search.js- Language-aware searchassets/css/style.css- Responsive selector stylingUsage
File naming convention:
Posts reference base path (actual file need not exist):
Plugin finds all variants automatically. No post modifications required.
Language Detection
Liquid context variables:
languages- Array of all available languagesdefault_language- Preferred language code (defaults to 'en')cues- Default language cues (backward compatible)Files Modified
_plugins/with_vtt.rb(+256/-51)_layouts/post.html(+81/-11)assets/css/style.css(+50)assets/js/search.js(+16/-10)Total: 688 insertions, 26 deletions across 7 files
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.