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

feat: Distance is measured in mi for en. #153

Merged
merged 2 commits into from
Jul 31, 2019

Conversation

Brad-Christie
Copy link
Contributor

Adjusted translation to display miles for en.

Given en-GB uses km while en-US (actually, US exclusively) uses mi, this may encourage the breakout of the en-* translation (despite this purposeful trim).

Also I can appreciate how clean the code is, so (arguably) my approach is a bit of a sledgehammer., however haversine does naively accept a unit option so it would be nice to see that leveraged.

@CLAassistant
Copy link

CLAassistant commented Jul 30, 2019

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@amaury1093 amaury1093 left a comment

Choose a reason for hiding this comment

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

True, I've never thought of that. Thanks a lot!

Just a small comment, I'll merge right after.

this may encourage the breakout of the en-* translation

Totally true. We have translations files for Spanish and French, but they need some TLC so make sure the design doesn't break (words too long etc...), so I'm reluctant to enable them right now.

However, the en-US/en-GB distinction makes sense, as the design won't break.

App/localization/languages/en.json Show resolved Hide resolved
Copy link
Member

@amaury1093 amaury1093 left a comment

Choose a reason for hiding this comment

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

Perfect, thanks a lot!

@amaury1093 amaury1093 merged commit 13c08b5 into shootismoke:master Jul 31, 2019
@amaury1093
Copy link
Member

Follow-up PR: #154. cc @Brad-Christie is this something you'd like to work on? If not, I'll pick it up

Brad-Christie added a commit to Brad-Christie/shoot-i-smoke that referenced this pull request Jul 31, 2019
feat: Distance is measured in mi for en (shootismoke#153)
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

3 participants