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

locally changing locale is immutable, docs update #182

Merged
merged 5 commits into from May 21, 2018
Merged

Conversation

iamkun
Copy link
Owner

@iamkun iamkun commented May 21, 2018

No description provided.

@codecov-io
Copy link

codecov-io commented May 21, 2018

Codecov Report

Merging #182 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #182   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          11     11           
  Lines         275    275           
  Branches       48     47    -1     
=====================================
  Hits          275    275
Impacted Files Coverage Δ
src/plugin/advancedFormat.js 100% <100%> (ø) ⬆️
src/index.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c72dac0...7e63e20. Read the comment docs.

@iamkun iamkun merged commit 2cce729 into master May 21, 2018
@iamkun iamkun changed the title immutable locale, docs update locally changing locale is immutable, docs update May 21, 2018
iamkun pushed a commit that referenced this pull request May 21, 2018
<a name="1.6.3"></a>
## [1.6.3](v1.6.2...v1.6.3) (2018-05-21)

### Bug Fixes

* Changing locales locally is immutable from this release ([2cce729](2cce729)), closes [#182](#182)
* instance locale change should be immutable ([84597c9](84597c9))
@iamkun
Copy link
Owner Author

iamkun commented May 21, 2018

Hi, @ohbarye @ludvon

In order to keep the same behavior with other APIs, I've changed dayjs().locale to a immutable action.

And also updated one line of the English doc like this:

Changing locales locally
- Returns a new Dayjs object by switching to new locale.

For less confusion, would you please update your Docs if you have some free time?

Cheers.

@iamkun
Copy link
Owner Author

iamkun commented May 21, 2018

🎉 This PR is included in version 1.6.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

ohbarye added a commit to ohbarye/dayjs that referenced this pull request May 21, 2018
@vilanz
Copy link
Contributor

vilanz commented May 21, 2018

@iamkun The wording in my translation already implied it was immutable, so I don't need to change it.

@iamkun
Copy link
Owner Author

iamkun commented May 21, 2018

@ludvon great!

andrewhood125ruhuc added a commit to andrewhood125ruhuc/SidRH2 that referenced this pull request May 10, 2022
<a name="1.6.3"></a>
## [1.6.3](iamkun/dayjs@v1.6.2...v1.6.3) (2018-05-21)

### Bug Fixes

* Changing locales locally is immutable from this release ([2cce729](iamkun/dayjs@2cce729)), closes [#182](iamkun/dayjs#182)
* instance locale change should be immutable ([84597c9](iamkun/dayjs@84597c9))
andrewhood125ruhuc added a commit to andrewhood125ruhuc/SidRH2 that referenced this pull request May 10, 2022
andrewhood125ruhuc added a commit to andrewhood125ruhuc/SidRH2 that referenced this pull request May 10, 2022
<a name="1.6.3"></a>
## [1.6.3](iamkun/dayjs@v1.6.2...v1.6.3) (2018-05-21)

### Bug Fixes

* Changing locales locally is immutable from this release ([2cce729](iamkun/dayjs@2cce729)), closes [#182](iamkun/dayjs#182)
* instance locale change should be immutable ([84597c9](iamkun/dayjs@84597c9))
andrewhood125ruhuc added a commit to andrewhood125ruhuc/SidRH2 that referenced this pull request May 10, 2022
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