Added code for tranlating Enter your credit card number in payment.js
This commit is contained in:
parent
72d057e678
commit
e481ff947d
2 changed files with 6 additions and 1 deletions
|
@ -115,9 +115,13 @@ $(document).ready(function () {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var enter_ccard_text = "Enter your credit card number";
|
||||||
|
if (typeof window.enter_ccard_text !== 'undefined') {
|
||||||
|
enter_ccard_text = window.enter_ccard_text
|
||||||
|
}
|
||||||
var cardNumberElement = elements.create('cardNumber', {
|
var cardNumberElement = elements.create('cardNumber', {
|
||||||
style: credit_card_text_style,
|
style: credit_card_text_style,
|
||||||
placeholder: "Enter your credit card number"
|
placeholder: enter_ccard_text
|
||||||
});
|
});
|
||||||
cardNumberElement.mount('#card-number-element');
|
cardNumberElement.mount('#card-number-element');
|
||||||
|
|
||||||
|
|
|
@ -176,6 +176,7 @@
|
||||||
{% get_current_language as LANGUAGE_CODE %}
|
{% get_current_language as LANGUAGE_CODE %}
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
window.processing_text = '{%trans "Processing" %}';
|
window.processing_text = '{%trans "Processing" %}';
|
||||||
|
window.enter_your_card_text = '{%trans "Enter your credit card number" %}';
|
||||||
|
|
||||||
(function () {
|
(function () {
|
||||||
window.stripeKey = "{{stripe_key}}";
|
window.stripeKey = "{{stripe_key}}";
|
||||||
|
|
Loading…
Reference in a new issue