Can’t create locales file

In this article, you will learn how to fix the issue “Failed to update a locale file at Shopify.”

The reason for this error happening is that PageFly can’t create locale files inside the locales folder of the Shopify theme.

Step 1: Access to your Shopify ThemeClick to copy

After logging into your Shopify store, go to Online Store > Themes > Actions > Edit code as shown the image below.

The way to go to Shopify Theme

Step 2: Adding codeClick to copy

In the Themes section, scroll down to see the Locales part and choose the option.

Shopify locales file

After choosing this option, then you scroll down to the last line of this file, you can see the current situation as the image below.

Now, to fix this error, you need to add a code part. The code part needs to be put after the }

Here is the code part needed:

https://pastebin.com/raw/sV58eF1N

Navigate this category

Thank you for your feedback!

Could not find the answer
to your question?

Chat with us