marsidev / react-turnstile

Cloudflare Turnstile integration for React.
https://www.npmjs.com/package/@marsidev/react-turnstile
MIT License
396 stars 25 forks source link

theme & language exports #35

Closed Zerebokep closed 1 year ago

Zerebokep commented 1 year ago

Not a bug, more of a feature request.

I would like to use next js's router.locale as language, unfortunately only auto and LangCode is accepted, it would be great if you code add string as type.

Same goes for theme, adding RenderOptions.theme as export would also work for me.

Keep up the good work.

marsidev commented 1 year ago

Hey, @Zerebokep!

To clarify, it would be great for you if I change the language type to:

language?: 'auto' | LangCode | 'string'

Also, export the following types: LangCode and Theme

Zerebokep commented 1 year ago

exactly :)

language?: 'auto' | LangCode | string to be precise

Zerebokep commented 1 year ago

Works splendidly now, thank you @marsidev!