GithubHelp home page GithubHelp logo

lifeart / els-intl-addon Goto Github PK

View Code? Open in Web Editor NEW
10.0 10.0 3.0 110 KB

Internationalization addon for Unstable Ember Language Server

License: MIT License

JavaScript 100.00%
emberjs language-server

els-intl-addon's Introduction

Hi there ๐Ÿ‘‹

  • ๐Ÿง˜ I'm working at Abacum using Deel, ex: EPAM Systems
  • ๐ŸŒ Located in GMT+3 St.Petersburg (Russia), GMT+4 Yerevan (Armenia)
  • ๐Ÿ”ญ My OSS work related to DX, Ember ecosystem, Web API's
  • ๐Ÿ“ฃ Speaker and invited expert at HolyJS conf
  • ๐ŸŒฑ I like: AST, TypeScript, DOM API, Quadrocopters and FPV
  • ๐Ÿ“ซ How to reach me: [email protected]
  • ๐Ÿ’ฐ I'm available for consulting

els-intl-addon's People

Contributors

camerondubas avatar lifeart avatar patocallaghan avatar yratanov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

els-intl-addon's Issues

Extenstion for VSCode?

I think it should have an extenstion in VSCode to make user setup easier. What do you think?

issue with suggestions in scripts

suggestions are working fine in templates
but i couldn't get them to work in js

and also


    You can write translation result and it will be replaced to path.

'some.translation.path': 'Translation result'

{{t 'Translati..'}} -> {{t 'some.translation.path'}}

i couldn't understand what this would do
having translation suggestions is awesome. but i mostly handle my translations in the script

Autocomplete for Nested Translations

Hi @lifeart, great addon! Helps a lot :).

We encountered a bug/missing feature, as we decided to nest our translation files to keep our translation base clean and maintainable. With the nested structure the intellisense/autocomplete works correct for the root files (directly in translations/), but not in subfolders. We are using the latest v5 of ember-intl and yaml files.

๐Ÿ“š Docs

In our example we have the file structure similar to this:

translations
  - components
    - companies
      - en-us.yml

When trying to autocomplete the path by typing {{t 'components.'}} there is no autocompletion. When typing the translated string, e.g. "Contacts", it autocompletes to the key which is relative to the file, e.g. the en-us.yml has ...

singular: Contact
plural: Contacts

... then it would complete to {{t 'plural'}} when choosing "Contacts" from the intellisense. The correct path is components.companies.plural. Seems like the nested files are scanned, but the path is not absolute.

Can you help with this? Thanks in advance!

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.