diff --git a/composer.json b/composer.json index e8582ad..dd2c1c4 100644 --- a/composer.json +++ b/composer.json @@ -27,9 +27,10 @@ }, "extra": { "expose": [ - "client/dist" + "client/dist", + "client/lang" ] }, "minimum-stability": "dev", "prefer-stable": true -} \ No newline at end of file +} diff --git a/src/Method.php b/src/Method.php index 2989b56..af78f7c 100644 --- a/src/Method.php +++ b/src/Method.php @@ -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'); }