VSCode Asset AutocompleteVSCode Asset Autocomplete is a powerful VSCode extension that provides intelligent translation key autocomplete and asset path completions for Flutter, React, and React Native projects. Version 1.0.0 introduces native translation management directly within VSCode - no external CLI tools required! ✨ Features🔤 Smart Translation Management
🖼️ Asset Path Autocompletion
🚀 Built-in Translation Commands⭐ Native Translation Management (No CLI Required!)
Smart Extraction Features:
⚙️ ConfigurationQuick SetupAdd this configuration to your For Dart/Flutter Projects:
For TypeScript/JavaScript Projects:
Minimal Configuration (uses defaults):
Single file per locale (e.g.
|
| Setting | Description | Default |
|---|---|---|
i18n-autocomplete.languages |
List of language codes for extraction | ["en", "vi"] |
i18n-autocomplete.projectLanguage |
Project type: "dart" or "typescript" | "typescript" |
i18n-autocomplete.jsonPath |
Path to the i18n translation folder | "assets/i18n" |
i18n-autocomplete.sourceDirs |
Source directories to scan for translations | ["src/"] |
i18n-autocomplete.excludePatterns |
Files/folders to exclude from scanning | ["**/*.test.ts", "**/node_modules/**"] |
i18n-autocomplete.translationFunctions |
Function names used for translation matching | ["t", "translate"] |
i18n-autocomplete.localeFileMode |
Locale file layout mode: single or multiple | "multiple" |
i18n-autocomplete.localeFilePattern |
Locale filename pattern (glob-like or regex literal) | "*.json" |
i18n-autocomplete.multipleModeConcatNamespace |
In multiple mode, auto-prefix namespace from filename when key is missing namespace | false |
i18n-autocomplete.preferredTranslationLanguage |
Preferred locale for translated text shown in autocomplete | "" |
i18n-autocomplete.assetPath |
Path to your asset folder | "assets" |
🧠 Supported Languages
- Dart (
.dart) - JavaScript (
.js,.mjs,.jsx) - TypeScript (
.ts,.tsx)
💻 Commands
All commands are available through the Command Palette (Ctrl+Shift+P / Cmd+Shift+P):
| Command | Description |
|---|---|
| I18n: Native Extract All | Extract translations for all configured languages |
| I18n: Native Extract | Extract for a specific language (with picker) |
| I18n: Merge | Merge translation files |
| I18n: Analyze Translations | Analyze translations without generating files |
| I18n: Configure Language | Add new language to configuration |
| l10n: Extract | Extract for specific locale (with prompt) |
| l10n: Extract All Languages | Extract for all configured languages |
🛠 Requirements
Version 1.0.0 and above: No external dependencies required! The extension now handles translation management natively within VSCode.
📦 Installation
Search for "vscode-asset-autocomplete" in the VSCode Extensions Marketplace or install manually from VSIX.
🚀 Quick Start
- Install the extension from the marketplace
- Configure your project by adding settings to
.vscode/settings.json - Start using commands via Command Palette (
Ctrl+Shift+P)- Try "I18n: Native Extract All" to extract all translation keys
- Use "I18n: Configure Language" to add new languages
No additional setup or CLI tools required!
🧪 Feedback / Contributions
Contributions and feature requests are welcome!
Open an issue or PR on GitHub.