SleekPixel for Weglot: per-locale share cards for Weglot-translated pages
Weglot translates WordPress pages on the fly through its SaaS API and serves locale-prefixed URLs like example.com/de or example.com/fr. SleekPixel reads weglot_get_current_language on each request and renders a per-locale 1200 by 630 OG image
♾️ Lifetime License available
Render per-locale cards from Weglot's request context
Weglot operates by intercepting WordPress responses, sending content to its translation API, and substituting translated strings on the way out. The active locale for a request is exposed through weglot_get_current_language(), the configured target languages live in wp_options.weglot_options, and the original source content remains untouched in the WordPress database.
SleekPixel reads weglot_get_current_language() at template render time and selects the matching variant of your share template. The headline slot pulls the translated post title via Weglot's weglot_translate() helper, so the rendered card carries the same translated copy that the page body shows. Brand and corner mark fields pull from Weglot's per-language settings or fall back to constants you set in the template.
Cache invalidation is the interesting part. Weglot's API can return updated translations independently of WordPress edits, so the integration also honors Weglot's weglot_translations_updated webhook to refresh affected PNGs.
Workflow
From Weglot locale to PNG in four steps
Pick the Weglot template
Map the Weglot fields
Style and preview locales
Ship live and cache
Output
Sample Weglot translated page share
An OG card for the German variant of a marketing page showing the German headline translated through Weglot's API and a W8 mark indicating the 8-locale rollout.
Comparison
Default theme OG vs SleekPixel for Weglot
Default theme OG image
- Weglot translates content but the default theme OG image remains in the source language
- Per-locale URLs unfurl with the source language headline
- Marketing teams shipping multi-locale launches lack any automated per-locale share asset
- Weglot translation memory updates never propagate to share previews on their own
- Manually exporting one OG image per locale per page kills the speed advantage of Weglot
SleekPixel
-
Reads the active locale from
weglot_get_current_language()per request -
Translates the post title via
weglot_translate()for the headline slot - Falls back to source title when the API hits its translation memory miss path
-
Cache files at
uploads/sleekpixel/weglot/{locale}/{post-id}.pngby URL -
Honors
weglot_translations_updatedwebhook to invalidate affected PNGs
Features
What SleekPixel gives you for Weglot Translate
Locale matched to URL
Weglot serves /de, /fr, /es subdirectory URLs and SleekPixel matches each one with its own cached PNG. Social crawlers hitting the German subdirectory get the German card, the French subdirectory gets the French card, and the.
Translation memory sync
Weglot pushes translation memory updates through the weglot_translations_updated webhook, and SleekPixel listens for it to clear cached PNGs for affected locales. Translators who refine copy in the Weglot dashboard see those.
Source fallback safety
If the Weglot API is unreachable or returns a translation memory miss, the template gracefully falls back to the source language title for that slot. The card still renders rather than failing, which keeps social shares working.
Use cases
Where Weglot plus SleekPixel pays off the most
Multi-locale marketing launches
Product launches running in 6 to 10 locales benefit from per-language share cards on every locale variant. Each market sees its own headline in its own language before clicking through to the.
Blog and case study translations
Translated blog posts share with locale-aware previews so readers in non-English markets see content that feels native instead of an English brand label on top of translated body copy.
Documentation in multiple languages
Help center articles translated through Weglot get a per-locale card, so support links pasted into localised customer Slack channels unfurl with native language headlines and brand.
The bigger picture
Why Weglot pages need per-locale share assets
Weglot's value proposition is speed. The team installs a plugin, plugs in an API key, picks target locales, and watches the entire site become multilingual within hours. That speed disappears the moment the marketing team realises they now need to design and export one OG image per page per locale to make the social previews match.
Either the team ships English share previews for every translated URL, which breaks the localisation feel, or somebody spends a week in Figma. SleekPixel removes that bottleneck by reading Weglot's own API and rendering locale-specific PNGs from the same template. The same translation that powers the page body powers the share card, which means the localisation story stays consistent without parallel work.
Updates to translation memory propagate through the webhook automatically, so refinements made by professional translators in the Weglot dashboard reach the share preview without anybody touching the WordPress admin. For multi-locale launches this is the difference between actually shipping in 8 languages and shipping in 8 languages plus 1 English share card per page.
Questions
Common questions about SleekPixel for Weglot Translate
Just the plugin. The Weglot WordPress plugin already holds the API key in wp_options.weglot_options and exposes translation helpers through PHP functions like weglot_translate and weglot_get_current_language. SleekPixel calls those helpers, never the Weglot API directly, so the API key remains scoped to the official integration.
 Translation calls from the helper are cached by Weglot itself in its own option storage. If a fresh translation cannot be fetched in time, SleekPixel falls back to the source language title for that slot rather than blocking the card render. The next request after the rate limit clears regenerates the card with the proper translation.
 Yes. The template setting lets you opt locales in or out per template. Skipping the source language is common when the source already has a hand-tuned OG image from another SleekPixel template, leaving the Weglot template responsible only for the locales that Weglot itself adds dynamically over its API.
 Yes. Weglot supports both example.com/de and de.example.com style routing. SleekPixel reads the active locale through the Weglot helper regardless of routing mode, so the rendered card matches the locale of the request whether it arrived through a subdirectory or a fully separate subdomain at the DNS layer.
 Yes. Edits made through Weglot's visual editor in the dashboard trigger the weglot_translations_updated webhook on save, which SleekPixel listens for. The plugin walks every cached PNG matching the affected locale and post pair, deleting them. Next request regenerates the card with the updated copy from translation memory.
 Yes. Add a sleekpixel_exclude_locales custom field on the page with a comma separated list of locale codes to skip. Useful for legal pages where a translated card might be inappropriate or for pages still under review where you want to ship the source language card across all locales until translation is finalised.
 Weglot's SEO module rewrites meta tags through its own filter chain, including the og:image tag where applicable. SleekPixel registers its og:image filter at a priority that runs after Weglot's rewrites, so the per-locale PNG URL is the final value emitted, which is what crawlers actually pick up at the wire level.
 Yes. Weglot's media translation feature swaps images per locale in the page body, but SleekPixel's role is the share preview meta tag specifically. The template can also consume a media translation URL as the background or hero image source for a locale variant, giving fully localised art direction on each per-locale card.
 Pricing
More than 1000+
happy customers
Explore our flexible licensing options tailored to your needs. Upgrade your license anytime to access more features, or opt for a lifetime license for ongoing value, including lifetime updates and lifetime support. Our hassle-free upgrade process ensures that our platform can grow with you, starting from whichever plan you choose.
Lifetime ♾️
Most popular
EUR
once
- Unlimited websites
- Lifetime updates
- Lifetime support
...or get the Bundle Deal
and save €250 🎁
The Bundle (unlimited sites)
Pay once, own it forever
Elevate your WordPress site with our exclusive plugin bundle that includes all of our premium plugins in one package. Enjoy lifetime updates and lifetime support. Save significantly compared to buying plugins individually.
What’s included
-
SleekAI
-
SleekByte
-
SleekMotion
-
SleekPixel
-
SleekRank
-
SleekView
€749
Continue to checkoutBrowse more
- TikTok shop images
- Bandcamp banner
- Snapchat Spotlight covers
- YouTube Shorts covers
- TikTok ad images
- Instagram Shop product images
- Twitch overlay
- Threads post cover
- Telegram bot avatar
- VK community cover photos
- Tidal cover art
- Facebook post images
- Apple Music cover art
- Tumblr header
- Pinterest product pin covers