Skip to content

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

Merged
merged 1 commit into from
Jun 13, 2018

Conversation

mllocs
Copy link
Collaborator

@mllocs mllocs commented Jun 9, 2018

@mllocs
Copy link
Collaborator Author

mllocs commented Jun 9, 2018

<% I18n.available_locales.each do |locale| %>
<% if I18n.locale != locale %>
<li>
<%= link_to t("locales.#{locale}"), switch_lang_path(locale: locale) %>
Copy link
Collaborator

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?

Copy link
Collaborator Author

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 :)

Copy link
Collaborator

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.

Copy link
Collaborator

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?

Copy link
Collaborator

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) %>
Copy link
Collaborator

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?

@mllocs mllocs force-pushed the feature/move-language-selector-to-footer branch from 4b8db79 to cabe80f Compare June 12, 2018 11:03
<% I18n.available_locales.each do |locale| %>
<% if I18n.locale != locale %>
<li>
<%= link_to t("locales.#{locale}", locale: locale), switch_lang_path(locale: locale) %>
Copy link
Collaborator Author

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 💪

@mllocs mllocs force-pushed the feature/move-language-selector-to-footer branch from cabe80f to c7c5af5 Compare June 12, 2018 11:07
@mllocs mllocs changed the title [WIP] Move language selector to footer Move language selector to footer Jun 12, 2018
@enricostano
Copy link
Contributor

Deployed to https://staging.timeoverflow.org/

cc/ @mllocs @sseerrggii

@markets markets changed the base branch from feature/nicer-mobile-views to develop June 12, 2018 12:31
@markets
Copy link
Collaborator

markets commented Jun 12, 2018

@enricostano @mllocs I just changed the base branch pointing to develop (feature/nicer-mobile-views have been merged)

@enricostano
Copy link
Contributor

enricostano commented Jun 12, 2018

@enricostano @mllocs I just changed the base branch pointing to develop (feature/nicer-mobile-views have been merged)

Oh! I didn't notice it wasn't pointing to develop, we should add that to the PR description. thanks @markets !

@mllocs
Copy link
Collaborator Author

mllocs commented Jun 12, 2018

I've found a little issue but I think we can merge and fix it later. In large screens and pages without lot of content, the footer looks like this:

screen shot 2018-06-12 at 18 24 56

Other than that :shipit:

@enricostano enricostano merged commit 6834c1c into develop Jun 13, 2018
@sauloperez sauloperez deleted the feature/move-language-selector-to-footer branch June 13, 2018 10:04
@enricostano enricostano mentioned this pull request Aug 8, 2018
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.

4 participants