From 586630637810af048ea2541c18469654ce1baeb4 Mon Sep 17 00:00:00 2001 From: Lynne <> Date: Sun, 16 Sep 2018 20:42:38 +0200 Subject: [PATCH] Modified templates/index.html to allow internationalization --- templates/index.html | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/templates/index.html b/templates/index.html index cd22531..620aa9a 100644 --- a/templates/index.html +++ b/templates/index.html @@ -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 %}