How To Add A Language In Magento 2

By changing the locale of the view, most of the text that hard-coded on pages in your store can be instantly translated into another language. Changing the locale doesn’t translate word-by-word all the text on the interface, but references merely a different translation table that includes the interface text that is used on the store. Navigational titles, labels, buttons, and links such as “My Cart” and “My Account” are included in the text can be changed. To edit text in the interface, you can also use the Inline Translation tool.

You can find other language packs as new extensions on Magento Marketplace, so remember to check back often.

In this article, we provide a tutorial on how to add a language in Magento 2 admin

Step 1: Install a Language Pack

To install the language pack extension from Extension Manager, follow the standard instructions.

Step 2: Create a Store View for the Language

  1. On the Admin sidebar, click Stores. After that below Settings, click All Stores.
  2. Click Create Store View. After that, follow these steps:
  • Click the Store that is the parent of the view.
  • Input the store view’s Name. For example: Portuguese. In the header of the store, the name displays in the “language chooser.”
  • Input a Code in lowercase characters to identify the view. For example: portuguese.
  • To activate the view, change Status to “Enabled.”
  • (Optional) Input a Sort Order number to determine the sequence in which this view is listed with other views.
  1. Click Save Store View after completed.

Step 3: Change the Locale of the Store View

  1. On the Admin sidebar, click Stores. After that below Settings, click Configuration.
  2. Change Store View to the specific view where you want to apply the configuration. Click OK after confirmed that the scope is switched.
  3. Open the Locale Options tab.
  4. Uncheck the Use Website checkbox after the Locale field. After that, change Locale to the language that you want to assign to the view. If there are several variations of the language available, remember to choose the one for the specific region or dialect.
  5. Click Save Config after completed.

The remaining content that store administrator has created, including product names and descriptions, categories, CMS pages, and blocks must be translated separately for each store view after store owner change the language of the locale.

In the next article of Store category, we will provide a tutorial on how to translate products in Magento 2 web store. So keep checking Magestandard more often.

How To Edit A Store View In Magento 2

One of the most critical work in Magento 2 store configuration is edit a store view in Magento 2 backend. In the store view, the view name displays in the language selector, this is the reason why store administrators might want to edit the name of the default view to something more descriptive. The Name field appears as a simple label, and of course it can be modified easily. In this article, we will describe a tutorial on how to edit a store view in Magento 2.

If your Magento installation has a multi-site or multi-store setup, do not edit the store Code field without verifying that the value is not referenced in the index.php file. If you do not have access the server to access the file, you should ask a developer or store administrator to request access.

 

FIELD ORIGINAL VALUE UPDATED VALUE
Name Default Store View English
Code default english

Follow these steps to edit a store view

  1. On the Admin sidebar, click Stores. After that below Settings, click All Stores.
  2. Under Store View column of the Store table, click the name of the store view that you want to edit.

The Store and Status fields are not available when editing the default view.

edit a store view magento 2
Editing the Default View
  1. Update the following fields as material:
  • Store (non-default views only)
  • Name
  • Code (only if not used in index.php)
  • Status (non-default views only)
  • Sort Order
  1. Click Save Store View after completed.

Above is a tutorial on how to edit a store view in Magento 2 Stores Menu. In short, you click a Store tab in admin sidebar, click All Stores, select the store view that you want to edit under store view column and edit the field as you wish. We hope that you can edit your store view in Magento 2 backend using this tutorial. If you have any question about our tutorial, feel free to leave a comment. Don’t forget to like share and subscribe Magestandard for more Magento 2 tutorial coming soon.

 

How To Create A New Store View in Magento 2

After Magento Open Source is installed, the installation creates a hierarchy that includes the main website, store, and store view. To add a multi-language store view for a Magento 2 store and make the store available in different locales, the first thing you have to do is create a new store view in Magento 2 backend. Commonly, store views are used to make the store accessible in others locales. Shoppers can use the language chooser in the header of the store to change the store view. To change a store view, shoppers can select a language in the header of the store. In this article, we will describe a tutorial on how to create a new store view in Magento 2.

multiple store views in magento 2
Multiple Store Views

To create a new store view in Magento 2, please follow these steps:

  1. On the Admin sidebar, click Stores. After that under Settings, choose All Stores.
all stores in magento 2
All Stores
  1. Click Create Store View. After that, follow these tips:
store view information in magento 2
Store View Information

Configure Store to the parent store of this view.

  • Input a Name for this store view. The name displays in the language chooser in the store header. For example Spanish.
  • To identify the view, input a Code in lowercase characters. For example: spanish.
  • To activate the view, change Status to “Enabled.”
  • To decide the sequence in which this view is listed with other views, input a Sort Order number. (Optional)
  1. Click Save Store View after completed.

Above is a complete tutorial about adding store views in Magento 2 backend. We hope that you can manage to create multiple store views using this guideline. Feel free to leave a comment if you have any question, and remember to subscribe Magestandard to read more Magento 2 tutorial articles.

Complete Guideline About Stores Menu In Magento 2

  1. What is Stores menu in Magento 2?

Stores menu in Magento 2 is a section in the admin sidebar, and this section lies near the bottom. Store administrators rarely have to do anything in Stores menu, but the settings of Stores menu affect your Magento installation, from setting up the store hierarchy, configuration, tax and currency, sales and order settings, product attributes, product review ratings, and customer groups. To open the Stores menu, click Stores in the admin sidebar. In this article, we will analyze all sections are included in Stores menu in Magento 2 Open Source

The menu options of Store contains Settings, Attributes, Taxes, Shipping and Currency

stores menu in magento 2
Stores Menu
  1. All Stores

All Stores section control the hierarchy of websites, stores, store views and all configuration settings. Store administrators can also set up Term and Condition, and manage order status settings.

After installed Magento Open Source, the installation created a hierarchy that includes a main website, store, and store view. Additional websites, stores, and store views can be formed by store administrators as they needed. For example, you can have an additional websites with a different domain in addition to your main website. You can have multiple stores for each websites, and different store views for each store. To support different languages, many installations have one website, and one store includes multiple store views.

Because of the store hierarchy is referred to throughout the configuration, so you have to plan your store hierarchy before you begin. Every single store can have a different root category, which makes each store to have an entirely different set of main menu options.

Above is a guideline about Stores Menu and All Stores section in Stores Menu. If you have any question, feel free to leave a comment. Don’t forget to subscribe Magestandard to read more Magento 2 guideline articles.

 

Full Guideline On Cookie Reference In Magento 2

In this article, we will provide a grid of Magento Standard Cookie as a reference. You can understand all the type of cookies data that the web store based on Magento 2 platform is going to collect. If you want to learn more about the lifetime of session cookies, please read the article about Customer Session Lifetime.

Magento Standard Cookies

COOKIE NAME COOKIE DESCRIPTION
CART The affiliation with the customer’s shopping cart.
CATEGORY_INFO Saves the category info on the page to load pages faster.
COMPARE The items in the Compare Products list of customers.
CUSTOMER The visitor’s customer ID encrypted.
CUSTOMER_AUTH Shows if the customer are currently logged in to the store.
CUSTOMER_INFO The visitor’s customer group encrypted.
EXTERNAL_NO_CACHE Shows if caching is disabled or enabled.
FRONTEND The customer’s session ID.
GUEST-VIEW Decides if guests can edit their orders.
LAST_CATEGORY The last category visited by the visitor.
LAST_PRODUCT The most recent product viewed by the visitor.
NEWMESSAGE Shows whether a new message has been received.
NO_CACHE Shows if the cache can be used to store information.
PERSISTENT_SHOPPING_CART A link to information about the visitor’s cart and viewing history.
RECENTLYCOMPARED Items recently compared by the visitor.
STF Information on products the visitor has emailed to friends.
STORE The store view or language chosen by the visitor.
USER_ALLOWED_SAVE_COOKIE Shows if the visitor allows cookies to be saved.
VIEWED_PRODUCT_IDS The products recently viewed by the visitor.
WISHLIST An encrypted list of products added to the visitor’s wishlist.
WISHLIST_CNT The number of items in the visitor’s wishlist.


Google Analytics Cookies

COOKIE DESCRIPTION
_utma Distinguishes visitors and sessions.
_utmb Decides new sessions/visits.
_utmc Decides if the visitor is in a new session/visit.
_utmz Saves the traffic source or campaign that explains how the visitor reached your site.