mirror of
https://github.com/NetworkCats/rustyip.git
synced 2026-11-13 16:17:46 +00:00
- Add i18n module with Locale enum, PO parser, and Accept-Language negotiation
- Create gettext .po translation files for en, es, de, ja, ko, id, fr, ru, pt, it, zh-Hant, zh-Hans, nl, ar
- Route HTML pages under /{lang}/ prefix using IETF language tags
- Auto-detect browser language and redirect from / to /{lang}/
- Add language selector dropdown in footer
- Localize geo names (country, city) from MMDB where available
- Add hreflang alternate links and multilingual sitemap for SEO
- Support RTL layout for Arabic
- Update integration tests for new routing structure
23 lines
842 B
HTML
23 lines
842 B
HTML
<!DOCTYPE html>
|
|
<html lang="{{ lang_tag }}" dir="{{ html_dir }}">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>{% block title %}{{ site_domain }}{% endblock %}</title>
|
|
{% block head_meta %}{% endblock %}
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
{% block head_preconnect %}{% endblock %}
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;600&display=swap">
|
|
{% block head_stylesheets %}{% endblock %}
|
|
<link rel="stylesheet" href="/static/style.css?v={{ css_version }}">
|
|
{% block head_extra %}{% endblock %}
|
|
</head>
|
|
<body>
|
|
<main>
|
|
{% block content %}{% endblock %}
|
|
</main>
|
|
{% block footer %}{% endblock %}
|
|
</body>
|
|
</html>
|