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 ability to change language of all app-localize-behavior instances #44

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

mvolkmann
Copy link
Contributor

No description provided.

fixed demo toggles to switch on language change

simplified based on feedback from notwaldorf

changed an event name
@mvolkmann
Copy link
Contributor Author

This addresses issue #32.

@@ -194,6 +195,10 @@
}
},

ready() {
this.fire('app-localize-behavior-created', this);
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add docs for these events (see the @event annotations on L103)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done. Feel free to improve the wording if you feel there is a better description.

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe rename this to app-localize-behavior-ready? created is another callback, that has another meaning :)

@notwaldorf
Copy link
Contributor

I think this is starting to look good! Left a bunch of nits and some questions

properties: {
/**
* The language used for translation.
*/
language: {
type: String
type: String,
Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, sorry I missed this the first time around: I don't think you need an observer. You can just add notify: true, and this will fire language-changed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I tried making that change, but it stops working. I suspect it is because notify is only notifying the parent and this.fire is notifying all ancestors. In my case the event must go beyond the immediate parent.

@notwaldorf
Copy link
Contributor

(also needs a rebase!)

@cordovapolymer
Copy link

when can this pull request be expected to be merged?

@notwaldorf
Copy link
Contributor

The PR needs a rebase, and review comments haven't been addressed, so it cannot be merged in its current state

@cordovapolymer
Copy link

Any updates on this?

@notwaldorf
Copy link
Contributor

Ping @mvolkmann.

@mvolkmann
Copy link
Contributor Author

Sorry to say the reason I haven't been able to finalize this is that I can't get the commit squashing correct. Every time I try the result is not what I expect.

@notwaldorf
Copy link
Contributor

Ah it's ok, you can ignore the squashing then -- I'll just do it from the
merge options if that's easier :)
On Wed, Oct 19, 2016 at 7:49 PM Mark Volkmann notifications@github.com
wrote:

Sorry to say the reason I haven't been able to finalize this is that I
can't get the commit squashing correct. Every time I try the result is not
what I expect.


You are receiving this because you commented.

Reply to this email directly, view it on GitHub
#44 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABTkUka5Jv5unKQbYOw90urbxQ99ixeXks5q1mYugaJpZM4Jc08m
.

@mvolkmann
Copy link
Contributor Author

That would be great. Thanks Monica!


R. Mark Volkmann
Object Computing, Inc.

On Oct 20, 2016, at 3:20 AM, Monica Dinculescu notifications@github.com wrote:

Ah it's ok, you can ignore the squashing then -- I'll just do it from the
merge options if that's easier :)
On Wed, Oct 19, 2016 at 7:49 PM Mark Volkmann notifications@github.com
wrote:

Sorry to say the reason I haven't been able to finalize this is that I
can't get the commit squashing correct. Every time I try the result is not
what I expect.


You are receiving this because you commented.

Reply to this email directly, view it on GitHub
#44 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABTkUka5Jv5unKQbYOw90urbxQ99ixeXks5q1mYugaJpZM4Jc08m
.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@notwaldorf
Copy link
Contributor

@mvolkmann you still need to do a rebase and address the review comments, though :)

@mvolkmann
Copy link
Contributor Author

I thought I did address all the feedback. I just can't get the rebase to work correctly. Could you give that a shot? I'm fine with any changes you want to make to my pull request.


R. Mark Volkmann
Object Computing, Inc.

On Oct 20, 2016, at 6:15 AM, Monica Dinculescu notifications@github.com wrote:

@mvolkmann you still need to do a rebase and address the review comments, though :)


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@notwaldorf
Copy link
Contributor

Hmm I left comments that you shouldn't fire 'language-changed' events explicitly, and you should just make the property be a notify property.

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

Successfully merging this pull request may close these issues.

4 participants