In magento 2 we usually use \Magento\Framework\CurrencyInterface class to calculate or convert price displaying. Sometimes it doesn’t work, an error displays: No region found within the locale “de” (or other locale code) but sometimes we don’t get this issue. In this topic we will give you a solution for this issue.

  • How to get this bug always?
  • How to fix it?

How to get bug always: No region found within the locale?

Easily, you have to setup language for your browser. Example with google chrome: Setting → Language → Choose your language → Done

No region found within the locale

No region found within the locale
No region found within the locale

Then please refresh your browser you can get the bug if your extension use \Magento\Framework\CurrencyInterface

How to fix it?

We should use try catch function when define CurrencyInterface

Refresh your browser and this issue has gone. Good luck!

The steps I mention above is the shortest process for you to  Fix Issue “No Region Found within the Locale…” in Magento 2 . With this guide, you can manage the Issue “No Region Found within the Locale…” in Magento 2 easily.

Thank you for reading this post and see you in other posts from Magestore!

We also contribute great content of Magento Download for FREE (all versions)

DON'T MISS THE CHANCE!

magento download

How to Loader Widget in Magento 2
How to Add Custom Attribute to Customer Programmatically?

Leave a Reply

Your email address will not be published. Required fields are marked *