Skip to content
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

Added el localization #260

Merged
merged 1 commit into from
Mar 29, 2017
Merged

Conversation

gwynjudd
Copy link
Contributor

No description provided.

Gruntfile.js Outdated
if (prop.indexOf('-') < 0) {
return 'exports.' + prop + ' = require(\'./' + file + '\');';
} else {
return 'exports[\'' + prop + '\'] = require(\'./' + file + '\');';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you explain why?

because to me the only difference I see here is that now it does

exports.el

instead of

exports['el']

while both are equivalent.

Am I missing something?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is because of the jshint rule that forbids it (in jshint, search for "sub"). I have fixed it another way

@BenjaminVanRyseghem
Copy link
Owner

can you remove the commit "Disable jshint "sub" rule for index.js" from this PR?

@gwynjudd
Copy link
Contributor Author

@BenjaminVanRyseghem it is done, please note without that other commit you may see this build error:

Running "jshint:all" (jshint) task
   languages/index.js
      7 |exports['el'] = require('./el.js');
                ^ ['el'] is better written in dot notation.
>> 1 error in 47 files
Warning: Task "jshint:all" failed. Use --force to continue.
Aborted due to warnings.

@BenjaminVanRyseghem BenjaminVanRyseghem merged commit ef498d0 into BenjaminVanRyseghem:develop Mar 29, 2017
@gwynjudd gwynjudd deleted the el branch March 29, 2017 20:35
@BenjaminVanRyseghem
Copy link
Owner

in numbro 1.11.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants