Skip to main content
19 votes

How to use Quotation mark in translation CSV Magento 2

you have to double the quotes in your language file. "Check ""Remember Me"" to access","Check ""Remember Me"" to access" | \| \| | | | | | | |...
Marius's user avatar
  • 198k
12 votes

How do I replace the standard language switcher with flags? Magento 2.1.0

I was struggling with the same problem for some time and finally managed to solve it. Maybe you already solved it by now, but it can definitely be useful for others. Summary The needed code can be ...
elnecesario's user avatar
11 votes

Using URL subfolders for multi-language Store Views in Magento 2

I ended up in using the below solution. I saw it is a quite common configuration for multi-language Magento websites. This solution provides a default language with a redirect from "normal" url (urls ...
Andrea's user avatar
  • 1,849
9 votes

Magento 2: how do I remove language selection

just add: <referenceBlock name="store_language" remove="true"/> in: /app/design/frontend/YourPackage/YourTheme/Magento_Theme/layout/default.xml
Matej Đaković's user avatar
7 votes
Accepted

How to use Quotation mark in translation CSV Magento 2

Did a little bit of digging for this found it here: vendor/magento/module-persistent/i18n/en_US.csv The line states: "Check &quot;Remember Me&quot; to access your shopping cart on this ...
Atish Goswami's user avatar
6 votes
Accepted

Magento 2: Multiple websites and stores on apache or nginx server

Created multi website in magento, Steps to create a multistore in admin panel is same as like in magento1.x. Don't forget to change the base url and secure url for new website/store. Once made changes ...
Ravindrasinh Zala's user avatar
4 votes

Magento 2 How to redirect customer to specific store view according to browser language?

Using controller_action_predispatch event,you achieve this thing. At event at Obsever,get browser language by core php code $lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2); then redirect ...
Amit Bera's user avatar
  • 77.6k
4 votes
Accepted

M2 - Change admin login language

Your second try is in fact the right answer. The setting in Stores > Configuration > General > General > Locale Options > Locale is responsible for the admin login form, but only when set for the ...
peedee's user avatar
  • 713
4 votes

Block override for new order creation not working

Maybe you should try using an event observer. In your module's config.xml add the following: <adminhtml> <events> <core_layout_block_create_after> <...
Raphael at Digital Pianism's user avatar
4 votes
Accepted

Magento 2 set locale programmatically?

Please try using Resolver Interface. $localeInterface = $objectManager->create('Magento\Framework\Locale\ResolverInterface'); $localeInterface->setLocale('ar_SA'); $localeInterface->...
Dharmendra Jadav's user avatar
4 votes

How to set Default Language

To accomplish your demand, first you have to change your Default Store View, then set Locale option for that Default Store View. 1) Change Default Store View from English to Italian Go to System > ...
Vinh VO's user avatar
  • 198
4 votes
Accepted

Create a language package, install a language package via admin?

According to your requirements, you can create a translation module yourself manually. app/i18n/languageName/code_ISO/code_ISO.csv Example: for the French language it will be like this: app/i18n/...
PЯINCƎ's user avatar
  • 11.7k
3 votes
Accepted

Magento 2: How to use Multi Language in XML File

<referenceBlock name="breadcrumbs"> <action method="addCrumb"> <argument name="crumbName" xsi:type="string">Home</argument> <argument name="crumbInfo" ...
Marius's user avatar
  • 198k
3 votes

French pack for Magento 1.8?

please get the french language pack from https://github.com/versedi/Magento-Locales link this working for 1.9
Mujahid Ul Islam's user avatar
3 votes
Accepted

How can I create language pack for magento 2

Follow step to set different Language store for website : Step 1: Create different store view for a website like : English/German/Franch Step 2: Download Language pack from any preferred source as ...
Ronak Chauhan's user avatar
3 votes
Accepted

Magento2: override vendor language package

Had the same problem. There is way to define your own translation package and define dependencies and sort_order between them. More details in this answer in here
Sergey's user avatar
  • 459
3 votes
Accepted

Block override for new order creation not working

Superficial answer: you cannot. When creating an order in the backend, the list of the stores is generated at the same time as the customer list is. The click on the customer row triggers an Ajax ...
Enzo Perrotta's user avatar
3 votes

Magento2 having Issue in language installation "Duplicated translation is found, but it is not allowed"

You have to define '-d' for allow duplicate translation. use i18n:pack -m replace -d de_DE.csv de_DE command for allow duplicate translation instead of i18n:pack -m replace de_DE.csv de_DE here -...
manish goyanka's user avatar
3 votes

Add Language translation text in magento2

have you used this syntax where you put your text? Template file: <?php /* @escapeNotVerified */ echo __('Your text') ?> Knockout file: data-bind="i18n: 'Your text'"
Chandra Prakash Gupta's user avatar
3 votes

Magento 2 language is incorrect

Personally I think the package that you have installed is a little mixed, try please to disable your translation modules and create three new by following and you can later customize them if necessary....
PЯINCƎ's user avatar
  • 11.7k
3 votes
Accepted

Can't get the current language in template file

You can get the current using laguage by below code: With objectManager $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $store = $objectManager->get('Magento\Framework\...
Rita Jose's user avatar
  • 1,850
3 votes
Accepted

Create a multi-language REST API's in Magento 2

You have to add the store code before the /V1/ For example, let say you have two store views (store_en/store_de), if you call this api /store_en/V1/products, then you will retrive all products for ...
WISAM HAKIM's user avatar
  • 2,135
3 votes

Magento2-Translation not working in js files

For me, I understood that flushing the translation cache was not deleting the js-translation.json in pub/static/path/to/appropriate/theme/locale. After deleting, the file was renewed and things where ...
Christophe Ferreboeuf's user avatar
3 votes

Get region name in default language

For getting the region in your locale you just need to add it to directory_country_region_name table and based on the stores locale it will be fetched correctly. So, if you have a region like below: ...
Arif Ahmad's user avatar
3 votes
Accepted

Magento2: How to translate language

As I said in comment, You need to Add text like: <?php echo __('your-context'); ?> After that you need to put translation in CSV file. For more information about How to add translation You ...
Pawan's user avatar
  • 5,906
3 votes
Accepted

How to Change Language for Admin Panel in Magento 2?

Step-By-Step Process to Change Language For Admin Panel in Magento 2 Please follow the below steps to learn how to change the default language for the admin panel in your Magento 2 store. Step – ...
Tarang Methaniya's user avatar
2 votes
Accepted

Change path url language

Go to admin system > Configuration > General > Web > Url options > Add Store Code to Urls set it to yes
Prashant Valanda's user avatar
2 votes

Multistore- more stores with 1 language file?

Yes it is possible but not exactly in a way you've described (at least with the information you've provided). You can configure your instance base currency on website scope level (the displayed ...
versedi's user avatar
  • 2,059
2 votes
Accepted

Custom language module not working

This answer may not same as your code but I have tried as added below and working fine. magento2\app\code\Vendor\Module\registration.php <?php \Magento\Framework\Component\ComponentRegistrar::...
Krishna ijjada's user avatar
2 votes

Magento 2 How to redirect customer to specific store view according to browser language?

The example with observer, based on controller_action_predispatch event isn't well because of full page cache. When cache is warmed up and you are trying to open homepage your code inside observer ...
zhartaunik's user avatar
  • 3,846

Only top scored, non community-wiki answers of a minimum length are eligible