Add i18n support for French and German with browser language detection
CI / test-and-package (push) Successful in 35s

This commit is contained in:
agentbox
2026-08-01 06:00:29 +00:00
parent 218e2b6fb0
commit b46691fee3
9 changed files with 519 additions and 78 deletions
+6 -6
View File
@@ -1,19 +1,19 @@
{% extends "base.html" %}
{% block title %}Login — Meal Tracker{% endblock %}
{% block title %}{{ t('Login — Meal Tracker') }}{% endblock %}
{% block content %}
<div class="form-card">
<h2>Log In</h2>
<h2>{{ t('Log In') }}</h2>
<form method="POST">
<label for="username">Username</label>
<label for="username">{{ t('Username') }}</label>
<input type="text" id="username" name="username" required autofocus>
<label for="password">Password</label>
<label for="password">{{ t('Password') }}</label>
<input type="password" id="password" name="password" required>
<button type="submit" class="btn btn-primary">Log In</button>
<button type="submit" class="btn btn-primary">{{ t('Log In') }}</button>
</form>
<p class="form-footer">
Don't have an account? <a href="{{ url_for('auth.register') }}">Register</a>
{{ t("Don't have an account?") }} <a href="{{ url_for('auth.register') }}">{{ t('Register') }}</a>
</p>
</div>
{% endblock %}