Skip to content

Conversation

BorntraegerMarc
Copy link
Contributor

Resolves #4

@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 97.877% when pulling b4128ce on BorntraegerMarc:feature/nested-objects into ad01588 on tflori:master.

Copy link
Owner

@tflori tflori left a comment

Choose a reason for hiding this comment

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

please run ts lint: npm run tslint and fix the errors


private filter(translations): any {
for (let key in translations) {
if (typeof translations[key] == "object" && translations[key] !== null && !Array.isArray(translations[key])) {
Copy link
Owner

Choose a reason for hiding this comment

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

this line is too long


private filter(translations): any {
for (let key in translations) {
if (typeof translations[key] == "object" && translations[key] !== null && !Array.isArray(translations[key])) {
Copy link
Owner

Choose a reason for hiding this comment

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

== should be ===

@tflori
Copy link
Owner

tflori commented Dec 23, 2016

It's another interesting approach but have you tried accessing them? because I think that TranslateLoader::instant('app.loginText') can not access this objects.

But I like your tests (except the things tslint mentioned).

@BorntraegerMarc
Copy link
Contributor Author

@tflori yup, I'm fixing them now

@BorntraegerMarc
Copy link
Contributor Author

OK, I'm merging your logic and my tests together 😄

@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) to 97.872% when pulling ac18d24 on BorntraegerMarc:feature/nested-objects into ad01588 on tflori:master.

@BorntraegerMarc
Copy link
Contributor Author

BorntraegerMarc commented Dec 23, 2016

OK @tflori Everything is included now. Inclusive tests... Could you merge the PR and publish a new version? That would be charmin' 😄

@tflori tflori merged commit 3b3bcb3 into tflori:master Dec 23, 2016
@tflori tflori mentioned this pull request Dec 23, 2016
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.

3 participants