Skip to content

Commit cb1a5e8

Browse files
authored
Merge pull request #2 from sitegeist/feature/contextLanguage
use context language as configuration for form fields
2 parents d6413ce + 7212b35 commit cb1a5e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Resources/Private/Fusion/Captcha.fusion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ prototype(Sitegeist.FusionForm.FriendlyCaptcha:Captcha) < prototype(Neos.Fusion.
33
[email protected] = ${value ? value : Configuration.setting('Sitegeist.FusionForm.FriendlyCaptcha.siteKey')}
44
renderer = afx`
55
<input type="hidden" id={field.getName()} name={field.getName()} value="" />
6-
<div data-start="focus" class="frc-captcha" data-solution-field-name={field.getName()} data-sitekey={props.captchaSiteKey} data-puzzle-endpoint="https://api.friendlycaptcha.com/api/v1/puzzle"></div>
6+
<div data-start="focus" class="frc-captcha" data-lang={node.context.targetDimensions.language} data-solution-field-name={field.getName()} data-sitekey={props.captchaSiteKey} data-puzzle-endpoint="https://api.friendlycaptcha.com/api/v1/puzzle"></div>
77
`
88
}

0 commit comments

Comments
 (0)