diff --git a/composer.json b/composer.json index 89030c5..1bf89ec 100644 --- a/composer.json +++ b/composer.json @@ -35,7 +35,8 @@ }, "extra": { "expose": [ - "client/dist" + "client/dist", + "client/lang" ] }, "minimum-stability": "dev", diff --git a/src/Method.php b/src/Method.php index b58d517..5a12a66 100644 --- a/src/Method.php +++ b/src/Method.php @@ -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'); }