Changeset 137cca5 in Klonkt for src/views/pages/auth-login.ejs


Ignore:
Timestamp:
06/21/2026 11:35:49 AM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
fe86013
Parents:
bffb348
Message:

feat(i18n phase 3): welcome/first-run, login, register, bottom-tab translated

NL/EN/DE keys + views: welcome.ejs, auth-register.ejs, auth-login.ejs (common
strings; Google error map still NL), bottom-tab.ejs. The most visible visitor
pages of a fresh (German) site are now translated.

Co-Authored-By: Claude <noreply@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/views/pages/auth-login.ejs

    rbffb348 r137cca5  
    77%>
    88<div class="container auth-page">
    9   <h1><%= _admin ? 'Beheerder inloggen' : 'Inloggen' %></h1>
     9  <h1><%= _admin ? t('auth.admin_login_title') : t('nav.login') %></h1>
    1010  <% if (typeof success !== 'undefined' && success) { %><div class="alert alert-success"><%= success %></div><% } %>
    1111  <%
     
    3838      <% } %>
    3939      <label>
    40         <span>Gebruikersnaam of e-mail</span>
     40        <span><%= t('auth.username_or_email') %></span>
    4141        <input type="text" name="username" value="<%= username %>" required autofocus autocomplete="username">
    4242      </label>
    4343      <label>
    44         <span>Wachtwoord</span>
     44        <span><%= t('auth.password') %></span>
    4545        <input type="password" name="password" required autocomplete="current-password">
    4646      </label>
    47       <button type="submit" class="btn btn-primary">Inloggen</button>
    48       <p class="auth-link auth-link-muted"><a href="/auth/reset-request">Wachtwoord vergeten?</a></p>
     47      <button type="submit" class="btn btn-primary"><%= t('nav.login') %></button>
     48      <p class="auth-link auth-link-muted"><a href="/auth/reset-request"><%= t('auth.forgot') %></a></p>
    4949    </form>
    5050  <% } else if (googleReady) { %>
    5151    <%# Publieke login: alleen Google, voor luisteraars/fans. %>
    52     <p class="auth-sub">Log in om te reageren en je favorieten te bewaren.</p>
     52    <p class="auth-sub"><%= t('auth.public_sub') %></p>
    5353    <a class="btn btn-google" href="/auth/google<%= (typeof next !== 'undefined' && next) ? '?next=' + encodeURIComponent(next) : '' %>">
    5454      <svg class="g-icon" width="18" height="18" viewBox="0 0 18 18" aria-hidden="true">
     
    5858        <path fill="#EA4335" d="M9 3.58c1.32 0 2.5.45 3.44 1.35l2.58-2.58A9 9 0 0 0 .96 4.95l3.01 2.33C4.68 5.16 6.66 3.58 9 3.58z"/>
    5959      </svg>
    60       <span>Inloggen met Google</span>
     60      <span><%= t('auth.google_btn') %></span>
    6161    </a>
    6262  <% } else { %>
    63     <div class="alert">Inloggen met Google is op deze site nog niet ingesteld.</div>
     63    <div class="alert"><%= t('auth.google_unavail') %></div>
    6464  <% } %>
    6565
     
    6969      <span class="auth-admin-box-icon" aria-hidden="true">🔑</span>
    7070      <span class="auth-admin-box-text">
    71         <strong>Beheerder?</strong>
    72         <small>Log in met gebruikersnaam &amp; wachtwoord</small>
     71        <strong><%= t('auth.admin_box_q') %></strong>
     72        <small><%= t('auth.admin_box_sub') %></small>
    7373      </span>
    7474      <span class="auth-admin-box-arrow" aria-hidden="true">&rarr;</span>
Note: See TracChangeset for help on using the changeset viewer.