-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extraction from JS ES6 files does not work and no debug messages #140
Comments
Okay, I found the culprit. Anuglar-gettext-tools don't work with javascript ES6. async function loadTypes() {
if ($rootScope.dashboard.types) return;
const { categories } = await Api.offerTypes();
$rootScope.dashboard.types = categories;
} And extraction task siliently died on async function. I request compatibility with ES6 and printing some debug info - to know that files could not be translated due to some error. Right now we are going to use babel to downgrade our javascript to processable version. |
I think that those two commits will be helpful: |
There are 2 issues here:
|
It's failing on the async/await, which is not part of ES6/ES2015, but is slated for ES7. espree doesn't support it [1] so there's probably nothing we can do. When async/await is standardized, it will be added to espree, and we should support it without any changes. Until then, use a transpiler like babel before calling angular-gettext. [1] eslint/js#140 |
Also, the lack of error message will be fixed when #143 lands. Thanks for reporting this. |
Please disregard this message and look at the following one.
The text was updated successfully, but these errors were encountered: