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

fix(schematics): compatible with old version options #2622

Merged
merged 2 commits into from
Dec 12, 2018

Conversation

hsuanxyz
Copy link
Member

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Application (the showcase website) / infrastructure changes
[x] Other... Please describe:

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

@netlify
Copy link

netlify bot commented Dec 11, 2018

Deploy preview for ng-zorro-master ready!

Built with commit 7f4bd0b

https://deploy-preview-2622--ng-zorro-master.netlify.com

@codecov
Copy link

codecov bot commented Dec 11, 2018

Codecov Report

Merging #2622 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2622   +/-   ##
=======================================
  Coverage   95.61%   95.61%           
=======================================
  Files         495      495           
  Lines       12053    12053           
  Branches     1685     1685           
=======================================
  Hits        11524    11524           
  Misses        169      169           
  Partials      360      360

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 a3b815c...7f4bd0b. Read the comment docs.

@@ -22,7 +22,7 @@ export function registerLocale(options: Schema): Rule {
const appModulePath = getAppModulePath(host, getProjectMainFile(project));
const moduleSource = getSourceFile(host, appModulePath);

const locale = options.locale || 'en_US';
const locale = options.locale || options.i18n || 'en_US';
Copy link
Contributor

@JLHwung JLHwung Dec 12, 2018

Choose a reason for hiding this comment

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

I suggest you could start to deprecate i18n options since v7.0.0 and remove it completely on v8.0.0. Basically we do not refuse breaking chang but breaking changes should be made cautiously and migration phrase should be offered to downstream.

Personally I am glad that --i18n is replaced by --locale --- it is more accurate then the previous term.

@hsuanxyz hsuanxyz merged commit bb1489b into NG-ZORRO:master Dec 12, 2018
@hsuanxyz hsuanxyz deleted the fix/schematics-options branch January 8, 2019 12:10
hsuanxyz added a commit to hsuanxyz/ng-zorro-antd that referenced this pull request Aug 5, 2020
* fix(schematics): compatible with old version options

* refactor: add deprecated warn and format code style
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.

2 participants