Yoast SEO readability plugin - error in docs

This probably best reffers to @s.verna

In the plugin docs here there are errors in the example API code. Variable locale is re-declered several times in the same block-level scope…

Thanks! I’ve fixed the issue in the README!

1 Like

@s.verna I would like to suggest some upgrades to the plugin:

  1. It would be good to show some progress when API endpoint is called and loading… right now you kind of not know what’s going on, until waiting the result from API endpoint.

  2. When you switch the locale, the plugin still shows the result of last call. I would suggest clearing result when switching locale, so that you make sure you are loading SEO report for the right locale.