Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Проблема перевода на субдоменах #9

Open
ShushkovEV opened this issue Apr 5, 2024 · 1 comment
Open

Comments

@ShushkovEV
Copy link

ShushkovEV commented Apr 5, 2024

Похоже есть проблема с сохранением путей куки для поддоменов. На основном сайте переводы переключаются, а на субдоменах выставляется один и не меняется.
there is a problem with changing the translation on subdomains. the first posted transfer is saved and does not change

@ShushkovEV ShushkovEV changed the title translation on subdomains Проблема перевода на субдоменах Apr 5, 2024
@get-web
Copy link
Owner

get-web commented Apr 5, 2024

Попробуйте раскомментировать в конфиге // domain: "Get-Web.Site" и вписать туда домен сайта, либо поддомен вместе доменом "sub.Get-Web.Site". Иногда помогает.

На некоторых серверах такая проблема наблюдается, так как через js не удается подменить все куки, которые использует виджет. В таком случае, единственное решение это перезаписывать куки на бекенде.

Есть еще альтернативный яндекс виджет https://github.com/get-web/yandex-translate-custom-widget

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants