-
-
Notifications
You must be signed in to change notification settings - Fork 2
User Guide
This guide covers the essential workflows of LocalizerAppMain. All descriptions are based on the actual application code.
- Getting Started
- Main Views
- Basic Comparison
- Advanced Diff View
- Batch Processing (Files View)
- History
- Quality Dashboard
- Settings
- Keyboard Shortcuts
-
Launch the application (
LocalizerAppMain.exeorflutter run). - The app defaults to the Basic Comparison view.
- The theme (Light, Dark, Amoled) is set to follow your system preference by default. You can change it in Settings > Appearance.
The application is organized into several views accessible via the navigation rail on the left:
| View | Purpose |
|---|---|
| Basic Comparison | Compare two files, see results, filter by status. |
| Advanced Diff | Detailed, row-by-row diff table with editing and AI features. |
| Files | Compare entire directories (batch processing). |
| History | Browse and reload past comparison sessions. |
| Quality Dashboard | Analytics and metrics for your translation progress. |
| Settings | Configure application preferences. |
This is the primary view for comparing two localization files.
There are two ways to select files:
- Drag & Drop: Drag a file from your file explorer and drop it onto the "Source" or "Target" drop zones.
- Browse: Click the folder icon on a drop zone to open a file picker dialog.
Once both a source and a target file are selected:
- Click the Compare Files button.
- A progress indicator shows the parsing and diffing stages.
- Results appear below, categorized as:
- Added: Keys in the source file that are missing in the target.
- Removed: Keys in the target file that are missing in the source.
- Modified: Keys present in both, but with different values.
- Identical: Keys where the source and target values match exactly.
Use the filter buttons above the results list to show/hide specific categories:
-
All|Added|Removed|Modified|Problems
The Problems filter highlights potential issues, such as:
- Placeholder/variable mismatches (e.g.,
{name}in source but not in target). - Empty target values.
- Click the Export button (download icon) in the results area.
- Choose a format: CSV, JSON, or XLSX.
- Select a save location. A toast notification will appear with an "Open" button to view the file.
When enabled in Settings, the app automatically re-runs the comparison if either the source or target file is modified on disk. This is useful for active development workflows.
After running a comparison in the Basic View, click View Details or navigate to the Advanced tab to open a more detailed analysis.
- Main Table (Center): A scrollable, row-by-row list of all entries. Each row shows the Key, Source Value, and Target Value.
- Sidebar (Right): Contains analytics and, if configured, AI translation tools.
- Filtering & Sorting: Filter by status (Added, Removed, Modified) and sort by key or similarity.
- Search: Use the search bar to quickly find specific keys or values.
- In-line Editing: If enabled in settings, you can click on a target value cell to edit it directly.
-
AI Actions (Sidebar): If an AI provider is configured (e.g., Gemini API key), you can select rows and use AI to:
- Translate missing entries.
- Suggest rephrased text.
- Save Changes: After making edits, click Save to write changes back to the target file.
- Export: Export the diff results to a file.
Use the Files view to compare all matching files between two directories.
- Select Directories: Drag-and-drop or browse to select a Source Directory and a Target Directory.
-
Auto-Matching: The app automatically pairs files with the same name (e.g.,
en.jsonin Source withen.jsonin Target). - Unmatched Files: Files unique to the source or target are listed separately. You can manually pair them using the Match button.
- Compare All: Click the Compare All button to run a diff on every paired file.
- View Results: The view updates to show a summary for each file pair (e.g., "+5 Added", "-2 Removed").
- Click on a file pair card to open a detailed dialog with the specific keys that changed.
- Export All: Click Export All to generate individual CSV files for each comparison, plus a summary CSV.
The History view shows all past comparison sessions.
- Sessions are displayed as cards, grouped by date.
- Each card shows: file paths, timestamp, and a mini-chart of Added/Removed/Modified counts.
- Sort: Click the sort menu to order by Date, File Path, or Change Count.
- Search: Use the search bar to filter history by file name.
- Reload: Click a history card to reload the comparison into the Basic View with the original files.
- Delete: Click the trash icon on a card to remove that session from history.
- Clear All: Click "Clear History" to remove all sessions (with confirmation).
The Quality Dashboard provides an overview of your localization health based on your comparison history.
- Summary Cards: Shows aggregate stats like Total Sessions, Total Keys Compared, Total Keys Added/Removed/Modified.
-
AI Usage Section: If you use AI translation, this section displays:
- Total API calls per provider (Gemini, OpenAI, DeepL).
- Token usage breakdown (Input vs. Output tokens).
- Estimated cost.
- Coverage Section: Visual progress bars showing how much of your source content has been translated.
- Trend Charts: Line charts showing changes over time (Words translated, Coverage %).
Click Export Report to generate a full quality report in JSON or Markdown format.
The Settings view is organized into several sections:
| Section | Key Options |
|---|---|
| General | Default language, view on startup. |
| Comparison Engine | Comparison mode (Key-based, Order-based, Smart Match), Similarity Threshold, Ignore Case, Ignore Whitespace, Ignore Patterns (Regex). |
| Appearance | Theme (Light, Dark, Amoled), Accent Color, Diff Colors, Font Size/Family. |
| File Handling | Default Encodings (UTF-8, etc.), CSV Delimiter, Auto-Reload on Change. |
| AI Services | API Keys (Gemini, OpenAI, DeepL), Default Model, Temperature, Max Tokens. |
| Version History (Git) | Enable Git integration (stubbed), default branch, commit message template. |
| About | Version info, check for updates. |
All settings changes are saved automatically using Hive persistence.
The application supports several keyboard shortcuts for faster navigation:
| Action | Shortcut |
|---|---|
| Open Files... | Ctrl+O |
| Export Results | Ctrl+E |
| Save Changes (Advanced View) | Ctrl+S |
| Refresh / Re-compare | Ctrl+R |
| Focus Search |
Ctrl+F or /
|