Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

GTranslate

How to ensure full compatibility between YayCurrency and the paid (proxy) version of GTranslate

Some users may experience the following issue when using YayCurrency together with GTranslate (paid/proxy version):

  • Currency automatically reverts to the default (e.g., EUR)

  • Currency changes randomly when switching languages

  • Selected currency does not persist across translated pages

This behavior is not caused by YayCurrency itself, but by server-side caching from translation proxies that do not respect YayCurrency’s cookie.

The good news: ✅ YayCurrency is fully compatible with GTranslate. It just requires a simple cache configuration.

💡 Why It Worked With the Free Version

The free version of GTranslate:

  • Uses client-side JavaScript translation.

  • Does NOT proxy your website through their servers.

  • Does NOT cache HTML on their infrastructure.

The paid version:

  • Uses server-side proxy translation.

  • Caches translated pages on their servers.

  • Must be configured to vary cache by important cookies.

That’s why upgrading to GTranslate (paid version) introduced the issue.

Why This Happens

YayCurrency stores the selected currency in a cookie:

This cookie ensures that:

  • The selected currency persists across pages

  • The correct currency loads across subdirectories and translated URLs

However, when using the proxy version of GTranslate, their server-side cache may not respect or vary by this cookie.

As a result:

  • Cached pages may be served without considering the user's selected currency.

  • The currency may revert to the default or behave inconsistently.

The Solution

The fix is straightforward:

👉 Ask GTranslate support to exclude the yay_currency_widget cookie from their proxy cache.

Once this cookie is excluded:

  • GTranslate will not serve cached pages that ignore the selected currency.

  • The currency switch will remain stable across all translated pages.

  • Everything will work perfectly.

How to Fix It (Step-by-Step)

  1. Contact GTranslate Support

  2. Inform them that:

    • You are using YayCurrency.

    • YayCurrency stores currency in the yay_currency_widget cookie.

    • Their proxy cache must exclude this cookie.

  3. After GTranslate configures this on their servers, the issue will be resolved.

Last updated

Was this helpful?