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

[BUG] If locales is undefined or empty '_localeswitcher.twig' throws error #152

Closed
nestordedios opened this issue Oct 20, 2017 · 0 comments · Fixed by #153
Closed

[BUG] If locales is undefined or empty '_localeswitcher.twig' throws error #152

nestordedios opened this issue Oct 20, 2017 · 0 comments · Fixed by #153

Comments

@nestordedios
Copy link
Contributor

Hi @SahAssar ,

As mentioned in #143 (comment). Using strict variables will trigger this error:
capture

As you said that can be fixed by using {% for key, locale in locales|default([]) %}

Would it be possible to add that to the base '_localeswitcher.twig' so it won't be necessary to create a '_custom_localeswitcher.twig'?

Details

  • Translate Version: [ 4.1 ]
  • Bolt Version: [ 3.3 ]
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

Successfully merging a pull request may close this issue.

1 participant