this repo has no description
lustre frontent oat-ui gleam
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

馃寪 add translations to navbar

+37 -6
+37 -6
src/client/page/navbar.gleam
··· 20 20 let style = class("flex justify-between h-full border-b md:py-4 md:px-24") 21 21 html.nav([attr.data("topnav", ""), style], [ 22 22 view_left_section(), 23 - view_middle_section(), 23 + view_middle_section(lang), 24 24 view_right_section(session, lang), 25 25 ]) 26 26 } ··· 41 41 ]) 42 42 } 43 43 44 - fn view_middle_section() -> element.Element(Msg) { 44 + fn view_middle_section(lang: lang.Language) -> element.Element(Msg) { 45 45 let a_style = class("hover:cursor-pointer") 46 46 html.section([class("hidden space-x-4 lg:inline text-subtext")], [ 47 - html.a([a_style], [html.text("Solu莽玫es")]), 48 - html.a([a_style], [html.text("Como Funciona")]), 49 - html.a([a_style], [html.text("Benef铆cios")]), 50 - html.a([a_style], [html.text("Contato")]), 47 + html.a([a_style], [ 48 + html.text(case lang { 49 + lang.BrazillianPortuguese | lang.Portuguese -> "Solu莽玫es" 50 + lang.English -> "Solutions" 51 + lang.German -> "L枚sungen" 52 + lang.Spanish -> "Soluciones" 53 + }), 54 + ]), 55 + 56 + html.a([a_style], [ 57 + html.text(case lang { 58 + lang.BrazillianPortuguese | lang.Portuguese -> "Como Funciona" 59 + lang.English -> "How it works" 60 + lang.German -> "So funktioniert es" 61 + lang.Spanish -> "C贸mo funciona" 62 + }), 63 + ]), 64 + 65 + html.a([a_style], [ 66 + html.text(case lang { 67 + lang.BrazillianPortuguese | lang.Portuguese -> "Benef铆cios" 68 + lang.English -> "Benefits" 69 + lang.German -> "Vorteile" 70 + lang.Spanish -> "Beneficios" 71 + }), 72 + ]), 73 + 74 + html.a([a_style], [ 75 + html.text(case lang { 76 + lang.BrazillianPortuguese | lang.Portuguese -> "Contato" 77 + lang.English -> "Contact" 78 + lang.German -> "Kontakt" 79 + lang.Spanish -> "Contacto" 80 + }), 81 + ]), 51 82 ]) 52 83 } 53 84