Giter VIP home page Giter VIP logo

angular-gettext-cli's Introduction

Hi there ๐Ÿ‘‹

  • ๐Ÿ”ญ Iโ€™m a YouTrack Front-End Developer at JetBrains

angular-gettext-cli's People

Contributors

abruzzihraig avatar addaleax avatar allenbw avatar andrey-skl avatar joh-klein avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

angular-gettext-cli's Issues

Compilation script

Hi! Iโ€™m working on a project where we decided to replace grunt with a set of npm/cli scripts โ€“ would you accept a PR adding support for the compiler feature of angular-gettext (as opposed to extract)? If so, would you rather have that to be a completely new script in bin/, or would you want something differentiated by a flag (e.g. --compile)?

/cc @nhaesler

Script execution fails on Windows (due to using symbol | in regexp)

make-dir pot && angular-gettext-cli --files './src/blocks/**/*.+(js|html)' --dest ./pot/default.pot --marker-name i18n

'html)'' is not recognized as an internal or external command,
operable program or batch file.

npm ERR! code ELIFECYCLE
npm ERR! errno 255

If I add escaping then it seems files are not resolved (read 0 files):

[email protected] i18nExtract C:\Sources\Git\git.labs.intellij.net\ring\bundle\installer\client
make-dir pot && angular-gettext-cli --files \"'./src/blocks/**/*.+(js|html)'\" --dest ./pot/default.pot --marker-name i18n

Finished parsing './src/blocks/**/*.+(js|html)', read 0 files.
All files processed, stored in a file ./pot/default.pot

marker-name but marker-names

Wondering if ya might accept a pr that added the option to process marker-names, thinking something along the lines of --marker-names ['__', 'N_']

Bug with Typescript 2.7 - Definite Assignment Assertions

I know there is no official support for typescript files, but so far I had no problems parsing them instead of JS.
But since TypeScript 2.7 there are Definite Assignment Assertions (https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-7.html) with an ! after the declaration; e.g. let x!: number;

A file with such a declaration is no longer parsable and throws a parsing error.

Would you be willing to accept a PR fixing this issue?
One possible solution is extracting the strings from the converted file afterwards, but then i loose the correct file & line information in the messages.pot

throw new Error('No Language header found!');

angular-gettext-cli --files 'public/templates/funds/*.+(html)' --dest './angular_html.pot'

generate po file with below header:

msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Project-Id-Version: \n"

error after upgrade

i updated from 1.0.5 to 1.0.7 (automatically because of defined range of ^1.0.5)

my command looks like this:

angular-gettext-cli --files './src/**/*.+(config\\.js)' --dest $CIRCLE_ARTIFACTS/master.pot --marker-name gettext

with 1.0.5 everything is working, at 1.0.7 the result looks like this (without generating any errors):

msgid ""
msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Project-Id-Version: \n"

took me some time to figure out, the error was not me, but the patch version update...
please try to fix the problem and make sure, you don't publish patch releases containing breaking changes

No specific information on parsing error

I get Error parsing some/javascript/file.js error with no information (line number, character in line) on where the error is present.
Is there a way to get this information?

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.