Skip to content

Commit

Permalink
Translate navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
sukso96100 committed Nov 28, 2024
1 parent 47d296e commit 6b02bf3
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 21 deletions.
24 changes: 23 additions & 1 deletion messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,28 @@
"footer_source": "See source code",
"footer_other_years": "UbuCon Asia in other years",
"footer_ubucons": "UbuCon(s) in other regions",
"footer_top": "Go to the top of the page"
"footer_top": "Go to the top of the page",

"nav_about": "About",
"nav_venue_travel": "Venue & Travel",
"nav_venue_safety": "Venue & Safety",
"nav_venue_visas": "Visas and other travel requirements",
"nav_venue_accommodations": "Accommodations",
"nav_venue_city": "Getting to the city",
"nav_venue_explore": "Exploring the city",
"nav_venue_grant": "Travel grant",

"nav_programs": "Programs",
"nav_programs_timetable": "Timetable",
"nav_programs_social": "Social events",

"nav_sponsors": "Sponsors/Patrons",
"nav_sponsors_become": "Become a sponsor",
"nav_sponsors_our": "Our sponsors",
"nav_sponsors_patrons": "Patrons",

"nav_links": "Links",
"nav_links_news": "News",
"nav_links_docs": "Docs",
"nav_links_chat": "Chat"
}
25 changes: 24 additions & 1 deletion messages/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,29 @@
"footer_source": "See source code",
"footer_other_years": "UbuCon Asia in other years",
"footer_ubucons": "UbuCon(s) in other regions",
"footer_top": "Go to the top of the page"
"footer_top": "Go to the top of the page",

"nav_about": "About",
"nav_venue_travel": "Venue & Travel",
"nav_venue_safety": "Venue & Safety",
"nav_venue_visas": "Visas and other travel requirements",
"nav_venue_accommodations": "Accommodations",
"nav_venue_city": "Getting to the city",
"nav_venue_explore": "Exploring the city",
"nav_venue_grant": "Travel grant",

"nav_programs": "Programs",
"nav_programs_timetable": "Timetable",
"nav_programs_social": "Social events",

"nav_sponsors": "Sponsors/Patrons",
"nav_sponsors_become": "Become a sponsor",
"nav_sponsors_our": "Our sponsors",
"nav_sponsors_patrons": "Patrons",

"nav_links": "Links",
"nav_links_news": "News",
"nav_links_docs": "Docs",
"nav_links_chat": "Chat"

}
39 changes: 20 additions & 19 deletions src/config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@


import * as m from "./paraglide/messages.js";
import UCALogo from './assets/logo.svg'
import PashupatinathTempleImage from '@assets/pashupatinath_temple.jpg'
import UbuConAsiaCommitteeLogo from "@assets/UbuConAsiaCommittee.svg"
Expand All @@ -16,86 +17,86 @@ export const WebsiteConfig = {
faviconPath: UCALogo.src,
navigation: (locale: string) => [
{
label: "About",
label: m.nav_about(),
link: `/${locale}/about`,
childs: []
},
{
label: "Venue & Travel",
label: m.nav_venue_travel(),
link: "#",
childs: [
{
label: "Venue & Safety",
label: m.nav_venue_safety(),
link: `/${locale}/venue-and-travel/venue-and-safety`,
},
{
label: "Visas and other travel requirements",
label: m.nav_venue_visas(),
link: `/${locale}/venue-and-travel/visas-and-other-travel-requirements`,
},
{
label: "Accommodations",
label: m.nav_venue_accommodations(),
link: `/${locale}/venue-and-travel/accommodations`,
},
{
label: "Getting to the city",
label: m.nav_venue_city(),
link: `/${locale}/venue-and-travel/getting-to-the-city`,
},
{
label: "Exploring the city",
label: m.nav_venue_explore(),
link: `/${locale}/venue-and-travel/explore-city`,
},
{
label: "Travel grant",
label: m.nav_venue_grant(),
link: `/${locale}/venue-and-travel/travel-grant`,
}
]
},
{
label: "Programs",
label: m.nav_programs(),
link: "#",
childs: [
{
label: "Timetable",
label: m.nav_programs_timetable(),
link: "https://events.canonical.com/event/125/timetable/"
},
{
label: "Social events",
label: m.nav_programs_social(),
link: `/${locale}/programs/social-events/`
}
]
},
{
label: "Sponsors/Patrons",
label: m.nav_sponsors(),
link: "#",
childs: [
{
label: "Become a sponsor",
label: m.nav_sponsors_become(),
link: `/${locale}/sponsors/become-a-sponsor/`
},
{
label: "Our sponsors",
label: m.nav_sponsors_our(),
link: `/${locale}/sponsors/our-sponsors/`
},
{
label: "Patrons",
label: m.nav_sponsors_patrons(),
link: `/${locale}/sponsors/patrons/`
}
]
},
{
label: "Links",
label: m.nav_links(),
link: "#",
childs: [
{
label: "News",
label: m.nav_links_news(),
link: "https://blog.ubucon.asia/",
},
{
label: "Docs",
label: m.nav_links_docs(),
link: "https://docs.ubucon.asia",
},
{
label: "Chat",
label: m.nav_links_chat(),
link: "https://docs.ubucon.asia/chat",
}
]
Expand Down

0 comments on commit 6b02bf3

Please sign in to comment.