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

SimZ
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
ThemuMitch
Explorer
45 11 15

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
Ally_Paris
Tourist
9 0 0

Hi @ThemuMitch ,

I'm having a similar issue : there is a few missing translations on my checkout process that I'm not able to edit through the theme language editor interface. 

As it's related to the local delivery feature, I've edited them "fr-SCALD.json", it works well but only for a while. Some of them on the example here below : 

Ally_Paris_0-1610407757531.png

 

Do you think you can help ? 

I'm working on the supply theme.

 

Thank you ☀

0 Likes