Giter Club home page Giter Club logo

quick-i18n-vscode's Introduction

quick-i18n-gen README

This Extension provides a quick way to translate and replace string literals in your code.

Features

  • Tooltip in VSCode for quickly replacing string literals with a translation key
  • Quick and automatic translation of said string literals using a Translation API
    • Currently supported APIs: DeepL
  • Automatically add translations with key to your translation file
    • Currently supported file types: CSV

Usage of the library would look like this

How to use

Requirements

You need an API key for Deepl, which is free up to a certain amount of translations.

Setup

  1. Set and register your API. Can be done via settings or via the Register Translation API command.

Register API

  1. Select the translation file. Can be done via settings or via the Select Translation File command.

Select File

  1. Select the target languages. Currently, this can only be done through the settings

Extension Settings

  • quick-i18n-gen.apiProvider: API Provider to use for translation. Currently only Deepl available.
    • quick-i18n-gen.deepl.apiKey: API Key for DeepL Translation API
    • quick-i18n-gen.deepl.sourceLanguage: Source language for translation. If left empty, auto-detects the language of the text.
    • quick-i18n-gen.deepl.targetLanguages: Target languages for translation. Translations will be written to the file in order specified here.
  • quick-i18n-gen.translationFilePath: Path to the translation file.
  • quick-i18n-gen.translationFileType: File type of the translation file. Currently only CSV supported.
    • quick-i18n-gen.csv.separator: Separator for CSV file.
    • quick-i18n-gen.csv.quote: Quote character for CSV file.
    • quick-i18n-gen.csv.escape: Escape character for CSV file.
    • quick-i18n-gen.csv.header: Whether CSV file has a header or not.
  • quick-i18n-gen.allowDuplicates: Whether to allow duplicate translations or not.
  • quick-i18n-gen.replacementString: String template to replace the string literal with.

Release Notes

1.0.0

Initial release

  • Added Deepl API
  • Added CSV file type
  • Added general settings
  • Added translation file selection
  • Added string code actions

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.