Questions tagged [locale]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
106 views

Where window.LOCALE is set in Magento 2 code

Which part of code in Magento 2.4.5-p1 sets window.LOCALE ? vendor/magento/module-catalog/view/base/web/js/price-utils.js defaults to en-US as in locale = window.LOCALE || 'en-US'; where window.LOCALE ...
Daniel Ifrim's user avatar
  • 3,374
0 votes
1 answer
77 views

Order confirmation email is in english for custom payment method in Magento 2

I have an m2 website in the Norwegian language when an order is placed with COD then the order confirmation email is Norwegian but when I use my custom payment method the order confirmation email is ...
Surjan Raghuwanshi's user avatar
0 votes
1 answer
1k views

Magento 2.4: How to add the locale for a website using config.php?

Our Magento website is hosted on Commerce cloud and I have created the multi website but since the commerce cloud is in production mode, I'm not able to update the locale using admin settings. I get ...
Tim's user avatar
  • 13
0 votes
1 answer
630 views

Magento2 language/locale not working

So I installed Magento 2.4 via docker/composer on my development machine. I am trying to use the German (Germany) language for my store front view. I tried with just the default setup, I also tried ...
mrbrdo's user avatar
  • 101
1 vote
1 answer
180 views

Timezone and locale dropdown in custom form frontend

I need to add these 2 dropdown to the custom frontend form. Any help would be appreciate. Thank you!
Ronak's user avatar
  • 436
1 vote
0 answers
101 views

How to change the country code for a specific country

is it possible to change the country code for a specific country? DE -> GER Thanks in Advance!
Leon's user avatar
  • 11
0 votes
2 answers
736 views

Add custom locale to the allowed locale list variable in Magento\Framework\Locale\Config

I need to update the allowed locale list with my custom language in magento 2.3.3. For that, I have overridden the Magento\Framework\Locale\Config class in my custom module. di.xml: <preference ...
Magento Developer's user avatar
3 votes
1 answer
947 views

Magento 2 Country Name not get translated when using countryFactory

My Magento site have about 10 different websites and one for each country. I have set the correct Locale corresponding to each country (storeview). I'm getting Country Name by using countryFactory, ...
Magento Learner's user avatar
0 votes
1 answer
249 views

Email template: locale lang in url

