Jump to content

Manually translate front end strings of text

Recommended Posts

Hello,

 

I have translated my website into french using BradGood's method and code. Everything works fine except the checkout (obviously, as I know it is not really possible to modify this one).

However, I am certain about being able to modify some of the shop's front end strings of text, to have a more seamless experience in french. 

For example, on this product (https://gregoirepansu.com/fr/tirages-dart/p/chemin-sinueux), in the french version of the website, the price still states "from XX€" instead of "A partir de XX€", "Size" instead of "Format" etc...

 

I have already translated a string of text in the email address box by example, with this code :

    if (lang == "fr") {
  $('.email input').attr('placeholder','Adresse email');
      }

 

I also translated the "add to cart button" using the same code. (Even though it goes back to "add to cart" after you click it once).

 

Is there any way for me to target those strings of text and translate them ? By example, targeting in French any "size" word and translate it to "Format" ? 

 

 

Thank you so much ! 

 

Edited by Greg_pns
Link to comment
  • Replies 0
  • Views 112
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.