Vacanam Language Switcher

Description

Vacanam (वचनम्, “speech”) turns your WordPress site into a multilingual site. Your current pages stay where they are. Each new language gets its own copy of every page with the same design, connected as its translation. You only change the text.

Built for Arabic sites first: right to left everywhere, Arabic flags (Arab League, UAE, Saudi Arabia, Egypt, Qatar, Kuwait…) and Gulf variants of Arabic. It works the same way for 130+ languages.

Setup in five steps

  1. Languages: Vacanam reads your home page, finds the language it is written in (English, Arabic, French…) and suggests it as the main language. Then pick the languages to add.
  2. Content: everything you already have is marked as the main language.
  3. Copy your site: every page, post, category and menu is copied into the new languages with a progress bar, with its design: blocks, Elementor (all widgets and settings), other page builders, custom fields, SEO texts and featured images. The copies are connected to their originals, the home page copy becomes the home page of its language, and links between pages lead to the pages of the same language.
  4. Language switcher: added to your menu, or as a floating button.
  5. Ready: open a copy, change the text, publish.

Moving from Polylang, WPML or TranslatePress

Already have a multilingual site? Vacanam finds your old plugin’s data and takes it over, so you don’t have to set up or translate your site again.

  • Polylang and WPML: languages with their flags, main language, addresses, browser-language setting, the language of every page, post, product, Elementor template and category, which ones are translations of each other, menus per language and translated texts. Your translated pages are used as they are: nothing is copied or re-created.
  • TranslatePress: languages and addresses. TranslatePress keeps translations as texts, so Vacanam copies your pages and fills each copy with the translations you made in TranslatePress (blocks, classic content and Elementor), with the same design.
  • The old plugin’s data is never changed: you can switch back at any time.
  • It starts from the setup (or Languages > Import) with a progress bar, also on large sites.

A font for each language

  • Give each language its own text font and headings font: Cairo or Tajawal for Arabic, Inter for English, Noto Sans Devanagari for Hindi…
  • Use your theme’s fonts, WordPress’s Font Library, Elementor custom fonts, ready-made system fonts, or download any Google font into your site in one click: visitors load it from your site and never connect to Google (faster, GDPR friendly).
  • Elementor: the global fonts of Site Settings switch with the language, so every widget set to a global font (the globe icon) follows it: Primary, Secondary and H1 to H6 take the headings font, Text, Accent and your own global fonts take the text font (or the headings font when named like a heading or title). Elementor custom fonts work too. Your Elementor settings are not changed, so nothing conflicts.
  • Optionally replace fonts set on single widgets too. Icon fonts are never touched.

Right to left (RTL)

  • Arabic, Hebrew, Persian, Urdu, Pashto, Kurdish, Sindhi, Uyghur, Dhivehi… are shown right to left: <html dir="rtl">, WordPress’s RTL styles, and your theme’s and Elementor’s RTL layouts, even if WordPress’s own translation of that language is not installed.
  • English pages stay left to right on the same site.
  • In the editor, Arabic pages are written right to left even when your admin is in English.
  • Switchers use logical CSS: they mirror themselves in RTL.

Translations connected the way you want

  • A Languages box in the editor (block editor and classic): the language of the page, its translations, a + to copy it into a language, and a search field to connect any existing page instead. Change the connected page any time.
  • Pages lists show a flag column: ✓ the language of each page, ✎ edit a translation, + copy into a language. Bulk actions: copy many pages into a language, or set their language.
  • Pages built with Elementor open straight in Elementor. In Elementor, the page settings show a Languages panel with the same links.
  • Categories, tags and custom taxonomies have a language and translations too.
  • Admin bar filter: show the content of one language or all.

Language switchers that match your theme

  • Menu item: Appearance > Menus > “Language switcher”, as a dropdown or side by side. It takes your theme’s own menu style (and works in Elementor’s Nav Menu widget).
  • Elementor widget: dropdown, side by side, list, pills, flags only or select box; names, codes (EN, AR) or flags only; flag shape and size; colours for text, background, hover, current language and border; typography, padding, spacing, alignment, dropdown shadow; opens on click or hover.
  • Block for the block editor and the site editor, classic widget, shortcode [vacanam_switcher] and PHP vacanam_switcher().
  • Floating switcher in a corner of every page (start or end side, so it mirrors in Arabic).
  • One default look in Languages > Switcher, with a live preview; each switcher can set its own.
  • The switcher leads to the translation of the page being read, or to the home page of the language (or hides it, as you prefer).

