restructuring move translations to toplevel
This commit is contained in:
parent
5e03b4385f
commit
e5d8e6c62f
@ -81,7 +81,7 @@ impl Lang {
|
||||
pub const fn ftl_messages(self) -> &'static str {
|
||||
macro_rules! include_ftl_messages {
|
||||
( $lang_id:literal ) => {
|
||||
include_str!(concat!("../locales/", $lang_id, "/main.ftl"))
|
||||
include_str!(concat!("../../locales/", $lang_id, "/main.ftl"))
|
||||
};
|
||||
}
|
||||
match self {
|
||||
|
@ -19,7 +19,7 @@ fn init(url: Url, orders: &mut impl Orders<Msg>) -> Model {
|
||||
|
||||
log!(url);
|
||||
|
||||
let lang = I18n::new(Lang::DeDE);
|
||||
let lang = I18n::new(Lang::EnUS);
|
||||
|
||||
Model {
|
||||
index: 0,
|
||||
|
@ -58,8 +58,7 @@ pub fn navigation(i18n: &I18n, base_url: &Url, user: &Option<User>) -> Node<Msg>
|
||||
li![div![welcome]],
|
||||
// The logout button
|
||||
li![a![
|
||||
attrs! {At::Href => "/admin/logout"},
|
||||
ev(Ev::Click, |_| Msg::NoMessage),
|
||||
attrs! {At::Href => "/admin/logout/"},
|
||||
t("logout"),
|
||||
]]
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user