-
Notifications
You must be signed in to change notification settings - Fork 527
-
Notifications
You must be signed in to change notification settings - Fork 527
How to change language? #97
Comments
Hi @diego-caceres, good question! We didn't add l10n into the component yet. Need time to investigate. |
+1 for i18n support, need to translate in 12 langages, maybe adding some props or some options with texts and labels ? Thanks for your work ! |
@RiusmaX PRs welcome! |
Hi @isnifer ! I'm willing to try to add this feature, but do you have some guidance? The thing is that I have downloaded the project and I don't seem to find where the "texts" are. So far I have only found the ones in the strings.xml of the android project (which I'm not sure are all of them), but none on the iOS one. Do you hace any idea what I might be missing? Thanks |
Hi, @diego-caceres currently there is no place for that. I will investigate how to do it better today. Stay tuned! |
Hey! Have you guys made any progress on this particular issue? |
@jbouaziz sadly, but we don't have much free time for that. |
👍 |
3 similar comments
👍 |
👍 |
👍 |
@syzer @cauboy @melvinxie @juergengunz PRs are welcome! |
We decided to re-due whole screen... to match our new UX guidelines.. so not time, |
Commenting here to avoid duplicating. Is the localization implemented yet? |
@xenobarbital there are no ongoing PR's with that |
Hi @diego-caceres, here is how to add language support:
|
@yassinecc In Android, we can add our own launguage support without creating Pull Requests by adding our original strings file to <resources>
<string name="gettipsi_card_number">カード番号</string>
<string name="gettipsi_save">保存</string>
<string name="gettipsi_card_cvc">確認番号(CVC)</string>
<string name="gettipsi_google_pay_unavaliable">この端末では、 Google Pay はご利用になれません。</string>
<string name="gettipsi_user_cancel_dialog">キャンセルしました。カードは追加されていません。</string>
<string name="gettipsi_card_enter_dialog_title">カード番号を入力して下さい</string>
<string name="gettipsi_card_enter_dialog_positive_button">完了</string>
<string name="gettipsi_card_enter_dialog_negative_button">キャンセル</string>
<string name="gettipsi_card_number_label">カード</string>
<string-array name="gettipsi_currency_array">
<item>通貨 (任意)</item>
<item>指定しない</item>
<item>円</item>
</string-array>
</resources> In this way, we don't have to wait a new version of tipsi-stripe, and customize strings as much as we want. However, out-of-box solution is better for developers, so I will try to create PR as @yassinecc suggested. |
for me, this @acro5piano solution worked, just the "Expiration date" field that I didn't find where to switch. Thank you |
I didn't get how to translate Stripe's API responses ? |
@filipepiresg same with me, did you have any chance to solve it? |
Anybody knows the android's string for the "expiration date" ? |
Ok got it! Those works for android! https://github.com/tipsi/CreditCardEntry/blob/master/CreditCardEntry/res/values/strings.xml |
Hi, I'm using the paymentRequestWithCardForm method to show the Stripe pop up so that the user can enter his credit card information in order to get the Token.
The problem I have is that even though the device language is in Spanish, the title and buttons are in english ("Enter your card" in android, and "Add a card" in iOS). I can see that the project has Localizable.strings but I'm missing if there's a way to set the language. In my case, all the users will be spanish speakers (Almost 100%)
Thanks for any guidance.
The text was updated successfully, but these errors were encountered: