mutation{
translationsRegister(
resourceId: “gid://shopify/OnlineStoreTheme/175504818510”,
translations:[
{
translatableContentDigest: “13fd237c67318fc0a6fb958d6c532ac2441482b62974ad2456db7dfcff9c032f”,
key: “shopify.checkout.address_management.confirm_address_deletion”,
value: “Êtes-vous sûr de vouloir supprimer l’adresse {{address}} ?”,
locale: “fr”
},
]
){
translations{
key
value
}
userErrors{
code
field
message
}
}
}
Getting Too many translation keys error while translating many languages like es, fr
“data”: {
“translationsRegister”: {
“translations”: ,
“userErrors”: [
{
“code”: “FAILS_RESOURCE_VALIDATION”,
“field”: [
“translations”,
“0”
],
“message”: “Too many translation keys”
}
]
}
},
Have anyone faced this issue or know something about this
It looks like you’re hitting a Shopify API limitation when trying to add translations for multiple languages. The “Too many translation keys” error typically happens when you exceed Shopify’s threshold for bulk translation updates in a single request.
To resolve it:
-
Try batching the translations into smaller chunks rather than sending them all in one go. This can help avoid hitting the limit.
-
Check if you’re exceeding Shopify’s translation key limit — there might be a cap on the number of keys you can update at once.
-
You could also implement pagination by splitting your translation requests into multiple calls if you’re dealing with a lot of resources.
This error has been reported by others using the translation API, so breaking down the requests should help. Let me know if you need any tips on how to structure the requests or refine your approach!
I’ve seen this happen when trying to bulk-register too many translation keys at once. Shopify has a cap on how many translations you can send in a single mutation, and once you hit that limit, it throws the Too many translation keys error like you’re seeing.
The best workaround is usually to batch your mutations break your translation list down into smaller chunks some devs go with 50–100 per batch, depending on the payload. That way, you’re not overwhelming the API.
It’s also worth double-checking if any of your translation keys are duplicated across locales that can sometimes trip things up unexpectedly.
If you’ve already tried batching and still hitting issues, feel free to drop more context happy to brainstorm it out with you.
Curious if anyone else here has hit this and found other tricks?
@Digital_Dennis Thanks for your response!
Right now I’m trying by manually hitting mutation in graphiql tool and for now just tried by one translation (OnlineStoreTheme) resource in fr I’m getting this error but when trying with be it is working correctly.
Hey @yusufabdulazeez,
I’ve tried by batching but still getting the same error even when tried manully with one resource getting the same error in fr but working in be
Got it — if it’s working with be but not with fr, it might be a specific issue with the French locale or something already stored under that resource causing a conflict.
You could try:
-
Changing the key or value slightly and testing again
-
Checking if that exact key already exists in fr and is causing duplication
-
Or try removing that key first (if possible) before adding it again
Let me know how it goes — happy to take a look if you want to share a snippet!
In Fr
mutation{
translationsRegister(
resourceId: “gid://shopify/OnlineStoreTheme/175504818510”,
translations:[
{
translatableContentDigest: “13fd237c67318fc0a6fb958d6c532ac2441482b62974ad2456db7dfcff9c032f”,
key: “shopify.checkout.general.page_title”,
value: “Vérifier”,
locale: “fr”
},
]
){
translations{
key
value
}
userErrors{
code
field
message
}
}
}
In De
mutation{
translationsRegister(
resourceId: “gid://shopify/OnlineStoreTheme/175504818510”,
translations:[
{
translatableContentDigest: “13fd237c67318fc0a6fb958d6c532ac2441482b62974ad2456db7dfcff9c032f”,
key: “shopify.checkout.general.page_title”,
value: “Kasse”,
locale: “de”
},
]
){
translations{
key
value
}
userErrors{
code
field
message
}
}
}
Both have same errors
“data”: {
“translationsRegister”: {
“translations”: ,
“userErrors”: [
{
“code”: “FAILS_RESOURCE_VALIDATION”,
“field”: [
“translations”,
“0”
],
“message”: “Too many translation keys”
}
]
}
},
Tested both with new value and key and even in two different locales but still same issue
Do you know if there is any limitation for OnlineStoreTheme resource because I’m getting this issue in this resource only, all other resources are working well
Hey guys!
I got the issue why I’m getting Too many translation keys error
Actually whenever we run translationRegister mutation it saves translations in a json file like for french all translations are saved in fr.json.
And there’s a limitation of 3400 max keys per locale so the issue I was facing is because of new translation weren’t deleting or overriding the previous one that’s leads to keys limitation reached issue.
So for now I’ll handle the translations conditionally like by removing the previous one and register the new one
Thank you all for connecting!