
Flutter Localization Checker
A VS Code extension that helps Flutter developers identify and fix hardcoded strings in their applications.
Features
- Automatically detects hardcoded strings in Flutter widget trees
- Displays warnings directly in your code editor
- Provides a dedicated sidebar with a list of all detected issues
- Scan entire projects for localization issues with a single click
Installation
From VSIX
- Download the
flutter-l10n-checker-0.1.0.vsix file
- In VS Code, go to Extensions view (Ctrl+Shift+X)
- Click on the "..." menu at the top-right of the Extensions view
- Select "Install from VSIX..."
- Locate and select the downloaded VSIX file
Using the Extension
- Open a Flutter project
- The "Flutter L10n" icon will appear in the activity bar (left sidebar)
- Click on the icon to view detected localization issues
- Click "Scan for Hardcoded Strings" to refresh the analysis
Settings
This extension contributes the following settings:
flutterL10nChecker.enableLiveChecking : Enable/disable checking files as you type
flutterL10nChecker.ignoredStrings : Strings to ignore (whitespace, punctuation, etc.)
flutterL10nChecker.ignoreComments : Whether to ignore strings in comments
flutterL10nChecker.allowedPatterns : Regex patterns for allowed strings (numbers, whitespace, etc.)
Development
Building the Extension
# Install dependencies
npm install
# Compile the extension
npm run compile
# Package the extension into a VSIX file
npm run package
Running Tests
npm test
License
This extension is licensed under the MIT License.
| |