-
-
Notifications
You must be signed in to change notification settings - Fork 150
Localizing the navigation? #12
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
Comments
Hi @blissi |
@xidedix oh sorry, I didn't explain it well enough what I am trying to do...I have a language toggle in my application that allows the user to update the current language on-the-fly. That works fine for the rest of my app, but I couldn't get the navigation to work properly. I tried the two approaches that I described in my first post. |
@blissi I have the same problem trying to update the navigation menu dynamically. My use case is that my menu items come from the server. So based on the content I am viewing, the menu may be different. Been watching for update on this since you posted this. By any chance, have you found a work around for this? |
@blissi Spent sometime on the codes. Found what may be wrong. The host replacement routine |
@burntblark Thanks that you shared your changes with me. It doesn't work, though: when the user switches the language, the regular navigation items change their text, but the title items don't do (as a side note: I implemented language switch with my second approach - that is, the navigation items in _nav.ts are patched, no new navigation structure created). |
Hi everyone! I'm trying to update the navigation menu dynamically but it doesn't work. Menu data comes from server. Everytime that the application received the new menu data, the component adds the new menu after the old. How can I fix this? Thanks! -- core ui versions: |
Hi! |
Hi. I'm experiencing this same issue with duplicate menu items. What's the best way to resolve? |
+1 |
What I did for the duplicate issue was create my own components locally. See https://gist.github.com/Azuka/b4837da81614826e655c60dcdbf3d40b. I haven't seen any issues so far. It seems to have something to do with multiple elements in a template with |
For the titles, src/app/app.component.html src/app/app.component.ts
src/app/app.module.ts
The title one won't get incremented. It's likely because of the AppSidebarNavTitleComponent using a simple property assignment instead of an angular template without property change detection. |
For those whom may concern, it may be an ugly fix
Directly update the content by dom method. |
- fix(sidebar): navItems reassignment bug [#126](coreui/coreui-free-angular-admin-template#126), [#42](coreui/coreui-free-angular-admin-template#42), #12 - refactor(aside): drop `Replace` - refactor(breadcrumb): drop `Replace` new component `cui-breadcrumb` (migration needed) - refactor(footer): minor changes - refactor(header): drop `Replace` - refactor(layout): cleanup - refactor(sidebar-nav): drop `Replace`, redesign
I have the same problem. in *.component.html
in *.component.ts
}--> ### HERE i18n VALUE ### `;
} For a change, all menu items use foreach(){...} |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions |
Hallo,
how can I localize the navigation of the AppSidebarNav? I tried two approaches, but both failed:
The text was updated successfully, but these errors were encountered: