Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>IntlayerNew to Visual Studio Code? Get it now.
Intlayer

Intlayer

Intlayer

intlayer.org
|
127 installs
| (3) | Free
Intlayer official VSCode extension. Helps you navigate to content files using useIntlayer keys. It also provides commands, as to create dictionary files.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Intlayer

Intlayer enhances your VS Code experience by enabling Go to Definition support for useIntlayer keys in React and Vue projects. With this extension, you can command-click (Ctrl+Click on Windows/Linux) on a useIntlayer key and instantly navigate to the corresponding content file.

Features

Fill dictionaries

  • Instant Navigation – Quickly jump to the correct content file when clicking on a useIntlayer key.
  • Fill Dictionaries – Fill dictionaries with content from your project.

List commands

  • Easy access to Intlayer Commands – Build, push, pull, fill, test content dictionaries with ease.

Create content file

  • Content Declaration Generator – Create dictionary content files in various formats (.ts, .esm, .cjs, .json).

Test dictionaties

  • Test Dictionaries – Test dictionaries for missing translations.

Rebuild dictionary

  • Keep your dictionaries up to date – Keep your dictionaries up to date with the latest content from your project.

Intlayer Tab (Activity Bar)

  • Intlayer Tab (Activity Bar) – Browse and search dictionaries from a dedicated side tab with toolbar and context actions (Build, Pull, Push, Fill, Refresh, Test, Create File).

Documentation

Check out the documentation for more information on how to use Intlayer with VS Code.

Intlayer Tab (Activity Bar)

Open the Intlayer tab by clicking the Intlayer icon in the VS Code Activity Bar. It contains two views:

  • Search: A live search bar to quickly filter dictionaries and their content. Typing updates the results instantly.
  • Dictionaries: A tree view of your environments/projects, dictionary keys, and the files contributing entries. You can:
    • Click a file to open it in the editor.
    • Use the toolbar to run actions: Build, Pull, Push, Fill, Refresh, Test, and Create Dictionary File.
    • Use the context menu for item‑specific actions:
      • On a dictionary: Pull or Push
      • On a file: Fill Dictionary
    • When you switch editors, the tree will reveal the matching file if it belongs to a dictionary.

Usage

  1. Open a project using intlayer, react-intlayer, next-intlayer, vue-intlayer, nuxt-intlayer, etc.

  2. Find any call to useIntlayer(), for example:

    const content = useIntlayer("app");
    
  3. Command-click (⌘+Click on macOS) or Ctrl+Click (on Windows/Linux) on "app".

  4. VS Code will automatically open the corresponding content file, e.g., examples/vite-app/src/app.content.tsx.

Commands

Intlayer includes several commands to help you manage content dictionaries efficiently. You can access them via the Command Palette (Cmd + Shift + P on macOS / Ctrl + Shift + P on Windows/Linux).

Dictionary Management

  • Build Dictionaries (extension.buildDictionaries)
    Builds all dictionary content files based on the current project structure.

  • Build Current Dictionary (extension.buildActiveDictionary)
    Builds the dictionary for the currently active .content.* file.

  • Push Dictionaries (extension.pushDictionaries)
    Uploads the latest dictionary content to your content repository.

  • Pull Dictionaries (extension.pullDictionaries)
    Syncs the latest dictionary content from your content repository to your local environment.

  • Fill Dictionaries (extension.fillDictionaries)
    Fills the dictionaries with content from your project.

  • Fill Current Dictionary (extension.fillActiveDictionary)
    Fills content for the currently active .content.* file.

  • Test Dictionaries (extension.testDictionaries)
    Test dictionaries for missing translations.

  • Refresh Dictionaries (intlayer.refreshDictionaries)
    Refreshes the Intlayer views.

  • Pull Dictionary (Context) (intlayer.pullDictionary)
    Context menu action on a dictionary item in the side view.

  • Push Dictionary (Context) (intlayer.pushDictionary)
    Context menu action on a dictionary item in the side view.

  • Fill Dictionary (Context) (intlayer.fillDictionary)
    Context menu action on a file item in the side view.

  • Select Environment (intlayer.selectEnvironment)
    Choose the active environment for actions.

Content Declaration Generator

Easily generate structured dictionary files in different formats:

If you're currently working on a component, it will generate the .content.{ts,tsx,js,jsx,mjs,cjs,json} file for you.

Example of component:

const MyComponent = () => {
  const { myTranslatedContent } = useIntlayer("my-component");

  return <span>{myTranslatedContent}</span>;
};

Generated file in TypeScript format:

import { t, type Dictionary } from "intlayer";

const componentContent = {
  key: "my-component",
  content: {
    myTranslatedContent: t({
      en: "Hello World",
      es: "Hola Mundo",
      fr: "Bonjour le monde",
    }),
  },
};

export default componentContent;

Available formats and related commands:

  • TypeScript (.ts) — extension.createDictionaryFile.ts
  • ES Module (.esm) — extension.createDictionaryFile.esm
  • CommonJS (.cjs) — extension.createDictionaryFile.cjs
  • JSON (.json) — extension.createDictionaryFile.json

Generic command: Create Content File — extension.createDictionaryFile.

Development & Contribution

Interested in improving the extension? Contributions are welcome! See CONTRIBUTING.md for more information.

Feedback & Issues

If you encounter any issues or have feature requests, please open an issue on GitHub.

📜 License

This extension is licensed under the MIT License.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft