Skip to content

Commit

Permalink
Fix locale error
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinwy committed Jul 4, 2024
1 parent 8e8214f commit 205760e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,12 @@ define(
return config.title;
},

getLocale: function() {
var config = this.getConfig();

return config.locale;
},

getPublishableKey: function () {
var config = this.getConfig();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ <h3 data-bind="text: getTitle()"></h3>
data-bind="attr: { 'session': $parent.getSession(),
'payment-type': method.value,
'publishable-key': $parent.getPublishableKey(),
'locale': $parent.komojuSession().default_locale,
'locale': $parent.getLocale(),
}"
token = ""
name="komoju_payment_token"
Expand Down

0 comments on commit 205760e

Please sign in to comment.