Introducing Global Language Sync: Code Language Preferences That Follow You
Starting today, when you select a programming language in any <CodeBlocks>
or <Tabs>
, that preference will automatically sync across all documentation pages. This means no more manually switching languages as you navigate through different sections of our docs. Whether you’re viewing implementation examples, debugging guides, or API references, your preferred language follows you. Language preference is kept in client-side local storage.
This behavior is automatically enabled for all <CodeBlocks>
. To add language preferences to a <Tab>
, you can add the language
property. Check out language sync in the example below:
Example
Markdown
TypeScript
Python
Java
This is content specific to TypeScript.