Modified templates/index.html to allow internationalization

master
Lynne 6 years ago
parent d04a4d2499
commit 5866306378
  1. 10
      templates/index.html

@ -6,6 +6,16 @@ window.avatar = "{{ avatar }}";
window.your_name = "{{ _cfg("your-name") }}"; window.your_name = "{{ _cfg("your-name") }}";
window.default_amount = {{ _cfg("default-amount") }}; window.default_amount = {{ _cfg("default-amount") }};
window.default_type = "{{ _cfg("default-type") }}"; 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 %} {% if user %}
window.email = "{{user.email}}"; window.email = "{{user.email}}";
{% endif %} {% endif %}

Loading…
Cancel
Save