Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Locale Folder SyncNew to Visual Studio Code? Get it now.
Locale Folder Sync

Locale Folder Sync

meeyzt

|
2 installs
| (1) | Free
Automatically mirrors new i18n locale files from a source language to all other languages.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

🌍 Locale Folder Sync

Automatically mirrors any new i18n file you create in a source language (e.g. en) to every other language folder (fr, tr, es, …).
Ideal for projects that keep per-language sub-trees such as src/i18n/locales/en/....


✨ Features

Action Result
Create src/i18n/locales/en/notes/index.ts The same relative file is auto-created in fr/notes/index.ts, tr/notes/index.ts, etc.
Command Locale Sync: Scan & Sync Missing Files Scans the source language tree and adds any previously missed files to other languages.
Custom content template Every new file can start with boilerplate you define (or stay blank).

🛠 Installation

Marketplace

Search “Locale Folder Sync” in the VS Code Extensions view and install.

Manual (.vsix)

  1. Clone or download this repo
  2. npm install -g vsce (one-time)
  3. vsce package → generates locale-folder-sync-x.y.z.vsix
  4. code --install-extension locale-folder-sync-x.y.z.vsix

⚙️ Configuration (settings)

Setting Default Description
localeSync.localesRoot src/i18n/locales Relative path (from workspace root) of your locale directory.
localeSync.sourceLang en Language folder to watch & copy from.
localeSync.fileGlob **/*.ts Which files to replicate (glob, relative to sourceLang).
localeSync.contentTemplate see below Text inserted into every new file. Leave empty for blank files.

Template Variables

Variable Replaced with… Example
${key} camel-cased locale key ai.card → aiCard
${localeKey} dot-notation locale key ai.card
${relativePath} path relative to the source language ai/card/index.ts

Default template:

import { defineLocale } from '@/i18n/helpers';

const localeTypes = defineLocale('${key}');

export default localeTypes({
  name: ""
});
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft