-
Notifications
You must be signed in to change notification settings - Fork 19
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(locale): use cookie to determine current locale #55
Conversation
Codecov Report
@@ Coverage Diff @@
## master #55 +/- ##
==========================================
+ Coverage 86.68% 87.11% +0.42%
==========================================
Files 23 23
Lines 293 295 +2
Branches 60 62 +2
==========================================
+ Hits 254 257 +3
+ Misses 31 30 -1
Partials 8 8
Continue to review full report at Codecov.
|
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.
Few updates based on discussion. Plus a rebase with the latest master config updates.
how long does this travis build go? I'm still clicking "cookies" over 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.
Looks good, just a rebase, squash, and commit message amend with PR number
* use rh_locale cookie to set i18n locale if it's available * use env var as a fallback if we can't find a supported locale * gitignore, added en-US locale
What's included
Valid i18n codes (and major codes):
https://github.com/ladjs/i18n-locales#tip
How to test
$ yarn
$ yarn test:dev
Example
.
Updates issue/story
closes #44