Plugin screenshot thumbnail 1/3
Plugin screenshot thumbnail 2/3
Plugin screenshot thumbnail 3/3

 Language Manager for Craft CMS

The Language Manager plugin adds easy integration for a language switcher and for the correct hreflang attributes in the header.

  • The language switcher is a simple menu that links to all parallel language versions of the same page
  • The hreflang tags add the correct hreflang attributes in the header of the page (including setting the x-default tag for the primary version)

Language Switcher

The language switcher will switch to the parallel site in a different language, if there is no parallel site, it will fall back to the main page. The labels can be set set to presets or customized.

Easy integration via hook

{% hook 'languageManagerNavigation' %}

Advanced custom integration

The plugin exposes a twig function getLanguageManagerPages(), which returns an array of page objects. With this, you can build your own menu.

Available Labels

You can choose from several options to display the language switcher labels.

  1. Language Code (e.g. 'EN')
  2. Long Language Code (e.g. 'EN-US')
  3. Language Name (e.g. 'English')
  4. Long Language Name (e.g. 'English (United States)')
  5. Your own custom label translations

Hreflang Tags

Easy integration via hook

{% hook 'languageManagerHreflang' %}

Advanced custom integration

The plugin exposes a twig function getLanguageManagerPages(), which returns an array of page objects. With this, you can customize your hreflang tags.

Config

Settings can easily be edited via the control panel. Additionally, they can be set via config file to overwrite the control panel settings.

Detailed documentation

For further info please consult the full documention here.

Installation Instructions

To install this plugin, copy the command above to your terminal.

Reviews

This plugin doesn't have any reviews.

Active Installs
41
Version
1.1.0
License
Craft
Compatibility
Craft 4, Craft 5
Last release
April 5, 2024
Activity (30 days)
0
Closed Issues
0
Open Issues
0
Merged PRs
0
Open PRs