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

[ Question ] Translations: how to translate menu labels #1108

Closed
peterboorsma opened this issue Feb 21, 2020 · 5 comments
Closed

[ Question ] Translations: how to translate menu labels #1108

peterboorsma opened this issue Feb 21, 2020 · 5 comments

Comments

@peterboorsma
Copy link
Contributor

When creating menu's in a multi-language installation it's unclear how to make translatable menu labels.

My menu:

`main:

  • label: Home
    title: Voorpagina
    link: homepage
    class: navbar-item
  • label: Agenda
    class: navbar-item
    link: /agenda
  • label: Nieuws
    class: navbar-item
    link: /nieuws
  • label: Over ons
    class: navbar-item
    link: /over-ons`

I use a copy of '_sub_menu.twig' from the base-2018 theme to show the menu.
This works fine, except it's unclear how to add labels per language.

(Bolt 4 rc3)

@bobdenotter
Copy link
Member

Fixed in bolt/project#16

@bobdenotter
Copy link
Member

It will need to be documented, though.. very short version: {{ __('mylabel_here') }}, which will then show up in /translations/.., ready to be localised. Either in the Bolt backend, or using a third party service.

@I-Valchev
Copy link
Member

I-Valchev commented Feb 22, 2020

@bobdenotter yes. I think we might need to create that /translations/ folder in bolt/project though. 🤔

@bobdenotter
Copy link
Member

@I-Valchev Later today i'm going to update the "Project", and i'll test if it needs it in the repo, or if it gets created automatically! :-)

@4external
Copy link

@bobdenotter yes. I think we might need to create that /translations/ folder in bolt/project though. 🤔

what format file need for translating labels in menu?

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

4 participants