@@ -536,7 +536,7 @@ article = intercom.articles.create(title: "New Article", author_id: "123456")
536
536
# Create an article with translations
537
537
article = intercom.articles.create(title: " New Article" ,
538
538
author_id: " 123456" ,
539
- translated_content: {fr: {title: " Nouvel Article" }, es: {title: " Articulo nuevo " }})
539
+ translated_content: {fr: {title: " Nouvel Article" }, es: {title: " Nuevo artículo " }})
540
540
541
541
# Fetch an article
542
542
intercom.articles.find(id: " 123456" )
@@ -554,7 +554,7 @@ article.translated_content.en.title = "English Updated!"
554
554
intercom.articles.save(article)
555
555
556
556
# Update an article by adding a new translation
557
- article.translated_content.fr = {title: " French Added! " }
557
+ article.translated_content.es = {title: " Artículo en español " }
558
558
intercom.articles.save(article)
559
559
560
560
# Delete an article
@@ -568,7 +568,7 @@ collection = intercom.collections.create(name: "New Collection")
568
568
569
569
# Create a collection with translations
570
570
collection = intercom.collections.create(name: " New Collection" ,
571
- translated_content: {fr: {name: " Nouvelle collection" }, es: {name: " Nuevo colección" }})
571
+ translated_content: {fr: {name: " Nouvelle collection" }, es: {name: " Nueva colección" }})
572
572
573
573
# Fetch a collection
574
574
intercom.collections.find(id: " 123456" )
@@ -586,7 +586,7 @@ collection.translated_content.en.name = "English Updated!"
586
586
intercom.collections.save(collection)
587
587
588
588
# Update a collection by adding a new translation
589
- collection.translated_content.fr = {name: " French Added " , description: " French description " }
589
+ collection.translated_content.es = {name: " Colección en español " , description: " Descripción en español " }
590
590
intercom.collections.save(collection)
591
591
592
592
# Delete an collection
@@ -600,7 +600,7 @@ section = intercom.sections.create(name: "New Section", parent_id: "123456")
600
600
601
601
# Create a section with translations
602
602
section = intercom.sections.create(name: " New Section" ,
603
- translated_content: {fr: {name: " Nouvelle section" }, es: {name: " Nuevo sección" }})
603
+ translated_content: {fr: {name: " Nouvelle section" }, es: {name: " Nueva sección" }})
604
604
605
605
# Fetch a section
606
606
intercom.sections.find(id: " 123456" )
@@ -618,7 +618,7 @@ section.translated_content.en.name = "English Updated!"
618
618
intercom.collections.save(section)
619
619
620
620
# Update a section by adding a new translation
621
- section.translated_content.fr = {name: " French Added " }
621
+ section.translated_content.es = {name: " Sección en español " }
622
622
intercom.collections.save(section)
623
623
624
624
# Delete an section
0 commit comments