Skip to content

Commit

Permalink
Translate featured banner
Browse files Browse the repository at this point in the history
  • Loading branch information
sukso96100 committed Nov 28, 2024
1 parent c89c359 commit 5b04a9d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 3 additions & 1 deletion messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@
"mainBanner_footnote": "*To be confirmed",
"videoBanner_title": "An event for people with Ubuntu and FOSS in common",
"videoBanner_description1": "UbuCon Asia brings together people with diverse backgrounds across Asia with one thing in common: Ubuntu and FOSS - to explore what we can do with Ubuntu and FOSS and how we can contribute to its projects and communities.",
"videoBanner_description2": "Not sure if this event is for you? Watch our aftermovie from last year."
"videoBanner_description2": "Not sure if this event is for you? Watch our aftermovie from last year.",
"featuredBanner_title": "Featured Speakers",
"featuredBanner_button": "Full schedules"
}
4 changes: 3 additions & 1 deletion messages/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@
"mainBanner_footnote": "*To be confirmed",
"videoBanner_title": "An event for people with Ubuntu and FOSS in common",
"videoBanner_description1": "UbuCon Asia brings together people with diverse backgrounds across Asia with one thing in common: Ubuntu and FOSS - to explore what we can do with Ubuntu and FOSS and how we can contribute to its projects and communities.",
"videoBanner_description2": "Not sure if this event is for you? Watch our aftermovie from last year."
"videoBanner_description2": "Not sure if this event is for you? Watch our aftermovie from last year.",
"featuredBanner_title": "Featured Speakers",
"featuredBanner_button": "Full schedules"
}
5 changes: 3 additions & 2 deletions src/components/FeaturedSpeakers.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
import { WebsiteConfig } from "../config";
import eventLogo from "@assets/logo.svg";
import * as m from "../paraglide/messages.js";
const indicoResponse = await fetch(WebsiteConfig.featuredSpeakers.indicoExportUrl);
const indicoResJson = await indicoResponse.json();
Expand Down Expand Up @@ -45,7 +46,7 @@ for (const session of featuredSessions) {
</div>

<div class="row">
<h2>Featured speakers</h2>
<h2>{m.featuredBanner_title()}</h2>
{featuredSpeakers.map((speaker) => (
<div class="col-4 col-medium-3">
<a class="p-media-object--large p-button--base" href={speaker.url} target="_blank">
Expand Down Expand Up @@ -75,7 +76,7 @@ for (const session of featuredSessions) {
<div class="row">
<div class="col-12">
<a href={WebsiteConfig.featuredSpeakers.fullSchedulesUrl} target="_blank" class="p-button">
Full schedules
{m.featuredBanner_button()}
</a>
</div>
</div>
Expand Down

0 comments on commit 5b04a9d

Please sign in to comment.