https://github.com/rothsandro/translately
A Visual Studio Code extension to work with translations, managed in TypeScript files.
https://github.com/rothsandro/translately
i18n vscode-extension
Last synced: 3 months ago
JSON representation
A Visual Studio Code extension to work with translations, managed in TypeScript files.
- Host: GitHub
- URL: https://github.com/rothsandro/translately
- Owner: rothsandro
- Archived: true
- Created: 2022-09-20T10:32:59.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-09-20T10:54:39.000Z (over 2 years ago)
- Last Synced: 2025-01-27T22:13:21.836Z (4 months ago)
- Topics: i18n, vscode-extension
- Language: TypeScript
- Homepage:
- Size: 49.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Translately
An extension to work with translations, managed in TypeScript files.
## Features
- Use the _Create translation_ command to create a new translation.
- Use the _Insert translation key_ command to insert an existing translation key into the current open file.## Requirements
- All translations must be stored in TypeScript files (JSON is not supported).
- Path and name of the translation files can be configured
- Each language must have its own file
- Translation object must be stored in a variable (name of the variable can be configured)
- Translaton object must be flat, nested objects are not supported### Example
```ts
// my-project/any/folder/en-us.ts
const translations = {
"login.form.title": "Login",
"login.form.submit-button.label": "Submit",
};export default translations;
```