How can I fix the 'translation missing' error on my cart screen?

Solved

How can I fix the 'translation missing' error on my cart screen?

heyhellovanessa
Shopify Partner
2 0 0

Hi, 

I'm getting this error on my cart screen.

translation missing: en.cart.general.total

Can any one help me fix it?

Thanks

Cart error.jpg

Accepted Solution (1)

Laura-Hirtop
Shopify Partner
27 5 10

This is an accepted solution.

Hello Heyhellovanessa,

It seems that in your case the translation in English is missing. You will have to add it to your theme. Log in to your store, and on the Online Store section, find your theme and click Edit code:

LauraHirtop_0-1651124625884.png

On the left side you have the structure of the theme with the files and the folders. You should look for the folder "Locales" and inside you should have a file called "en.json" or "en.default.json" (probably the second one).
Here you have the translations for your store in a schema. Your missing translation is related to cart, so, inside the file you should search for '"cart"' (CTRL + F, with the quotes). You should end up with something like this: 

LauraHirtop_1-1651124861274.png

Under the "general" section, as the error implies, you don't have the value for the key named "total", as in the image above (there is no "total", only, "title", "vendor", "remove" etc.). This is the place where it should be added. Before your first entry (in my care "title"), please type:

"total": "Your total is ",

Of course, you can insert another message if this is not the most suitable one ("Total sum ", "The value of the cart is " or whatever). Don't forget the comma. The final result should look like this:

LauraHirtop_2-1651125096404.png


Then hit save and it should be all good now. Please let me know if you succeeded or have any trouble finding the place of the missing translation

View solution in original post

Replies 3 (3)

Laura-Hirtop
Shopify Partner
27 5 10

This is an accepted solution.

Hello Heyhellovanessa,

It seems that in your case the translation in English is missing. You will have to add it to your theme. Log in to your store, and on the Online Store section, find your theme and click Edit code:

LauraHirtop_0-1651124625884.png

On the left side you have the structure of the theme with the files and the folders. You should look for the folder "Locales" and inside you should have a file called "en.json" or "en.default.json" (probably the second one).
Here you have the translations for your store in a schema. Your missing translation is related to cart, so, inside the file you should search for '"cart"' (CTRL + F, with the quotes). You should end up with something like this: 

LauraHirtop_1-1651124861274.png

Under the "general" section, as the error implies, you don't have the value for the key named "total", as in the image above (there is no "total", only, "title", "vendor", "remove" etc.). This is the place where it should be added. Before your first entry (in my care "title"), please type:

"total": "Your total is ",

Of course, you can insert another message if this is not the most suitable one ("Total sum ", "The value of the cart is " or whatever). Don't forget the comma. The final result should look like this:

LauraHirtop_2-1651125096404.png


Then hit save and it should be all good now. Please let me know if you succeeded or have any trouble finding the place of the missing translation

heyhellovanessa
Shopify Partner
2 0 0

Awesome it has worked - Thank you so much you are amazing!!!

Simsek92
Visitor
2 0 0

Hello! 

 

It was helpfull for me to. Just want to add, if u have a translated version with app from EN, u need to do this change on your own locales language .json
Also, was needed to add the total row to ,,headings"

But now its work, perfectlyScreenshot_3.png