Coder Social home page Coder Social logo

lsp-translations's Introduction

visitors

lsp-translations's People

Contributors

rbozan avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

lsp-translations's Issues

Watching translation file / updating definition on translation file change does not work for parent directory

  • Double dot in config is not followed. For example:
    "lsp-translations.translationFiles.include": [
        "../backend/cache/translations.json",
        "./backend/cache/translations.json",

Notification becomes:

{
    "globPattern": "/home/rbozan/Projects/recharge-mobile-app/frontend/backend/cache/translations.json"
},
{
    "globPattern": "/home/rbozan/Projects/recharge-mobile-app/frontend/backend/cache/translations.json"
},

Go to reference of a translation key by searching

  1. Visit screen of interest
  2. See a translation
  3. Execute command in editor which optionally asks you which language you are using
  4. Type in the text you are seeing
  5. It immediately goes to the reference (which is the screen / piece of code used in the screen) of the particular translation key which has the given value.

Use `treesitter`

PHP example:

/\$lang\['(.+?)'\] = '(.+?)';/gms

$lang['website_title'] = 'abacadef';
$lang['winnerblock.35.content'] = '[b]Juni/Juli[/b]

214w67961
21375r050
2120aw6631
21054w228
209wra01388';
$lang['winnerblock.36.content'] = '[b]August/September[/b]

24482aw434
239r48641
23b363200';

Select and ignore data by regex

958e2b2be5424bde4eb527e36c4094dd.ar-ae.account.validations.maxLength

// seperate by dot: (.+?(\.|\Z))?

// retrieve language (ISO 639-1): ^.+?\.(?<language>.+?)\. 

// ignore project id and language: ^.+?\..+?\.(.+$)

PHP example:

/\$lang\['(.+?)'\] = '(.+?)';/gms

$lang['website_title'] = 'abacadef';
$lang['winnerblock.35.content'] = '[b]Juni/Juli[/b]

214w67961
21375r050
2120aw6631
21054w228
209wra01388';
$lang['winnerblock.36.content'] = '[b]August/September[/b]

24482aw434
239r48641
23b363200';

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.