Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>translatelyNew to Visual Studio Code? Get it now.

translately

Sandro Roth

|
7 installs
| (0) | Free
Manage translations in TypeScript files
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

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

// my-project/any/folder/en-us.ts
const translations = {
  "login.form.title": "Login",
  "login.form.submit-button.label": "Submit",
};

export default translations;
  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft