Skip to content

Commit

Permalink
FIX Expose localisations
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Oct 4, 2023
1 parent 8994a2f commit ee3237d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@
},
"extra": {
"expose": [
"client/dist"
"client/dist",
"client/lang"
]
},
"minimum-stability": "dev",
"prefer-stable": true
}
}
1 change: 1 addition & 0 deletions src/Method.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ public function getThumbnail(): string
*/
public function applyRequirements(): void
{
Requirements::add_i18n_javascript('silverstripe/webauthn-authenticator: client/lang');
Requirements::javascript('silverstripe/webauthn-authenticator: client/dist/js/bundle.js');
Requirements::css('silverstripe/webauthn-authenticator: client/dist/styles/bundle.css');
}
Expand Down

0 comments on commit ee3237d

Please sign in to comment.