{"id":49877127,"url":"https://github.com/hsayed21/json-i18n-key","last_synced_at":"2026-05-15T12:40:07.341Z","repository":{"id":264867806,"uuid":"857504725","full_name":"hsayed21/json-i18n-key","owner":"hsayed21","description":"Json I18n Key is a VSCode extension for managing i18n translation keys with features like key navigation, renaming, auto-completion, and AI translation suggestions","archived":false,"fork":false,"pushed_at":"2025-05-02T11:09:11.000Z","size":1658,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-02T12:19:43.884Z","etag":null,"topics":["vscode","vscode-extension"],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items?itemName=hsayed.json-i18n-key","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/hsayed21.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","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,"zenodo":null}},"created_at":"2024-09-14T20:29:27.000Z","updated_at":"2025-05-02T11:09:14.000Z","dependencies_parsed_at":"2025-01-06T19:28:57.453Z","dependency_job_id":"a7074c78-7950-4bda-b7fb-ec9f0c526ef1","html_url":"https://github.com/hsayed21/json-i18n-key","commit_stats":null,"previous_names":["hsayed21/json-i18n-key"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/hsayed21/json-i18n-key","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hsayed21%2Fjson-i18n-key","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hsayed21%2Fjson-i18n-key/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hsayed21%2Fjson-i18n-key/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hsayed21%2Fjson-i18n-key/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hsayed21","download_url":"https://codeload.github.com/hsayed21/json-i18n-key/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hsayed21%2Fjson-i18n-key/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33067473,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T11:35:32.926Z","status":"ssl_error","status_checked_at":"2026-05-15T11:35:31.362Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["vscode","vscode-extension"],"created_at":"2026-05-15T12:40:05.529Z","updated_at":"2026-05-15T12:40:07.332Z","avatar_url":"https://github.com/hsayed21.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/hsayed21/json-i18n-key/master/icon.png\" width=300' alt=\"json-i18n-key\"\u003e\n  \u003cp\u003eJson I18n Key | \u003ca href=\"https://marketplace.visualstudio.com/items?itemName=hsayed.json-i18n-key\"\u003eDownload\u003c/a\u003e\u003c/p\u003e \n\u003c/h1\u003e\n\n**Json I18n Key** is a Visual Studio Code extension designed to streamline internationalization (i18n) workflows in JSON files. It provides efficient key-path translations, hover tooltips, auto-completion, renaming keys, and AI-powered translation suggestions using GitHub Copilot. The extension helps developers easily manage translation keys across multiple language files.\n\n\u003e This project was inspired by [jsonyamlkeynavigator](https://github.com/shanmuganathan-balaraman/jsonyamlkeynavigator), and some of its code has been adapted to suit the needs of this extension.\n\n## Features\n\n- **Find Translation Key**: Quickly locate and navigate to a translation key in your JSON translation files.\n- **Add Translation Key**: Add new translation keys seamlessly across multiple language files (e.g., English, Arabic).\n- **Rename Translation Key**: Rename translation keys in all translation files where they exist.\n- **Hover to View Translation**: See the translation of a key while hovering over it in the editor.\n- **Auto-completion**: Get suggestions for translation keys while typing, making it easier to use and manage your i18n keys.\n- **Multi-language Support**: Supports various languages like `en`, `ar`, or any other language files configured.\n- **Copilot AI Auto-Translate**: Automatically generate translation suggestions for new keys using GitHub Copilot AI, enhancing the translation workflow.\n- **Translation Path Configuration**: Customize your translation file paths and define the default language in your project’s settings.\n- **Search Keys and Values**: Search for keys or values that contain a specific string.\n- **Suggest Existing Keys for Reuse**: When adding a new translation key, the extension will suggest existing keys for reuse to avoid redundancy.\n- **Cleanup Unused Translation Keys**: Detect and clean up unused translation keys.\n- **Diagnostics and Quick Fixes**: Automatically detect missing translation keys in your code and provide quick fixes to add them.\n- **Copy Existing Translation Key**: Copy values from existing translation keys to new or updated keys, ensuring consistency and saving time.\n- **Auto Reference Updates**: Automatically updates all references to translation keys when renamed.\n\n## How to Use\n\n1. **Configure Translation Files**:\n   - Create a `.vscode/settings.json` file in your project and add the following configuration, adjusting the paths as needed:\n   ```json\n   {\n     \"json-i18n-key.translationFiles\": [\n       {\n         \"lang\": \"en\",\n         \"filePath\": \"C:\\\\Projects\\\\Project\\\\src\\\\assets\\\\i18n\\\\en.json\",\n         \"isDefault\": true\n       },\n       {\n         \"lang\": \"ar\",\n         \"filePath\": \"C:\\\\Projects\\\\Project\\\\src\\\\assets\\\\i18n\\\\ar.json\",\n         \"isDefault\": false\n       }\n     ]\n   }\n   ```\n   \u003e This configuration can be set per project or globally in your VSCode settings.\n\n2. **Keybindings**:\n   - Use default keybindings or customize them in your VSCode keybindings settings.\n\n## Extension Features in Action\n\n- **Find Translation Key**: Instantly navigate to the key in all translation files and highlight its position.  \n  ![find-key](src/assets/gif/find-key.gif)\n\n- **Add Translation Key with Copilot AI Auto-Translate**: Automatically generate translations when adding keys.  \n  ![add-key](src/assets/gif/add-key.gif)\n\n- **Rename Translation Key**: Rename keys consistently across all translation files.  \n  ![rename-key](src/assets/gif/rename-key.gif)\n\n- **Hover to View Translation**: See translation details by hovering over keys in the editor.  \n  ![hover-on-key](src/assets/gif/translation-on-hover.gif)\n\n- **Auto-completion Suggestions**: Get intelligent key suggestions as you type.  \n  ![auto-suggestion](src/assets/gif/auto-suggestion.gif)\n\n## Future TODO\n\n- [x] Cache keys and refresh caching when files change \"Optimize Search\".\n- [ ] Support multiple translation APIs (Google, DeepL, Microsoft).\n\t- [ ] Allow fallback behavior if the preferred API fails.\n- [x] Custom key formats when created or renamed allow options like PascalCase, snake_case, camelCase, kebab-case.\n- [ ] Statusbar action copy full translation path.\n- [x] Key validation warn users of duplicate keys when added or updated.\n- [x] Diagnostics check translation files for issues and suggest quick fixes.\n- [x] Option Auto-detect i18n translation files within a project.\n- [x] Maintain original JSON formatting (spaces, indentation) to avoid unnecessary git diffs.\n- [ ] Sync missing translations ensure consistency across languages.\n- [ ] Display inline hover editor for translation keys in code.\n- [x] Search for keys or values that contain a specific string.\n- [ ] Auto-merge similar keys to reduce redundancy.\n- [x] Suggest existing keys for reuse when adding new ones.\n- [x] Rename keys and update references in code automatically.\n- [x] Detect and clean up unused translation keys.\n- [x] Copy values from existing translation keys to new or updated keys.\n\n## Contributing\n\nContributions are welcome! If you encounter any issues or have suggestions for improvements, feel free to open an issue or submit a pull request.\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE.txt) - see the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhsayed21%2Fjson-i18n-key","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhsayed21%2Fjson-i18n-key","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhsayed21%2Fjson-i18n-key/lists"}