set_document_language
Set the default language of a Word document by specifying a BCP-47 language tag (e.g., en-US), updating the document's style settings for spell check and proofing.
Instructions
Set the default document language.
Writes the BCP-47 language tag into the default paragraph style's run
properties (w:rPr/w:lang) in word/styles.xml.
Args: language_code: BCP-47 language tag, e.g. "en-US", "fr-FR", "de-DE".
Returns: {"language": language_code}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| language_code | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |