Skip to content

Commit

Permalink
Update 01-advanced-configuration.md
Browse files Browse the repository at this point in the history
  • Loading branch information
cngonzalez authored Sep 13, 2023
1 parent 5665fe0 commit b91ef65
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions docs/01-advanced-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const customConfig = {
return {
_type: 'testObject',
_key: node.id,
title: node.textContent
title: node.innerHTML
}
}
},
Expand Down Expand Up @@ -57,4 +57,12 @@ const customConfig = {
}
//adapter, baseLanguage, secretsNamespace, importTranslation, exportForTranslation should likely not be touched unless you very much want to customize your plugin.
} satisfies TranslationsTabConfigOptions
```


const defaultDocumentNode: DefaultDocumentNodeResolver = (S) => {
return S.document().views([
S.view.form(),
S.view.component(TranslationsTab).title('Smartling').options(customConfig)
])
}
```

0 comments on commit b91ef65

Please sign in to comment.