Magento 2 – How to Set Default Locale localemagento2 In magento 2, how to set default locale? I default in admin page below: I cleared all cache by command: magento cache:flush. But, it until get locale is en_US. If the true is ja_JP. Best Answer We need to create ja_JP.csv in your custom theme: app/design/frontend/{Vendor Theme}/{Theme name}/i18n/ja_JP.csv We can find the locale code by simple way: Related SolutionsMagento – Magento 2 – get wrong locale which I set in system config I see only one reason why this happens - incorrect locale was set in the configuration. Please check your configuration ("store view" scope): In a debug I see that magento works fine. Configuration (ja_JP): Result (ja_JP as set): Magento – How to set the locale (en_US”) of Magento2 (I/F Locale) by using command line First you need to find out the language code by using php bin/magento info:language:list Once you've found the language code you can set the language by calling php bin/magento setup:store-config:set --language=code UPD for v2.2 magento config:set general/locale/code ${LOCALE} or: magento config:set general/locale/code ${LOCALE} --scope=store --scope-code=${STORE_CODE} Related TopicMagento 2 CLI Command – How to Set Locale
Best Answer
We need to create
ja_JP.csv
in your custom theme:app/design/frontend/{Vendor Theme}/{Theme name}/i18n/ja_JP.csv
We can find the locale code by simple way: