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

Make "Select language" dropdown / toggle for frontend #587

Closed
bobdenotter opened this issue Aug 19, 2019 · 0 comments · Fixed by #598

Comments

@bobdenotter
Copy link
Member

commented Aug 19, 2019

Part of #512

In #584 I added routes to the different localisations in the frontend. We now also need a way to make it easy for the user to toggle.

  • There should be a {{ localeselect() }} twig tag,
  • You can pass a style='dropdown' or style='list' to make it output a <select> or <ul><li> wrapperd links.
  • It should pick the correct locales from config
  • If the site has no (or only one) locale, it should output nothing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.