From 546ebaf3db4f33f3f2ab0d55f37f7d99de5955e6 Mon Sep 17 00:00:00 2001 From: Roman Tsisyk Date: Tue, 2 Apr 2024 09:01:36 +0300 Subject: [PATCH] Localize Stripe links https://support.stripe.com/questions/supported-languages-for-stripe-checkout-and-payment-links Signed-off-by: Roman Tsisyk --- config.toml | 1 - templates/shortcodes/donate_buttons.html | 23 ++++++++++++++--------- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/config.toml b/config.toml index 02210843..a8f8bdd3 100644 --- a/config.toml +++ b/config.toml @@ -28,7 +28,6 @@ external_links_target_blank = true paths = "safe" [extra] -stripe = "https://donate.organicmaps.app/" ada = "addr1qxh59080ujswxuzapzrdvuzpglfktg09gq9q7dxpdl7jfka0g27wle9qudc96zyx6ecyz37nvks72sq2pu6vzmlayndsj02qhw" algo = "3UZXZEPGFAM7E74IO32Y7O6KOY3E7NNNJVBV4GFS5UWQQSY7AIM5PK7C2E" bch = "qqcjkzf7nlgvhng5vhq7n7hjrcdqccyqlq9h7gq4xw" diff --git a/templates/shortcodes/donate_buttons.html b/templates/shortcodes/donate_buttons.html index 5aaf428f..e6bf27f0 100644 --- a/templates/shortcodes/donate_buttons.html +++ b/templates/shortcodes/donate_buttons.html @@ -1,27 +1,32 @@ +{% if lang == 'en' %} +{% set stripe = 'https://donate.organicmaps.app' %} +{% else %} +{% set stripe = 'https://donate.organicmaps.app/?locale=' ~ lang %} +{% endif %}