Flutter Untranslated is a powerful IntelliJ-based plugin designed to streamline the detection of hardcoded text strings in Flutter projects. Its primary purpose is to identify untranslated texts and help developers localize their applications efficiently.
- Smart Detection: Analyze your Flutter source code to find hardcoded text strings.
- Interactive Panel: Easily view and filter detected strings in a user-friendly panel.
- ARB File Generation: Automatically create
.arbfiles for easy localization (e.g.,app_en.arb,app_fr.arb). - Contextual Navigation: Click on detected strings to jump directly to their location in the code.
- Custom API Integration: Allows setting your HuggingFace API key to leverage text translation services seamlessly.
- Configurable Shortcuts: Quickly access the plugin with a keyboard shortcut (
Ctrl+Alt+Uon Windows/Linux orCmd+Alt+Uon macOS).
- Open IntelliJ IDEA or Android Studio.
- Navigate to
Settings>Plugins. - Search for Flutter Untranslated in the marketplace.
- Click Install and restart your IDE.
- Open any Flutter project in your IntelliJ-based IDE.
- Use the shortcut
Ctrl+Alt+U(Windows/Linux) orCmd+Alt+U(macOS) to start analyzing your code.
Alternatively, access the plugin viaTools > Flutter Untranslated. - View the results in the Flutter Untranslated tool window at the bottom of the IDE.
- Use the search bar in the tool window to filter results by text strings.
- Set a custom HuggingFace API key by entering it in the right-side input field and clicking the "Set API Key" button.
- Select relevant strings and generate ARB files by clicking the Generate ARB Files button.
- Text Analysis: The plugin scans your project's source code for any hardcoded strings.
- HuggingFace API Support: Provide an API key to translate identified strings directly into multiple languages.
- Code Navigation: Hyperlinks allow direct access to code locations for editing.
Contributions are welcome! If you'd like to enhance this plugin, fork the repository and submit a pull request.
Found a bug or have a feature request? Reach out to us:
- GitHub Issues: Report issues here
- Email: nikaboue10@gmail.com
This project is licensed under the MIT License. See the LICENSE file for details.