"Error: Too many translation keys" error in the json file.

Highlighted
New Member
1 0 0

Hi there,

Hope you're well!


I'm trying to translate the website to German, however, I am stuck on defining the 'default' language. I'm adding the translations to the 'en.default.json' file in Locales in my theme's code, however, I am getting the following error:

"This file contains the following errors: Error: Too many translation keys"


Does this mean there are too many translations? If so what can I do about this as I cannot translate 3 pages?

Thanks very much for your help!

0 Likes
Highlighted
Excursionist
32 10 8

Hi SimZ,

 

Locale files, like the en.default.json file you've edited, are only meant to be edited by the developers of your theme. Merchants like yourself are able to translate themes from within the Shopify admin.

 

First, restore the original, unedited en.default.json file. Then, you'll be able to edit your theme's language by following this article:

https://help.shopify.com/en/manual/online-store/os/using-themes/translate-theme

 

I hope this helps.

Was your problem solved? Please mark this post as an Accepted Solution
0 Likes