kowal.info

Language Flags

Composer kowal/module-language-flags · Version 1.0.27

Product page

Language Flags — kowal.co

Description

Adds flags to the language switcher and links to store views, websites or external destinations.

For whom

For merchants directing customers to another language, website or regional storefront.

Features

  • Associate a flag image with a store-view code.
  • Show flags inline or in a dropdown, optionally with language names.
  • Add destinations for websites and custom URLs.

Installation

From the Magento root, with Composer access to the Kowal package, run

composer require kowal/module-language-flags
bin/magento module:enable Kowal_LanguageFlags
bin/magento setup:upgrade
bin/magento cache:clean

Configuration

Under Stores → Configuration → Kowal → Language Flags → General Settings, enable Enable Module and Replace Native Store View Switcher. In Store View Flags, match each store view code to an image from pub/media/language_flags. Choose dropdown or inline display. Enable Show Language Names to show labels alongside flags.

Use Website Flags to link to a website’s base URL, or Custom URL Flags to enter a specific destination. For a Hyvä store view, enable the adapter included with Language Flags.

Requirements / notes

Before testing, identify whether the entry is meant to switch store views or open a fixed address. Each uses its own configuration list.

FAQ

Which option should I use for a regional site with a specific landing page?

Use Custom URL Flags and enter the landing page address. Use Store View Flags when the destination is a Magento store view.

Verify the installation

Configure two store views with distinct flags. Open the switcher, select the other language and verify the active store view. Test any website or custom URL entry separately.

Components included in Language Flags