Shopify Extension Deployment Error: Total size of locale data exceeds 256 KB limit

Hi everyone,

I’m currently running into an issue when trying to deploy my Shopify ui_extension. The deployment fails with the following error:

From what I understand, this happens because I have too many translation files, and the total size of my locales folder goes beyond the 256 KB limit.

For now, I’ve resolved this temporarily by deleting a few locales, but this is not a sustainable solution. The extension is expected to grow in features, and naturally, the translation files will continue to grow as well.

Has anyone faced a similar issue?
• What would be the best way to handle this?
• Are there any best practices for managing translation files to stay within Shopify’s limit?

Any tips or workarounds would be greatly appreciated!

Thanks in advance.

1 Like

Hey,

thank you for reporting this!

There are plans to eventually support higher limits, but I can’t communicate a timeline yet.

Any tips or workarounds would be greatly appreciated!

I think apart from deleting languages or shortening keys / translations, there’s not much I could recommend at the moment.

1 Like