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

[Translation] Add icon options on the language switch toggle #2953

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DorienD
Copy link
Member

@DorienD DorienD commented May 3, 2022

Add icon options on language switch template.

@DorienD DorienD requested a review from mworrell May 3, 2022 09:35
@DorienD DorienD self-assigned this May 3, 2022
@@ -1,10 +1,11 @@
{% with icon_after|default:'<i class="caret"><span class="sr-only">{_ Open language menu _}</span></i>' as icon_after %}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need to change that {_ ... _}, as it won't be picked up by the translation module. It is now a string inside a string of the template language.

We can make the entire string translatable:

default:_'<i class="caret"><span class="sr-only">Open language menu</span></i>'

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 this pull request may close these issues.

None yet

2 participants