Skip to content

Commit

Permalink
Fixed the issue with Japanese language Support in the secure form.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aashish committed Aug 3, 2023
1 parent 122bc3c commit b21c14b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions assets/javascripts/omise-embedded-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,11 @@ function showOmiseEmbeddedCardForm({
}
element.style.height = iframeElementHeight + 'px'

const localeMatching = {
en_US: 'en',
ja_JP: 'ja',
th_TH: 'th'
}

OmiseCard.configure({
publicKey: publicKey,
element,
customCardForm: true,
locale: localeMatching[locale] ?? 'en',
locale: locale,
customCardFormTheme: theme,
customCardFormHideRememberCard: hideRememberCard ?? false,
customCardFormBrandIcons: brandIcons ?? null,
Expand Down

0 comments on commit b21c14b

Please sign in to comment.