Skip to content

Add language dropdown#1564

Merged
hursey013 merged 1 commit intomasterfrom
bh-i18n-dropdown
Jul 21, 2017
Merged

Add language dropdown#1564
hursey013 merged 1 commit intomasterfrom
bh-i18n-dropdown

Conversation

@hursey013
Copy link
Contributor

Allows users to manually switch to another language.

Desktop:
screen shot 2017-07-20 at 2 42 52 pm

Mobile:
screen shot 2017-07-20 at 2 43 06 pm

Copy link
Contributor

Choose a reason for hiding this comment

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

  1. Can we iterate over this with I18n.available_locales -- so we get new locales added automatically? (maybe we can add a custom sort somewhere else, but would be good to minimize the number of places we have to update)

  2. Can we update these to only show the language selector if there is more than one thing in I18n.available_locales? That way we have have the selector show up in lower envs while we QA our languages but then we don't show the selector in prod where we have other languages disabled temporarily

Copy link
Contributor

Choose a reason for hiding this comment

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

no need to use a ternary here! the > 1 is a true/false anyways 😬

Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

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

LGTM! checked it out locally, works fine

@hursey013 hursey013 merged commit 9ba6827 into master Jul 21, 2017
@hursey013 hursey013 deleted the bh-i18n-dropdown branch July 21, 2017 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants