Giter Site home page Giter Site logo

redmser / vscode-fluent Goto Github PK

View Code? Open in Web Editor NEW

This project forked from macabeus/vscode-fluent

0.0 0.0 0.0 10.1 MB

πŸ’¬ VS Code extension to work with Fluent, the correct-by-design l10n programming language

License: MIT License

JavaScript 2.79% TypeScript 97.21%

vscode-fluent's Introduction

vscode-fluent

πŸ’¬ VS Code extension to work with Fluent, the correct-by-design l10n programming language

GitHub Stars Tests Visual Studio Marketplace Downloads

Fluent is a Mozilla's programming language for natural-sounding translations. And vscode-fluent is a VisualCode Studio extension to improve developer experience while working with this language.

Feature

  • Syntax highlight
  • Show syntax errors
  • Code Action to extract a string to Fluent files
  • List file symbol (β‡§βŒ˜O on Mac, Ctrl+Shift+O on Linux and Windows)
  • Hover support on messages
  • Breadcrumbs support
  • Go to message definition from a reference

Code Action

Extract string to FTL

Using the code action "Extract to Fluent files" you can easly extract a string to from source code to all FTL files on your project.
To open the code action menu, you should select a string (including its quotes) and then type ⌘ + . (or Ctrl + .).

You can change the replacement template using the configuration vscodeFluent.replacementTemplate.

By default, the message will be added to all Fluent files on the workspace. But if you are working on a workspace with multiple projects, and each project has its Fluent files, you won't want mix messages between the projects. To avoid that, you should use the configuration vscodeFluent.projects, and add on it each projects's root path. See the bellow image for an instance.

How to develop vscode-fluent

Syntax

The syntax is written on a YML file. You can compile it running:

> npm run build:syntaxes

Extension

You can run the extension using the Run Extension task on VSCode.

Tests

You can run the automated tests using the Test Extension - No Workspace and Test Extension - With Workspace tasks on VSCode.

vscode-fluent's People

Contributors

macabeus avatar brian-yeh avatar

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.