-
Notifications
You must be signed in to change notification settings - Fork 69
Move language selector to footer #378
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
Conversation
<% I18n.available_locales.each do |locale| %> | ||
<% if I18n.locale != locale %> | ||
<li> | ||
<%= link_to t("locales.#{locale}"), switch_lang_path(locale: locale) %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should use t("locales.#{locale}", locale: locale)
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why? that wouldn't be the same result. BTW, I just cut and pasted from one place to a separated file :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah yes @mllocs! this is a proposal change, I think it's more natural for the users to see the language in their language.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree too. Should it go in a different PR though?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure guys, in this case, if a different PR is necessary, with such a small change... ¯\_(ツ)_/¯
. I'm totally +1 for small PRs, but now that we're touching the languages selector, maybe it's not a bad idea to add this change (no collateral effects) in this branch as well.
<% I18n.available_locales.each do |locale| %> | ||
<% if I18n.locale != locale %> | ||
<li> | ||
<%= link_to t("locales.#{locale}"), switch_lang_path(locale: locale) %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree too. Should it go in a different PR though?
4b8db79
to
cabe80f
Compare
<% I18n.available_locales.each do |locale| %> | ||
<% if I18n.locale != locale %> | ||
<li> | ||
<%= link_to t("locales.#{locale}", locale: locale), switch_lang_path(locale: locale) %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@markets 😉
I didn't understand you the first time, I changed it 💪
cabe80f
to
c7c5af5
Compare
Deployed to https://staging.timeoverflow.org/ cc/ @mllocs @sseerrggii |
@enricostano @mllocs I just changed the base branch pointing to |
Oh! I didn't notice it wasn't pointing to |
http://g.recordit.co/Qz7JruPxF9.gif