-
Notifications
You must be signed in to change notification settings - Fork 1.1k
translate-attr not working #1577
Comments
Looks like the directive "translateAttr" is not included in the dist build result. |
Running Should the new file maybe be added to https://github.com/angular-translate/angular-translate/blob/master/Gruntfile.js ? Is there some build process to run? |
Yup, it must be added somewhere around line 60 in that file, then it will be added to the core js. |
In this case I won't be touching anything... Glad to see people need it 😄 |
Ah.. the grunt file have to be patched adding the new js file also. Sorry, overseen this. PRs are welcome, then I can handle this next week. |
Added a PR, feel free to review. |
Will be available in 2.12.1 shortly. |
Doesn't seem to work for me though... Maybe I'm doing something wrong? Can someone confirm that it works now with the version installed through bower? |
Here is a demo http://plnkr.co/edit/BjccjrhDqaweUHrkykx2?p=preview using the 2.12.1 tag, which is automatically the bower release of 2.12.1 |
@knalli thanks. strange, then I'll have to debug some more :) |
Hi, In this case it seems it successfully adds the attribute to the wrapping A similar thing is reported here: http://stackoverflow.com/questions/41035450/angular-translate-directives-attribute-without-the-filter |
@a-change this looks like a separate bug (which is not really stackoverflow material in my opinion). Looks like the way In my short search I couldn't find where PS. what you wrote about |
Did this issue ever get resolved? I'm still experiencing it in version 2.15.1 |
@jamesbrobb which issue? Multiple things are discussed here. You should submit a new issue with your specific problem (this issue has been closed). |
@jamesbrobb I told @a-change as well - this is not related to the original bug opened by @nunof07, why not open a separate issue that can be discussed with a proper title? |
Will do, thanks for the response
…On 23 Jun 2017 09:48, "Oded Niv" ***@***.***> wrote:
@jamesbrobb <https://github.com/jamesbrobb> I told @a-change
<https://github.com/a-change> as well - this is not related to the
original bug opened by @nunof07 <https://github.com/nunof07>, why not
open a separate issue that can be discussed with a proper title?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1577 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABq8tcbKinqLeunMi-3tGpHgj2LHSGD_ks5sG3vUgaJpZM4J1uEP>
.
|
Subject of the issue
Reading the documentation I would expect
translate-attr
to work, but I could only get it working using the deprecated way.Using
translate-attr="{ placeholder: 'placeholder' }"
doesn't work.Using
translate translate-attr-placeholder="placeholder"
works.Your environment
Steps to reproduce
Plunker: http://plnkr.co/edit/oIXnkRVHpO3xP4kDdsJ9?p=preview
The text was updated successfully, but these errors were encountered: