diff --git a/lib/aprsme_web/components/core_components.ex b/lib/aprsme_web/components/core_components.ex index f4bb908..58476bf 100644 --- a/lib/aprsme_web/components/core_components.ex +++ b/lib/aprsme_web/components/core_components.ex @@ -487,7 +487,7 @@ defmodule AprsmeWeb.CoreComponents do clip-rule="evenodd" /> - Light + {gettext("Light")}
  • @@ -495,7 +495,7 @@ defmodule AprsmeWeb.CoreComponents do - Dark + {gettext("Dark")}
  • @@ -507,7 +507,7 @@ defmodule AprsmeWeb.CoreComponents do clip-rule="evenodd" /> - Auto + {gettext("Auto")}
  • diff --git a/lib/aprsme_web/components/layouts/app.html.heex b/lib/aprsme_web/components/layouts/app.html.heex index 15e4b70..77ea184 100644 --- a/lib/aprsme_web/components/layouts/app.html.heex +++ b/lib/aprsme_web/components/layouts/app.html.heex @@ -208,18 +208,19 @@ data-map-page={to_string(assigns[:map_page] || false)} >
    - <.flash kind={:info} title="Success!" flash={@flash} /> - <.flash kind={:error} title="Error!" flash={@flash} /> + <.flash kind={:info} title={gettext("Success!")} flash={@flash} /> + <.flash kind={:error} title={gettext("Error!")} flash={@flash} /> <.flash id="disconnected" kind={:error} - title="We can't find the internet" + title={gettext("We can't find the internet")} close={false} autoshow={false} phx-disconnected={show("#disconnected")} phx-connected={hide("#disconnected")} > - Attempting to reconnect <.icon name="arrow-path" outline={true} class="ml-1 w-3 h-3 inline animate-spin" /> + {gettext("Attempting to reconnect")} + <.icon name="arrow-path" outline={true} class="ml-1 w-3 h-3 inline animate-spin" /> {@inner_content}
    diff --git a/lib/aprsme_web/components/layouts/map.html.heex b/lib/aprsme_web/components/layouts/map.html.heex index 3c793f0..9376e9a 100644 --- a/lib/aprsme_web/components/layouts/map.html.heex +++ b/lib/aprsme_web/components/layouts/map.html.heex @@ -195,18 +195,19 @@
    - <.flash kind={:info} title="Success!" flash={@flash} /> - <.flash kind={:error} title="Error!" flash={@flash} /> + <.flash kind={:info} title={gettext("Success!")} flash={@flash} /> + <.flash kind={:error} title={gettext("Error!")} flash={@flash} /> <.flash id="disconnected" kind={:error} - title="We can't find the internet" + title={gettext("We can't find the internet")} close={false} autoshow={false} phx-disconnected={show("#disconnected")} phx-connected={hide("#disconnected")} > - Attempting to reconnect <.icon name="arrow-path" outline={true} class="ml-1 w-3 h-3 inline animate-spin" /> + {gettext("Attempting to reconnect")} + <.icon name="arrow-path" outline={true} class="ml-1 w-3 h-3 inline animate-spin" /> {@inner_content}
    diff --git a/lib/aprsme_web/live/user_login_live.ex b/lib/aprsme_web/live/user_login_live.ex index cd56277..9bb485d 100644 --- a/lib/aprsme_web/live/user_login_live.ex +++ b/lib/aprsme_web/live/user_login_live.ex @@ -12,13 +12,13 @@ defmodule AprsmeWeb.UserLoginLive do
    -

    Sign in to account

    +

    {gettext("Sign in to account")}

    - Don't have an account? + {gettext("Don't have an account?")} <.link navigate={~p"/users/register"} class="link link-primary"> - Sign up + {gettext("Sign up")} - for an account now. + {gettext("for an account now.")}

    <.simple_form @@ -31,28 +31,28 @@ defmodule AprsmeWeb.UserLoginLive do >
    @@ -65,19 +65,19 @@ defmodule AprsmeWeb.UserLoginLive do value="true" class="checkbox checkbox-primary mr-2" /> - Keep me logged in + {gettext("Keep me logged in")}
    <.link navigate={~p"/users/reset_password"} class="link link-primary text-sm"> - Forgot your password? + {gettext("Forgot your password?")}
    -
    diff --git a/lib/aprsme_web/live/user_registration_live.ex b/lib/aprsme_web/live/user_registration_live.ex index b014510..9e8da07 100644 --- a/lib/aprsme_web/live/user_registration_live.ex +++ b/lib/aprsme_web/live/user_registration_live.ex @@ -14,13 +14,13 @@ defmodule AprsmeWeb.UserRegistrationLive do
    -

    Register for an account

    +

    {gettext("Register for an account")}

    - Already registered? + {gettext("Already registered?")} <.link navigate={~p"/users/log_in"} class="link link-primary"> - Sign in + {gettext("Sign in")} - to your account now. + {gettext("to your account now.")}

    <.simple_form @@ -35,12 +35,12 @@ defmodule AprsmeWeb.UserRegistrationLive do as={:user} >
    - Oops, something went wrong! Please check the errors below. + {gettext("Oops, something went wrong! Please check the errors below.")}