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 736c2ad commit 28f926b
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 @@ -35,9 +35,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 @@ -57,6 +57,7 @@ public function getThumbnail(): string

public function applyRequirements(): void
{
Requirements::add_i18n_javascript('silverstripe/totp-authenticator: client/lang');
Requirements::javascript('silverstripe/totp-authenticator: client/dist/js/bundle.js');
Requirements::css('silverstripe/totp-authenticator: client/dist/styles/bundle.css');
}
Expand Down

0 comments on commit 28f926b

Please sign in to comment.