Modified templates/index.html to allow internationalization

This commit is contained in:
Lynne 2018-09-16 20:42:38 +02:00
parent d04a4d2499
commit 5866306378
1 changed files with 10 additions and 0 deletions

View File

@ -6,6 +6,16 @@ window.avatar = "{{ avatar }}";
window.your_name = "{{ _cfg("your-name") }}";
window.default_amount = {{ _cfg("default-amount") }};
window.default_type = "{{ _cfg("default-type") }}";
// Array used for translation of index.js sentences. See contrib/fr/overrides/index.html for example use
const i18n = {
"Monthly Donation": "Monthly Donation",
"One-time Donation": "One-time Donation",
"Donate ": "Donate ",
"Submitting...": "Submitting...",
"Donate": "Donate"
};
{% if user %}
window.email = "{{user.email}}";
{% endif %}