在两个地方都可以设置
VALUE |
LOCALE |
ELEMENTS |
CHECKOUT |
auto |
Stripe detects the locale of the browser |
✔ |
✔ |
ar |
Arabic |
✔ |
|
bg |
Bulgarian (Bulgaria) |
✔ |
✔ |
cs |
Czech (Czech Republic) |
✔ |
✔ |
da |
Danish (Denmark) |
✔ |
✔ |
de |
German (Germany) |
✔ |
✔ |
el |
Greek (Greece) |
✔ |
✔ |
en |
English |
✔ |
✔ |
en-GB |
English (United Kingdom) |
✔ |
✔ |
es |
Spanish (Spain) |
✔ |
✔ |
es-419 |
Spanish (Latin America) |
✔ |
✔ |
et |
Estonian (Estonia) |
✔ |
✔ |
fi |
Finnish (Finland) |
✔ |
✔ |
fil |
Filipino (Philipines) |
✔ |
✔ |
fr |
French (France) |
✔ |
✔ |
fr-CA |
French (Canada) |
✔ |
✔ |
he |
Hebrew (Israel) |
✔ |
|
hr |
Croatian (Croatia) |
✔ |
✔ |
hu |
Hungarian (Hungary) |
✔ |
✔ |
id |
Indonesian (Indonesia) |
✔ |
✔ |
it |
Italian (Italy) |
✔ |
✔ |
ja |
Japanese (Japan) |
✔ |
✔ |
ko |
Korean (Korea) |
✔ |
✔ |
lt |
Lithuanian (Lithuania) |
✔ |
✔ |
lv |
Latvian (Latvia) |
✔ |
✔ |
ms |
Malay (Malaysia) |
✔ |
✔ |
mt |
Maltese (Malta) |
✔ |
✔ |
nb |
Norwegian Bokmål |
✔ |
✔ |
nl |
Dutch (Netherlands) |
✔ |
✔ |
pl |
Polish (Poland) |
✔ |
✔ |
pt-BR |
Portuguese (Brazil) |
✔ |
✔ |
pt |
Portuguese (Brazil) |
✔ |
✔ |
ro |
Romanian (Romania) |
✔ |
✔ |
ru |
Russian (Russia) |
✔ |
✔ |
sk |
Slovak (Slovakia) |
✔ |
✔ |
sl |
Slovenian (Slovenia) |
✔ |
✔ |
sv |
Swedish (Sweden) |
✔ |
✔ |
th |
Thai (Thailand) |
✔ |
✔ |
tr |
Turkish (Turkey) |
✔ |
✔ |
vi |
Vietnamese (Vietnam) |
✔ |
✔ |
zh |
Chinese Simplified (China) |
✔ |
✔ |
zh-HK |
Chinese Traditional (Hong Kong) |
✔ |
✔ |
zh-TW |
Chinese Traditional (Taiwan) |
✔ |
✔ |
1. 在创建 Stripe
对象的时候, 通过参数配置
const options = {};
options.locale = 'zh';
this.stripe = Stripe(publicKey, options);
2. 在创建页面元素的时候, 通过参数设置
this.stripe.elements({appearance, clientSecret, locale: 'zh'});