Skip to content

Commit 33a4045

Browse files
committed
Updated translations in README
1 parent 1408000 commit 33a4045

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ article = intercom.articles.create(title: "New Article", author_id: "123456")
536536
# Create an article with translations
537537
article = intercom.articles.create(title: "New Article",
538538
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"}})
540540

541541
# Fetch an article
542542
intercom.articles.find(id: "123456")
@@ -554,7 +554,7 @@ article.translated_content.en.title = "English Updated!"
554554
intercom.articles.save(article)
555555

556556
# 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"}
558558
intercom.articles.save(article)
559559

560560
# Delete an article
@@ -568,7 +568,7 @@ collection = intercom.collections.create(name: "New Collection")
568568

569569
# Create a collection with translations
570570
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"}})
572572

573573
# Fetch a collection
574574
intercom.collections.find(id: "123456")
@@ -586,7 +586,7 @@ collection.translated_content.en.name = "English Updated!"
586586
intercom.collections.save(collection)
587587

588588
# 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"}
590590
intercom.collections.save(collection)
591591

592592
# Delete an collection
@@ -600,7 +600,7 @@ section = intercom.sections.create(name: "New Section", parent_id: "123456")
600600

601601
# Create a section with translations
602602
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"}})
604604

605605
# Fetch a section
606606
intercom.sections.find(id: "123456")
@@ -618,7 +618,7 @@ section.translated_content.en.name = "English Updated!"
618618
intercom.collections.save(section)
619619

620620
# 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"}
622622
intercom.collections.save(section)
623623

624624
# Delete an section

0 commit comments

Comments
 (0)