SEO that does not break

  • hreflang links between translations and x-default, on pages, posts, categories, the home page and archives.
  • One address per page: a page opened with the wrong language code gets a 301 redirect to its right address; the main language can keep its current addresses (no /en/), so existing rankings stay.
  • Canonical addresses, sitemaps (all languages, each page at its own address), breadcrumbs and Open Graph follow the language with WordPress, Yoast SEO, Rank Math and SEOPress; og:locale and og:locale:alternate are set.
  • <html lang="ar" dir="rtl"> on every page.
  • Copies never keep a canonical address pointing to the original page, so translations are never hidden from search engines.
  • Each translation has its own SEO title, description and focus keyword (copied from the original, ready to translate).
  • Search engines are never redirected by the browser-language option.

All the multilingual features

  • Addresses: language folder (example.com/ar/page/) or parameter (?lang=ar); the main language with or without its code.
  • Browser language: the home page in the visitor’s language on the first visit; the choice is remembered.
  • Media: translate titles, alt texts and captions of images (one file for all languages).
  • Custom post types and taxonomies: WooCommerce products, portfolios, Elementor templates (headers, footers, popups per language)…
  • Synchronization: categories, featured image, parent page, template, order, comments, sticky, post format, date and custom fields are kept the same across translations (texts and designs never are).
  • Menus per language: one location per language in Appearance > Menus and the Customizer, menu copies, and Elementor menus swapped automatically. A menu used in every language even leads to the translated pages by itself.
  • Texts: translate the site title, tagline, date formats, widget titles and texts registered by themes and plugins.
  • Widgets per language: show a widget only in one language.
  • Hidden languages: prepare a language while only editors can see it.
  • Theme compatibility: themes and plugins written for Polylang (pll__(), pll_the_languages(), pll_get_post()…) or WPML (wpml_object_id…) work as they are.

External services

This plugin connects to no external service on its own. Two features use a service only when an administrator asks for it:

  • Language packs: when you add a language, WordPress’s own language-pack installer may download WordPress’s translation of that language from WordPress.org (translate.wordpress.org), as when you change the site language in Settings > General. Only the language code is sent. WordPress.org privacy policy.
  • Google Fonts: only when you click “Download font” in Languages > Fonts, the font name you typed is sent to Google Fonts (fonts.googleapis.com) and the font files are downloaded from fonts.gstatic.com into your site (wp-content/uploads/vacanam-fonts). Visitors then load the font from your site: they never connect to Google. Google Fonts terms, Google privacy policy.

Credits

Flags: flag-icons by Panayiotis Lipiridis, MIT license (see assets/flags/LICENSE.txt).

Screenshots

Blocks

This plugin provides 1 block.

  • Language switcher

Installation

  1. Install and activate the plugin from Plugins > Add New, or upload the folder to /wp-content/plugins/.
  2. The setup opens: confirm your main language, add your other languages, and copy your site into them.
  3. Translate the copies: open Pages, click the pencil of a language, change the text, publish.

FAQ

Will my current pages change address?

No. With the default settings the main language has no language code: example.com/about/ stays example.com/about/. Translations get one: example.com/ar/about-ar/.

Does it copy Elementor pages with their design?

Yes. All Elementor data (sections, containers, widgets and their settings) is copied exactly. Links to your other pages inside the design lead to the copies in the same language, and Elementor template widgets use the template of the same language. Open the copy in Elementor and change the text.

What about my header and footer made with Elementor?

Elementor templates can be translated: copy the header into Arabic and visitors of the Arabic pages see the Arabic header. Menus inside them are swapped for their Arabic copy automatically. Or keep one header and add the Language switcher widget to it.

Set the display conditions (for example “Entire site”) on the main-language header only. When you publish the Arabic copy, Elementor asks for conditions: remove them and click Save & Close. Vacanam shows the Arabic copy wherever the main header shows, on Arabic pages. Giving both headers the same conditions makes Elementor report a conflict.

Does it work with Yoast SEO and Rank Math?

Yes. Each translation has its own SEO title and description; canonical addresses, sitemaps and Open Graph follow the language; hreflang links are added by Vacanam.

My Arabic page is not right to left.

Check that the language has “Written right to left” ticked in Languages > Edit. Vacanam sets the direction even when WordPress’s Arabic translation is not installed. If your theme ignores dir="rtl", use the body classes vacanam-rtl and vacanam-ar to adjust it.

Can I connect a page I already translated by hand?

Yes: in the Languages box of the editor, type its title in the field of its language and save. Clear the field to disconnect it.

Can I use it with WooCommerce?

