Skip to content

Releases: tonaldoing/gemini-translator

v0.4.2

Choose a tag to compare

@tonaldoing tonaldoing released this 14 Mar 18:13

Bug Fix

  • Fix language switcher getting stuck when navigating back/forth between languages. The browser's back-forward cache (bfcache) was restoring pages with the loading state still applied, blocking further clicks.

v0.4.1

Choose a tag to compare

@tonaldoing tonaldoing released this 14 Mar 18:06

Instant Language Switching

  • Prefetch: Pre-fetches the alternate language page in the background so it's ready before the user clicks
  • Prerender (Chrome 109+): Uses the Speculation Rules API to fully pre-render the alternate page in a hidden tab — navigation is truly instant
  • Loading state: Immediate visual feedback (opacity + cursor change) when clicking the switcher

Page-Level Translation Cache

  • Caches the fully processed translated HTML output in transients
  • On cache hit, skips ALL regex processing (URL rewriting + translation replacement)
  • Automatically excludes: logged-in users, WooCommerce cart/checkout/account pages, debug mode
  • Cache invalidation is automatic when translations are edited

v0.4.0

Choose a tag to compare

@tonaldoing tonaldoing released this 14 Mar 17:55

Performance Optimizations

  • Wrap all error_log() calls with WP_DEBUG guard (eliminates disk I/O in production)
  • Conditionalize microtime() timing behind WP_DEBUG
  • Combine two URL rewrite regex passes into a single pattern (fewer HTML traversals)
  • Add static cache to gt_get_switcher_style() (avoids repeated get_option() calls)
  • Fix gt_invalidate_translation_cache() to properly reset static cache
  • Move GitHub Updater to admin/cron only (skip frontend requests)

Features

  • Batch Gemini API translation (multiple strings per request, batch size 25)
  • Add composite DB index (language_code, status) for faster queries
  • Extract HTML button/option text from Elementor HTML widgets

v0.3.7

Choose a tag to compare

@tonaldoing tonaldoing released this 10 Feb 18:32
v0.3.7 - HTML Entity Normalization Fix

v0.3.6

Choose a tag to compare

@tonaldoing tonaldoing released this 10 Feb 14:20
Add debug output to translation content filter (v0.3.6)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

v0.3.5

Choose a tag to compare

@tonaldoing tonaldoing released this 10 Feb 14:08

Added

  • Debug mode: add ?gt_debug=1 to any translated page (as admin) to see translation matching info

v0.3.4

Choose a tag to compare

@tonaldoing tonaldoing released this 10 Feb 13:57

Fixed

  • Fix PHP 8.1+ deprecation warning for null translated_string in translations page

v0.3.3

Choose a tag to compare

@tonaldoing tonaldoing released this 09 Feb 03:26
Merge branch 'feature/security-and-updates'

v0.3.0

Choose a tag to compare

@tonaldoing tonaldoing released this 09 Feb 02:55
560d73b

Changes

  • API key masking in settings
  • GitHub auto-updates from dashboard
  • Improved Elementor data handling
  • Security helpers added