Skip to content

Commit b77fbb4

Browse files
FIX Expose localisations (#139)
1 parent 736c2ad commit b77fbb4

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,10 @@
3535
},
3636
"extra": {
3737
"expose": [
38-
"client/dist"
38+
"client/dist",
39+
"client/lang"
3940
]
4041
},
4142
"minimum-stability": "dev",
4243
"prefer-stable": true
43-
}
44+
}

src/Method.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ public function getThumbnail(): string
5757

5858
public function applyRequirements(): void
5959
{
60+
Requirements::add_i18n_javascript('silverstripe/totp-authenticator: client/lang');
6061
Requirements::javascript('silverstripe/totp-authenticator: client/dist/js/bundle.js');
6162
Requirements::css('silverstripe/totp-authenticator: client/dist/styles/bundle.css');
6263
}

0 commit comments

Comments
 (0)