Giter VIP home page Giter VIP logo

Comments (3)

kikito avatar kikito commented on July 24, 2024 1

Hi again,

The thing that worries me is screenreaders. I am not familiar with them but I must assume that at least some of them will read the "sentence for humans" aloud.

In order to make it compatible with the current implementation, it would have to accept a block in the initializer:

# config/initializers/invisible_captcha.rb
InvisibleCaptcha.setup do |config|
  config.sentence_for_humans = { I18n.t("your_translation_key", "default value") }
end

But ideally it should accept strings too to make it compatible with existing implementations.

I think the PR will be small enough.

On the other hand, I'm preparing a new release here: #8. Any kind of feedback is much appreciated.

My view, especially in pre-1.0 releases, is: "release early, release often". I think the current state is good enough for making a new release. Any missing docs, etc can come in a 0.8.1 release if you want.

Buen trabajo estΓ‘is haciendo con el proyecto de Consul πŸ‘

Gracias! La idea es usar invisible_captcha en Consul :)

from invisible_captcha.

markets avatar markets commented on July 24, 2024

hi @kikito,

Thanks for your suggestion. But I'm not sure whether it is worth... The gem uses just a couple of strings:

  • sentence_for_humans: text for real users, just in case the honeypot is visible (kind of fallback)
  • timestamp_error_message: error message (flash message) when threshold is reached

And ideally a real user shouldn't see those messages frequently ... πŸ˜…

Would be enough (IMHO) to achieve that with:

# config/initializers/invisible_captcha.rb
InvisibleCaptcha.setup do |config|
  config.sentence_for_humans = I18n.t("your_translation_key")
end

But locales are loaded after the initializers... so it doesn't work.

Anyway, if the integration is "easy" and doesn't involve much extra code, we could assess the idea, why not? What do you think?

On the other hand, I'm preparing a new release here: #8. Any kind of feedback is much appreciated.

PS. Buen trabajo estΓ‘is haciendo con el proyecto de Consul πŸ‘

from invisible_captcha.

markets avatar markets commented on July 24, 2024

Hi @kikito, thanks a lot for your feedback and those PRs πŸ’―

I have some free time tomorrow, so I'll review it deeply, merge and cut a new version.

from invisible_captcha.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.