Skip to content

Commit

Permalink
Merge pull request #4 from ossycodes/fix-tests-gitaction
Browse files Browse the repository at this point in the history
fix tests
  • Loading branch information
ossycodes authored Jan 7, 2023
2 parents 79c3ef3 + a8eb58d commit 459ab75
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/FriendlyCaptcha.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ protected function prepareAttributes(array $attributes)

$attributes['class'] = trim('frc-captcha');

$locale = \App::currentLocale();
$locale = app()->getLocale();

if (in_array($locale, ["en", "fr", "de", "it", "nl", "pt", "es", "ca", "da", "ja", "ru", "sv", "el", "uk", "bg", "cs", "sk", "no", "fi", "lt", "lt", "pl", "et", "hr", "sr", "sl", "hu", "ro", "zh", "zh_TW", "vi"])) {
//use supported locale - https://docs.friendlycaptcha.com/#/widget_api?id=data-lang-attribute
$attributes['data-lang'] = $locale;
Expand Down

0 comments on commit 459ab75

Please sign in to comment.