1
0
mirror of https://github.com/privacyguides/privacyguides.org.git synced 2025-07-02 09:42:35 +00:00

Support l10n of config strings (#2045)

This commit is contained in:
2023-02-27 12:36:42 -06:00
parent 227609f768
commit f396afa15f
13 changed files with 106 additions and 18 deletions

View File

@ -1,7 +1,7 @@
{% extends "base.html" %}
{% extends "main.html" %}
{% block extrahead %}
<link rel="preload" href="{{ 'assets/brand/WOFF/bagnard/Bagnard.woff' | url }}" as="font" type="font/woff" crossorigin>
<link rel="stylesheet" href="{{ 'assets/stylesheets/home.css?v=2.10.0' | url }}">
{{ super() }}
{% endblock %}
{% block tabs %}
{{ super() }}

View File

@ -0,0 +1,27 @@
{% macro t(key) %}{{ {
"language": "en",
"site.description": "Privacy Guides is your central privacy and security resource to protect yourself online.",
"theme.light": "Switch to light mode",
"theme.dark": "Switch to dark mode",
"theme.auto": "Switch to system theme",
"feedback.title": "Was this page helpful?",
"feedback.helpful.name": "This page was helpful",
"feedback.helpful.note": "Thanks for your feedback!",
"feedback.improve.name": "This page could be improved",
"feedback.improve.note": "Thanks for your feedback! Help us improve this page by opening a <a href='https://discuss.privacyguides.net/'>discussion on our forum</a>.",
"copyright.intro": "<b>Privacy Guides</b> is a non-profit, socially motivated website that provides information for protecting your data security and privacy.",
"copyright.affiliates": "We do not make money from recommending certain products, and we do not use affiliate links."
}[key] }}{% endmacro %}

View File

@ -0,0 +1,5 @@
{% macro t(key) %}{{ {
"language": "fr"
}[key] }}{% endmacro %}

View File

@ -0,0 +1,5 @@
{% macro t(key) %}{{ {
"language": "he"
}[key] }}{% endmacro %}

View File

@ -0,0 +1,5 @@
{% macro t(key) %}{{ {
"language": "nl"
}[key] }}{% endmacro %}