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

Translating angular breadcrumb last #125

Closed
1nfinite opened this issue Jan 30, 2016 · 2 comments
Closed

Translating angular breadcrumb last #125

1nfinite opened this issue Jan 30, 2016 · 2 comments

Comments

@1nfinite
Copy link

I understand that the ncy-breadcrumb can be translated using angular translate with custom template. However, I could not find a way to translate ncy-breadcrumb-last from the documentation.

<span ncy-breadcrumb-last></span>

@freethejazz
Copy link
Contributor

@1nfinite: I'm working on a fix for #123, which will allow you to use a custom template for ncy-breadcrumb-last. You'll see in the comments there that I'm in a bit of a yak shave, but hope to surface soon and address the original issue.

@freethejazz
Copy link
Contributor

@1nfinite I've got a PR open for creating a template for this, but I discovered an undocumented way of doing this when writing tests for the new functionality. You simply set a value to the ncyBreadcrumbLast directive and that value gets used for the template:

<span ncy-breadcrumb-last="{{ncyBreadcrumbLabel | translate}}"></span>

The problem with this approach is that you'll have to set the value for every ncyBreadcrumbLast directive you use, but if upgrading to the next release isn't an option, it'll do.

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

No branches or pull requests

2 participants