As suggest the title; what I want to do is to set url in my email template different depending on locale language. What I tried to do: config path='web/unsecure/base_url'}}{{config path='...
christianFtsck's user avatar
0 votes
1 answer
1k views

Magento2 order email date formatting

I'm trying to edit email template and format created date. The date in the email is written using this variable {{var order.created_at}} And I think that It is created using the following function ...
domfitty's user avatar
  • 389
0 votes
0 answers
112 views

Backend Locale Options is missing most of the countries?

I've a magento 2.2.2, the locale is missing most of the countries in backend and converted into chinese, where is these options loaded from? How can i fix it?
hkguile's user avatar
  • 2,201
1 vote
2 answers
2k views

Magento 2.3 Can't change Locale Options

I am unable to change Locale options in Stores >> Configuration >> General tab Configurations. After saving the configurations it shows 'You saved the configuration.' but there is no change. Flushed ...
chanchal's user avatar
  • 397
1 vote
1 answer
444 views

How to set a fallback to English for non-existing language in Magento 2?

I have a i18n folder with 7 csv files which contain keys and translation into 7 different languages. Then I go into admin panel and in General->Locale options, I select a language which is contained ...
john655's user avatar
  • 11
1 vote
2 answers
1k views

Magento 2 : Change Language Code

I'm facing issues while update language code for website. <!doctype html> <html lang="en"> I want to change it with en-GB. I've already locale setup with default configurations. Any ...
anonymous's user avatar
  • 3,724
0 votes
2 answers
116 views

Magento 2 mongolian language

We setup the multilanguage websites. I'm trying to setup the website for Mongolian Country. In default magento missing the mongolian Locale language. How to add this language in locale.
Rat's user avatar
  • 834
1 vote
0 answers
206 views

Same content (language) for multiple countries (store views)

I'm trying to implement an e-commerce site (using Magento 2) that has the following requirements: be available in N countries (eg http://example.com/country_code/ ) with X languages share the same ...
Jorge's user avatar
  • 111
2 votes
0 answers
57 views

Magento 2. 2 Mail template can not be translated

I am offering English and Japanese in Magento 2 project. We respond to customer's inquiries about products. I want to make the mail template of that module correspond to Japanese, but it is not ...
mr.hironobu's user avatar
2 votes
0 answers
468 views

How to modify lang attribute in html tag by specific locale

I want to modify this attribute by programmatically After many times research i found this class in lib magento Magento\Framework\View\Page\Config Unfortunately magento team set locale in ...
mrtuvn's user avatar
  • 3,263
2 votes
1 answer
504 views

Magento 2 Interface Locale issue with en_gb(uk)

I am using Magento 2.1.9 with Interface Locale en_gb(uk). After changing from english (us) to english(uk): I am not able to give special date for products. Not able to add cart price rules also. ...
Chala Chalapathi's user avatar
0 votes
1 answer
1k views

Magento 2.2.4 Change Country Names

I am wanting to change the names in English for countries in Magento 2.2.4. I tried looking through the database but it appears their full name is not listed there, just country codes. For my use of ...
Kai's user avatar
  • 57
2 votes
2 answers
2k views

Resolver does not report correct locale

I have a very strange problem where the Magento\Framework\Locale\Resolver does not return the correct locale for the current store view. I have setup a store with two separate store views which have ...
Cyclonecode's user avatar
0 votes
1 answer
155 views

Set current language in magento 2.2.2 [closed]

I want to set the current language to the language what i want. I did URL redirect but at i am not able to set cookies for store.
karthik's user avatar
  • 77
2 votes
3 answers
6k views

Setup:static-content:deploy issue with locale

I have enabled Production mode, and when I run setup:static-content:deploy, it creates two folders - en_AU and en_US. In pub/static/frontend/mytheme/, en_US folder has all nessesary files generated, ...
Magento Learner's user avatar
1 vote
1 answer
222 views

Magento 2.1 Translate text to given locale

I have a situation where I need to save values in couple of languages, Arabic and English at a save form, So I have two fields with the name Product Name and اسم المنتج i.e Product Name in Arabic, So ...
riksof-zeeshan's user avatar
3 votes
2 answers
103 views

Is there any way to change locale along with currency for admin in Magento2

I want to update the currency and the rates for admin based on the user for which locale is set. For eg., if the locale is French, the currency should be French, but if the user is logged in from US ...
Gagan's user avatar
  • 1,468
0 votes
1 answer
64 views

Magento Admin Panel turns into Text File

After I "accidently" changed the Interface Locale in my Magento Admin Panel > Account Setting, the page reloaded and became a text page. When I tried to change the Interface Locale again, the Save ...
Zelen Market's user avatar
3 votes
1 answer
236 views

How to check if a string is translated or not in Magento 1

I did a rewrite of this class: Mage_Core_Model_Translate and I focus on this function _getTranslatedString So I changed it into this: protected function _getTranslatedString($text, $code) { $this-...
Attila Naghi's user avatar
  • 3,863
1 vote
1 answer
138 views

Very slow loading upon locale change [closed]

I changed my Magento 2 store locale to Russian using the etws/magento-language-ru_ru plugin and the site loading speed significantly increased. Chrome shows that the waiting time (TTFB) is 12-15 ...
adsalpha's user avatar
0 votes
1 answer
3k views

Magento 2: How can I get de locale code?

How can i get de locale code in the current shop? For example es-ES or en-EN. I tried $this->_storeManager->getStore()->getLocaleCode();
Miguel's user avatar
  • 549
1 vote
0 answers
257 views

Basic steps to install a languge pack or locale in Magento 2

I am trying install a German language pack by following below steps. app/i18n/splendid/de_de/composer.json { "name": "splendidinternet/mage2-locale-de-de", "description": "German (Germany) ...
Krishna ijjada's user avatar
0 votes
1 answer
2k views

Allowed Countries

We are a New Zealand based website and we offer shipping to New Zealand only. Could someone please clarify what is the option General > Country Options > Allowed Countries do? Also I only want the ...
Pragman's user avatar
  • 407
2 votes
0 answers
329 views

Indian regional language pack. Magento 1.9

How to get Indian regional language pack for Magento e.g Marathi, Hindi, Tamil, Bengali, etc. Because there are more than 20K magento developers, all across India, working on both CE and EE.
Mrunmay Deswandikar's user avatar
0 votes
1 answer
57 views

Magento Website stuck in arabic

I have a Magento web site stuck in displaying admin pages in Arabic language. I've tried changing the language via cpanel and also via the admin pages, general etc... Can anyone tell me if I can do ...
stato74's user avatar
4 votes
4 answers
16k views

Magento 2 : How to install new language pack

I am working on a Magento-2 website which is based on German language. How to install and use new language package for German language in Magento2. Which package is best for German language? Any ...
Suresh Chikani's user avatar
4 votes
3 answers
949 views

How can magento2 support .less or css for multi language locale?

For CSS, I found that we can add web/i18n/en_US/mymodule.css for module If I want to add some locale specific CSS for the core module, where should I put them in? e.g. app/design/frontend/mypackage/...
leo's user avatar
  • 1,198
3 votes
3 answers
2k views

Magento 2 set locale in CLI command module

I'm developing a command line module in magento 2 and I cannot find a way to set locale programmatically. The module takes care of creating a pdf invoice from an order and sends it via email to ...
floyd's user avatar
  • 51
3 votes
1 answer
658 views

Why are emails being sent from the wrong store from the command line

We have a script that is sending emails via the command line. Since we are using the email templates we are loading them using the Mage::getModel('core/email_template') model and then calling ->...
David Manners's user avatar
2 votes
2 answers
4k views

Check locale of current website Magento 2

I need to check with php if the currently displayed website is the main one in ENGLISH or it is in INDIAN or ARABIC. How can I do that? I've searched around but didn't found anything. in Magento 1 ...
Prashant Patel's user avatar
2 votes
1 answer
345 views

Magento 2 different languages

Magento 2 different languages for website I did exactly everything according what the guy who posted the answer said. Basically i set the default store to English then i created a new store view ...
Kevin.a's user avatar
  • 135
9 votes
1 answer
1k views

Override locale configuration file to customize price format

To reliably change the price format(group and decimal symbol) without having to override several classes or write plugins for them, I need to override the en.xml from the Zend library. Changing the ...
Gion Koch's user avatar
  • 196
5 votes
2 answers
19k views

Fatal error: Class 'Locale' not found magento 2.0.2 [closed]

when I run this command static-content:deploy then I got the below error "PHP Fatal error: Class 'Locale' not found in /opt/lampp/htdocs/magento/magento2_1/vendor/magento/framework/Locale/...
Kartik Asodariya's user avatar
2 votes
4 answers
5k views

Programmatically set Store View locale

How do I programmatically set the locale information of a store view? I don't know how to set this value, although I can get it using: echo Mage::getStoreConfig('general/locale/code', $store_view-&...
Niko Zarzani's user avatar
4 votes
1 answer
7k views

Get list of Locale for all stores

Is there a way to get the list of all Locale for set up stores? As you would get Locale for the current store with \Magento\Framework\App\ObjectManager::getInstance()->get('Magento\Framework\...
Stasa Stanisic's user avatar
1 vote
2 answers
8k views

How to set the locale (en_US") of Magento2 (I/F Locale) by using command line

I have installed magento 2.0.7 with CentoOS 7 / Apache 2.4.6 / PHP 7 / MariaDB 10. After applying the Japanese locale to "Interface Locale" under Account Setting (refer the link below), I get "HTTP ...
kmoguls's user avatar
  • 11
1 vote
1 answer
1k views

Magento 2 Admin Pointing to Wrong Locale

I have a Magento CE 2.0.7 install on Apache with PHP7 and MySQL 5.7. There are no plugins or modified/custom code. I set the locale to en_CA on installation through the web setup wizard. I changed to ...
omantric's user avatar
0 votes
2 answers
3k views

My magento 2 is not working after install japanese locale file

I have a trouble with my Magento 2 - 500 page error in front and backend. Error log: 2016/05/29 21:28:00 [error] 2681#2681: *1 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught ...
Hiromitsu Nakanishi's user avatar
0 votes
1 answer
366 views

Magento Event for change of interface locale (or language locale)

Is there any event dispatched when you change the interface locale ?
Boris Ruvinsky's user avatar
2 votes
0 answers
2k views

Magento 2 -How to change the format datetime with yyyy/mm/dd of DOB in customer edit

although I changed the locale of my account to Japan time. But it's display format of en_US.
Junior's user avatar
  • 171
2 votes
2 answers
3k views

Searching for Arabic Language Pack that supports Magento 1.9.2.4

I have installed magento 1.9.2.4 and a paid theme. Now only arabic language pack needed which supports this version. So far unable to find it so please help. Thank you
Tariq Majeed's user avatar
9 votes
6 answers
27k views

How to change currency format in Magento 2?

Currently, the price shows like $2.999,00 I want the price to show like $2,999.00 for locale es_MX (Spanish, Mexico) in product pages, anywhere else the currency format is correct. I've tried all ...
Luis Garcia's user avatar
  • 1,609