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

Using i18n translations in partials/nav.html #49

Closed
JulianSchutsch opened this issue Sep 22, 2023 · 1 comment
Closed

Using i18n translations in partials/nav.html #49

JulianSchutsch opened this issue Sep 22, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@JulianSchutsch
Copy link

JulianSchutsch commented Sep 22, 2023

Hi,

The issue was, that the translation entries in i18n for some custom menu entries were ignored. Checking nav.html i applied the suggestions for menu: https://gohugo.io/templates/menu-templates/#example to nav.html:

.Name -----> or (T .Identifier) .Name | safeHTML

which resulted in the i18n entries being properly used. Would this code break in some cases i might not considered?

This also affects: sidebar.html, nested-desktop.html, nested-mobile.html.

@kaiiiz kaiiiz added the bug Something isn't working label May 25, 2024
@kaiiiz
Copy link
Owner

kaiiiz commented May 25, 2024

Fixed in v3.0.0.

@kaiiiz kaiiiz closed this as completed May 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants