hexletguides.github.io icon indicating copy to clipboard operation
hexletguides.github.io copied to clipboard

Bug: Variable interpolation is broken in Disqus widget

Open DmitryBarskov opened this issue 1 year ago • 2 comments

Summary

Variable interpolation is broken in Disqus widget on Ru section of the website. This bug appears on any article page, but it works in En section.

obraz

Reproduction steps

1. Go to https://guides.hexlet.io/ru/kanban/ or any other article under /ru/
2. Scroll to the very bottom of the page
3. Wait until Disqus widget is loaded

Expected result

See "5 откликов" or any other number

Actual result

See "%(voteCount) откликов"

Browsers

Firefox, Chrome, Safari

OS

Mac

DmitryBarskov avatar Nov 03 '23 16:11 DmitryBarskov

взял в работу

bobronaud avatar Jan 19 '24 11:01 bobronaud

В коде проекта это не фиксится. Если я правильно понял по этой доке, то компонент этих реакций собирается в личном кабинете на https://disqus.com/. И все надписи задаются там, в ЛК. В самом проекте я пробовал менять локали в конфиге компонента DiscussionEmbed(который импортируется из либы disqus-react). При смене локали на англоязычных страницах меняется только 1 строка над смайликами: image

image А при смене локали на русскоязычной странице таже самая строка меняется следующим образом: image

image

Поэтому исходя из этого, делаю вывод, что нужно фиксить сборку реакций в личном кабинете сервиса Disqus.

bobronaud avatar Jan 19 '24 15:01 bobronaud