Skip to content

3.7.2

Choose a tag to compare

@henrikandersen1978 henrikandersen1978 released this 22 Jan 13:36
· 1 commit to main since this release
v3.7.2: Multilingual support for comparison intro text

- Comparison intro processor now reads prompts from JSON language files
- Cache keys include language identifier: wta_comparison_intro_{post_id}_{lang}
- Shortcode updated to read language-specific cache
- All 11 languages supported (da, en, de, fr, es, it, pt, nl, sv, pl, us)
- Backwards compatible: falls back to WordPress options if JSON missing
- Added load_language_prompts() method to processor
- Updated get_cities_without_intro() to check language-specific cache
- Updated get_stats() to count language-specific intros