TranslateKeys is a Visual Studio Code extension designed to assist developers in managing internationalization (i18n) keys in their projects. This extension provides commands to create and check i18n keys, making it easier to maintain and organize translations.
Features
Create Internationalization Key: Quickly create a new i18n key for your project.
Check Keys: Validate existing i18n keys to ensure consistency and correctness.
Requirements
Visual Studio Code version 1.100.0 or higher.
A workspace containing a src/lang/en_US.json file for activation.
Extension Commands
This extension contributes the following commands:
extension.createIntlKey: Create a new internationalization key.
extension.checkKeys: Check the existing keys for issues.
You can access these commands via the Command Palette (Ctrl+Shift+P or Cmd+Shift+P on macOS).
Activation Events
The extension activates on the following events:
When the extension.createIntlKey or extension.checkKeys commands are executed.
When a JavaScript or plaintext file is opened.
When the workspace contains a src/lang/en_US.json file.
Development
Scripts
npm run lint: Lint the codebase using ESLint.
npm run pretest: Run linting before tests.
npm run test: Run the extension tests using the VS Code Test framework.
Testing
This extension uses Mocha for testing. To run the tests, execute:
npm run test
Release Notes
0.0.1
Initial release with commands to create and check i18n keys.