{"id":28221150,"url":"https://github.com/7wilightxdev/flutter-localization-extractor","last_synced_at":"2026-04-13T18:01:48.234Z","repository":{"id":284212751,"uuid":"908075416","full_name":"7wilightxdev/flutter-localization-extractor","owner":"7wilightxdev","description":"This Visual Studio Code extension simplifies the process of extracting and managing localization keys for Flutter applications","archived":false,"fork":false,"pushed_at":"2025-10-01T04:29:35.000Z","size":37,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-01T06:25:06.747Z","etag":null,"topics":["flutter","generator","localization","vscode-extension"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/7wilightxdev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-25T04:05:37.000Z","updated_at":"2025-10-01T04:15:45.000Z","dependencies_parsed_at":"2025-03-24T19:33:00.918Z","dependency_job_id":null,"html_url":"https://github.com/7wilightxdev/flutter-localization-extractor","commit_stats":null,"previous_names":["7wilightxdev/flutter-localization-extractor"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/7wilightxdev/flutter-localization-extractor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7wilightxdev%2Fflutter-localization-extractor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7wilightxdev%2Fflutter-localization-extractor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7wilightxdev%2Fflutter-localization-extractor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7wilightxdev%2Fflutter-localization-extractor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/7wilightxdev","download_url":"https://codeload.github.com/7wilightxdev/flutter-localization-extractor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/7wilightxdev%2Fflutter-localization-extractor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31764317,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T15:25:13.801Z","status":"ssl_error","status_checked_at":"2026-04-13T15:25:09.162Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flutter","generator","localization","vscode-extension"],"created_at":"2025-05-18T05:15:51.304Z","updated_at":"2026-04-13T18:01:48.228Z","avatar_url":"https://github.com/7wilightxdev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Localization Key Extractor for Flutter\n\nThis Visual Studio Code extension simplifies the process of extracting and managing localization keys for Flutter applications. It allows developers to easily convert text into localized keys and manage ARB files (`app_en.arb`, `app_vi.arb`, etc.) directly from the editor.\n\n## Features\n\n- **Extract Localization Keys:** Quickly create localization keys from selected text.\n- **Automatic ARB File Updates:** Add generated keys and translations directly to your ARB files.\n- **Support for String Interpolation:** Handles placeholders like `$username` or `${username}` automatically.\n- **Run Generate Command (Optional):** Automatically regenerate localization files after updates.\n- **Customizable Configurations:** Define output files and prefixes via `extract_localization_config.yaml`.\n\n## Installation\n\n1. Install the extension from the Visual Studio Code Marketplace.\n2. Add a `extract_localization_config.yaml` file to your project workspace (details in the **Configuration** section).\n\n## Configuration\n\nAdd a `extract_localization_config.yaml` file to the root of your project with the following structure:\n\n```yaml\noutputFiles:\n  - lib/i10n/app_en.arb\n  - lib/i10n/app_vi.arb\nprefix: AppLocalization.of(context)\ngenCommand: flutter gen-l10n\n```\n\n### Configuration Fields\n\n1. `outputFiles`: A list of paths to your ARB files.\n2. `prefix`: The prefix for localization calls (e.g., AppLocalization.of(context)).\n3. `genCommand`: Whether to run gen command automatically.\n\n## Usage\n\n### 1. Generate Localization Key\n\n1. **Select Text:** Highlight the text in your editor that you want to localize.\n2. **Right-Click:** Choose **\"Create Localization Key\"** from the context menu.\n3. **Fill the Prompt:**\n   - **Key Name:** Default is a camelCase version of the selected text.\n   - For interpolated strings, define placeholder types (e.g., `String`, `int`).\n\n### 2. Automatic ARB File Updates\n\nThe generated key and its value will be added to all ARB files defined in your configuration. For example:\n\n```json\n{\n  \"helloUsername\": \"Hello, {username}!\",\n  \"@helloUsername\": {\n    \"placeholders\": {\n      \"username\": {\n        \"type\": \"String\"\n      }\n    }\n  }\n}\n```\n\n### 3. Replace Selected Text\n\nAfter generating the key, the selected text will be replaced with a localization call. For example:\n\n#### Input\n\n```dart\n\"Hello, $username!\"\n```\n\n#### Output\n\n```dart\nAppLocalization.of(context).helloUsername(username)\n```\n\n### 4. Automatically Run Gen Command\n\nIf enabled in the `extract_localization_config.yaml`, the extension will automatically execute gen command after updating ARB files. This ensures your localization changes are immediately applied.\n\n## License\n\nThis extension is licensed under the MIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F7wilightxdev%2Fflutter-localization-extractor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F7wilightxdev%2Fflutter-localization-extractor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F7wilightxdev%2Fflutter-localization-extractor/lists"}