Skip to content

Commit

Permalink
Merge pull request #389 from omise/feature/MIT-1325
Browse files Browse the repository at this point in the history
Fixed Japanese translation issue in secure form.
  • Loading branch information
aashishgurung authored Aug 4, 2023
2 parents f0f5895 + c0bf7c0 commit e9fe347
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 e9fe347

Please sign in to comment.