nuxt-modules / turnstile

🔥 Cloudflare Turnstile integration for Nuxt
https://cloudflare.com/products/turnstile
MIT License
215 stars 17 forks source link

feat: Internationalize turnstile widget #286

Closed alinakuzina closed 7 months ago

alinakuzina commented 7 months ago

Turnstile includes a configuration option to set the language. In @nuxtjs/turnstile, a type error arises due to this option not being mentioned in the TurnstileRenderOptions interface. This commit addresses the issue by adding the language property to the TurnstileRenderOptions interface, eliminating the type error. Additionally, language changes switcher in the playground was added.

codecov[bot] commented 7 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (46ce9ab) 82.60% compared to head (7418b7c) 82.60%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #286 +/- ## ======================================= Coverage 82.60% 82.60% ======================================= Files 2 2 Lines 115 115 Branches 13 13 ======================================= Hits 95 95 Misses 20 20 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.