Can't create locales file
Last updated
Was this helpful?
Last updated
Was this helpful?
In this article, you will learn
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 Your Shopify Theme
After logging into your Shopify store, go to Online Store > Themes > 3 dots > Edit code as shown in the image below.
Step 2: Add new code
In the Themes section, scroll down to see the Locales part and choose the {/} en.default.json option.
After choosing this option, then you scroll down to the last line of this file, you can see the current situation as in 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:
Step 3: Click Save
Locale files are located in the locales directory of the theme:
└── theme
...
└── locales
Theme Specific: The solution is intended for the theme you are currently using. If you encounter issues with other themes, similar steps may apply, but the code might differ. Always backup your theme before making changes.
Locale files are JSON files that contain a set of translations for text strings used throughout the theme and theme editor. For more information, please refer to this .