web/DonateOptionsCard: parametrize card processor string

This commit is contained in:
dumbmoron 2024-09-04 17:01:51 +00:00
parent 218916cee3
commit f0f5d7be7e
No known key found for this signature in database
2 changed files with 4 additions and 5 deletions

View file

@ -9,8 +9,7 @@
"card.monthly": "monthly donation", "card.monthly": "monthly donation",
"card.custom": "custom amount (from $2)", "card.custom": "custom amount (from $2)",
"card.processor.stripe": "processed by stripe", "card.processor": "processed by {{value}}",
"card.processor.liberapay": "processed by liberapay",
"card.option.5": "cup of coffee", "card.option.5": "cup of coffee",
"card.option.10": "full size pizza", "card.option.10": "full size pizza",

View file

@ -87,7 +87,7 @@
<div class="donation-type-text"> <div class="donation-type-text">
<div class="donate-card-title">{$t("donate.card.once")}</div> <div class="donate-card-title">{$t("donate.card.once")}</div>
<div class="donate-card-subtitle"> <div class="donate-card-subtitle">
{$t("donate.card.processor.stripe")} {$t("donate.card.processor", { value: 'stripe' })}
</div> </div>
</div> </div>
</button> </button>
@ -103,7 +103,7 @@
<div class="donation-type-text"> <div class="donation-type-text">
<div class="donate-card-title">{$t("donate.card.monthly")}</div> <div class="donate-card-title">{$t("donate.card.monthly")}</div>
<div class="donate-card-subtitle"> <div class="donate-card-subtitle">
{$t("donate.card.processor.liberapay")} {$t("donate.card.processor", { value: 'liberapay' })}
</div> </div>
</div> </div>
</button> </button>
@ -146,7 +146,7 @@
</button> </button>
</div> </div>
<div class="donate-card-subtitle processor-mobile"> <div class="donate-card-subtitle processor-mobile">
{$t(`donate.card.processor.${processor}`)} {$t("donate.card.processor", { value: processor })}
</div> </div>
</DonateCardContainer> </DonateCardContainer>