Skip to content

Commit 5af01c8

Browse files
committed
translate hero video
1 parent 8857d38 commit 5af01c8

File tree

4 files changed

+18
-3
lines changed

4 files changed

+18
-3
lines changed

templates/components/styles/hero.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@
1717
<div class="l-frame l-frame--16-9">
1818
<video controls loop muted playsinline preload="metadata" data-video="hero">
1919
<source src="{{ page.heroVideo[0].url }}" type="video/mp4">
20-
Sorry, your browser does not support embedded videos. Here is a <a href="{{ page.heroVideo[0].url }}">link to the video</a> instead.
20+
{{ 'components.hero.video.not_supported'|trans({video_url: page.heroVideo[0].url}, 'w3c_website_templates_bundle') }}
2121
</video>
2222
</div>
2323
<button class="button" data-video-control="hero" hidden>
2424
<svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 640 640" height="20" width="20" aria-hidden="true" focusable="false">
2525
<!--!Font Awesome Free v7.0.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.-->
2626
<path class="play-icon" d="M187.2 100.9c-12.4-6.8-27.4-6.5-39.6.7-12.2 7.2-19.6 20.3-19.6 34.4v368c0 14.1 7.5 27.2 19.6 34.4 12.1 7.2 27.2 7.5 39.6.7l336-184c12.8-7 20.8-20.5 20.8-35.1 0-14.6-8-28.1-20.8-35.1l-336-184z"/>
2727
<path class=pause-icon d="M176 96c-26.5 0-48 21.5-48 48v352c0 26.5 21.5 48 48 48h64c26.5 0 48-21.5 48-48V144c0-26.5-21.5-48-48-48h-64zm224 0c-26.5 0-48 21.5-48 48v352c0 26.5 21.5 48 48 48h64c26.5 0 48-21.5 48-48V144c0-26.5-21.5-48-48-48h-64z"/></svg>
28-
<span class="visuallyhidden">Play</span>
28+
<span class="visuallyhidden">{{ 'components.hero.video.play'|trans({}, 'w3c_website_templates_bundle') }}</span>
2929
</button>
3030
</div>
3131
</div>

translations/w3c_website_templates_bundle+intl-icu.en.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ components:
131131
=0 { evangelists }
132132
one { evangelist }
133133
other { evangelists }
134-
}
134+
}
135135
members:
136136
title: W3C Members
137137
members_include: "{count} member organizations are involved in the {ecosystem_name} ecosystem, including:"
@@ -154,6 +154,11 @@ components:
154154
pressrelease: Press release
155155
pressreleases: Press releases
156156
page: Page
157+
hero:
158+
video:
159+
play: Play
160+
pause: Pause
161+
not_supported: "Sorry, your browser does not support embedded videos. Here is a <a href=\"{video_url}\">link to the video</a> instead."
157162
post:
158163
meta:
159164
credit: >

translations/w3c_website_templates_bundle+intl-icu.ja.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,11 @@ components:
152152
pressrelease: プレスリリース
153153
pressreleases: プレスリリース
154154
page: ページ
155+
hero:
156+
video:
157+
play: __components.hero.video.play__
158+
pause: __components.hero.video.pause__
159+
not_supported: __components.hero.video.not_supported__ {video_url}
155160
post:
156161
meta:
157162
credit: >

translations/w3c_website_templates_bundle+intl-icu.zh-hans.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,11 @@ components:
150150
pressrelease: 媒体新闻稿
151151
pressreleases: 媒体新闻稿
152152
page: 页面
153+
hero:
154+
video:
155+
play: __components.hero.video.play__
156+
pause: __components.hero.video.pause__
157+
not_supported: __components.hero.video.not_supported__ {video_url}
153158
post:
154159
meta:
155160
credit: >

0 commit comments

Comments
 (0)