Language packages

Overview

Any text that is presented to the user can have several captions or labels on the control elements, notifications, and error messages. By default, Magento renders all these phrases in English (US) language (en_US). But if you deploy a storefront in a different language (or use the Magento Admin panel in a different language), you can incorporate other dictionaries for translations.

You can use the language packages provided with Magento, create your own, or obtain packages from the community. Check out the language packages, modules, and themes available on Magento Marketplace.

Creating a language package is part of the process of localizing your storefront.

Magento language packages

A language package is a collection of translation dictionaries for a particular language together with additional information that tells Magento how to process the information, including:

  • .csv file contains the actual strings that comprise the language dictionary. A translation dictionary is a comma-separated value (.csv) file with at least two columns: the original phrase in the en_US locale and a translation of that phrase to another locale.

  • composer.json file contains any dependencies for the language package and a mapping to its defined locale.

  • language.xml file, where you declare a language package and establish any inheritance rules, if you are installing multiple language packages.

About localization and internationalization

Localization is the process of adapting a product or service to a particular language, culture, and preferred local display characteristics. Ideally, a product or service is developed so that localization is relatively easy to implement. For example, you might design technical illustrations for manuals in which the text can easily be changed to another language.

The process of structuring an application to support localization is termed internationalization. An internationalized product or service is easier to localize for a particular language than a product that has not been internationalized. The process of first enabling a product to be localized and then localizing it for different national audiences is also known as globalization.

For an overview of Magento translation-related issues, see Translations overview.

Procedures for creating language packages and dictionaries are described in Translation dictionaries and language packages.

Modules

Libraries

Themes