Skip to content

Commit

Permalink
Video Card Component – Fix the lang label
Browse files Browse the repository at this point in the history
  • Loading branch information
remibetin committed Jun 25, 2024
1 parent 4cac817 commit 4be395a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _components/video-card.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ It is possible to concatenate multiple sets of those subtitles using commas. See

{% include video-card.html
video-url="//media.w3.org/wai/evaluation-intros/conformance-evaluation.mp4"
captions="//media.w3.org/wai/evaluation-intros/conformance-evaluation-cc.srt|en"
captions="/wai-videos/evaluating/conformance-evaluation.en.vtt|en|default"
accessible-version="https://www.w3.org/WAI/test-evaluate/conformance/"
accessible-version-label="Video: Conformance Evaluation"
%}
%}
1 change: 1 addition & 0 deletions _includes/video-card.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
{% endif %}
<source src="{{ include.video-url }}" type="video/mp4">
{%- assign captions = include.captions | split: ',' -%}
{%- assign langs = site.data.lang -%}
{%- for caption in captions -%}
{%- assign c = caption | split: '|' -%}
{%- assign clangcode = c[1] -%}
Expand Down

0 comments on commit 4be395a

Please sign in to comment.