Products and product categories can be translated: tick them in Languages > Settings, then copy them like pages.

I used Polylang, WPML or TranslatePress before. Do I have to start again?

No. Deactivate the old plugin, then open Languages > Import (the setup offers it too): Vacanam reads the old plugin’s data and converts it. With Polylang and WPML your translated pages, categories, menus and texts are kept as they are. With TranslatePress, Vacanam copies your pages and fills them with your TranslatePress translations. Themes written for Polylang (pll__(), pll_the_languages()…) or WPML keep working.

Can each language have its own font?

Yes, in Languages > Fonts: a text font and a headings font per language. With Elementor, the global fonts switch with the language too, without changing your Elementor settings.

Can I choose another flag, or my own image?

Yes. When you edit a language, the flag picker lists 270 flags with country and region names (search “emirates”, “saudi”, “england”…), and “Use your own image” takes any image from the media library.

What happens when I delete the plugin?

Pages and posts are never deleted. Settings and links between translations are removed only if you tick “When the plugin is deleted, also delete its settings” in Languages > Settings.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Vacanam Language Switcher” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.3.0

  • New: Languages › Upgrade to Pro shows what Vacanam Language Switcher Pro adds (hidden when Pro is active).
  • New: a short review request 7 days after install; “Maybe later” asks again 7 days later, “I already did” hides it for good.
  • New: “Works great with” box on Vacanam’s screens recommending Sarala Login Page, Aarye Marketing Addon, Rinnovo Subscriptions & Licenses and Performance Insight for WooCommerce. Each card can be dismissed.

1.2.2

  • Fixed: “Hide the current language” in the switcher settings now applies to switchers in menus too (they show only the other languages).
  • Fixed: space between the flag and the language name in theme dropdown menus, mobile menus and page-builder menus, in both reading directions.
  • Changed: the floating switcher stays in the corner you choose in every language, so it doesn’t cover chat or WhatsApp buttons in right-to-left languages. A new option moves it to the other side in right-to-left languages, if you want that.

1.2.1

  • New translations are copied from the main-language version, even when the copy is started on another translation (English Spanish, not Hindi Spanish).
  • A page or product whose text is in another language’s writing system (for example Hindi text on an English product) is flagged in its language box and is not copied into other languages, so the wrong text does not spread.
  • Copies of WooCommerce products keep their product type, and variable products get all their variations and prices.
  • The language chosen in the editor only applies to the item being edited, never to its translations saved at the same time.
  • SEO: the shop and other lists shared by all languages (blog, date and author archives) now have a canonical and og:url in the language shown, with Yoast SEO and Rank Math, matching their hreflang links.

1.2.0

  • New: WooCommerce synchronization (Settings › Synchronization). Saving a product or variation in one language copies its prices, sale dates, stock, tax, shipping and product settings, and subscription prices, to its translations, through WooCommerce so sorting and price filters stay right. Names, descriptions, slugs and SKUs stay per language.
  • New: headers, footers, mega menus and other templates a theme loads by ID (for example Nioland, chosen in the theme options) show their translation in the visitor’s language.

1.1.3

  • Developers: vacanam_menu_item_copied action, so menu plugins can copy their item settings into menu translations.
  • Security: every admin link and form that changes or filters something is checked with a nonce; messages after saving no longer travel in the address.
  • The setup reminder shows only on the Dashboard, Plugins and Vacanam screens.
  • Font CSS is added with wp_add_inline_style().

1.1.2

  • Developers: a filter to show how far each translation is in the lists.
  • Developers: switcher items can be marked as not translated yet (shown faded).

1.1.1

  • Fix: category filters built with “OR” (for example portfolio tabs) now keep working: the language is added with “AND”, so each tab shows only its own category.
  • Fix: on right-to-left pages, slider arrows (Swiper, Slick, Owl and others) no longer stretch across the slider.

1.1.0

  • New: import from Polylang, WPML and TranslatePress (Languages > Import, also offered by the setup): languages, settings, translated pages, posts, products, categories, menus and texts are taken over, nothing to edit again.
  • New: a text font and a headings font for each language (Languages > Fonts), with fonts of your site, system fonts or Google fonts downloaded into your site. Elementor’s global fonts switch with the language.
  • New: flag picker with search and country names, and your own flag image.
  • Fix: flags in the admin bar language menu were shown at full size.

1.0.1

  • Elementor theme templates: copies of headers, footers and other theme templates no longer take over the original’s display conditions, which made Elementor report a conflict. The Languages panel in Elementor explains how to set conditions.

1.0.0

  • First release.