Skip to content

feat(common): generate i18n data file locale_all file for closure #18813

Closed
ocombe wants to merge 3 commits intoangular:masterfrom
ocombe:google-locale-all
Closed

feat(common): generate i18n data file locale_all file for closure #18813
ocombe wants to merge 3 commits intoangular:masterfrom
ocombe:google-locale-all

Conversation

@ocombe
Copy link
Copy Markdown
Contributor

@ocombe ocombe commented Aug 21, 2017

PR Type

What kind of change does this PR introduce?

[x] Feature

What is the current behavior?

Issue Number: #18763

What is the new behavior?

New all.ts file for closure, extracted using gulp cldr:locale-all.
You can choose the locales to use with the --locale parameter, e.g.: gulp cldr:locale-all --locales=fr,en,en-GB

Does this PR introduce a breaking change?

[x] No

Other information

This PR is a branch based on the PR #18284, don't merge before the other one is merged first.

@ocombe ocombe added area: i18n Issues related to localization and internationalization action: review The PR is still awaiting reviews from at least one requested reviewer state: blocked target: major This PR is targeted for the next major release labels Aug 21, 2017
@ocombe ocombe requested a review from vicb August 21, 2017 17:31
@ocombe ocombe changed the title feat(common): generate i18n date file locale_all file for closure feat(common): generate i18n data file locale_all file for closure Aug 21, 2017
@ocombe ocombe force-pushed the google-locale-all branch from cc4fa07 to 766e77d Compare August 21, 2017 17:34
@vicb vicb removed the action: review The PR is still awaiting reviews from at least one requested reviewer label Aug 21, 2017
@mary-poppins
Copy link
Copy Markdown

You can preview 766e77d at https://pr18813-766e77d.ngbuilds.io/.

@vicb
Copy link
Copy Markdown
Contributor

vicb commented Aug 22, 2017

You you please rebase the PR (ie remove the first 3 commits). Thanks

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

remove this interface

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

any

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If having the code here make it required to download CLDR before generating the index please make it a distinct task so it could be invoked w/o downloading CLDR. Thanks

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please change to l only - good enough doe generated code.

@ocombe ocombe force-pushed the google-locale-all branch from 766e77d to 4bc22c4 Compare August 23, 2017 08:23
@mary-poppins
Copy link
Copy Markdown

You can preview 4bc22c4 at https://pr18813-4bc22c4.ngbuilds.io/.

@ocombe ocombe force-pushed the google-locale-all branch from 4bc22c4 to 0ed4c27 Compare August 23, 2017 08:50
@ocombe
Copy link
Copy Markdown
Contributor Author

ocombe commented Aug 23, 2017

New behavior: the script is now gulp cldr:locale-all instead of being bundled in the extract script.
If you run gulp cldr:locale-all you must run download first.
If you run gulp cldr:locale-all --locales=... you don't need to run download first, but the i18n locale data files must be available (they are versioned, so I don't see any reason why not, but it still checks just in case).

@ocombe ocombe force-pushed the google-locale-all branch from 0ed4c27 to cfb1c87 Compare August 23, 2017 09:08
@angular angular deleted a comment from mary-poppins Aug 23, 2017
@mary-poppins
Copy link
Copy Markdown

You can preview cfb1c87 at https://pr18813-cfb1c87.ngbuilds.io/.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

please change to import {registerLocaleData} from '../src/i18n/locale_data';

Copy link
Copy Markdown
Contributor Author

@ocombe ocombe Aug 24, 2017

Choose a reason for hiding this comment

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

we need to merge #18857 first, because for now locale_data doesn't export registerLocaleData

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

please remove this line

Copy link
Copy Markdown
Contributor Author

@ocombe ocombe Aug 24, 2017

Choose a reason for hiding this comment

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

I can't, bazel build (ci/circleci: build) fails if I do that...
@alexeagle any idea ?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No, what's the failure?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

just that "goog" is undefined or something like that, which is logical since it's a global variable and it's not in any type definition for angular

@ocombe ocombe force-pushed the google-locale-all branch from cfb1c87 to 8489458 Compare August 24, 2017 14:38
@ocombe
Copy link
Copy Markdown
Contributor Author

ocombe commented Aug 24, 2017

@vicb I did the changes that you requested but it fails the tests / build now because we need to merge #18857 first (locale_data doesn't export registerLocaleData for now), and since I removed the declaration for goog the bazel build fails like I said: https://circleci.com/gh/angular/angular/20113

@mary-poppins
Copy link
Copy Markdown

You can preview 8489458 at https://pr18813-8489458.ngbuilds.io/.

@ocombe ocombe force-pushed the google-locale-all branch from 8489458 to f7a6e52 Compare August 28, 2017 18:09
@googlebot
Copy link
Copy Markdown

So there's good news and bad news.

👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there.

😕 The bad news is that it appears that one or more commits were authored by someone other than the pull request submitter. We need to confirm that they're okay with their commits being contributed to this project. Please have them confirm that here in the pull request.

Note to project maintainer: This is a terminal state, meaning the cla/google commit status will not change from this State. It's up to you to confirm consent of the commit author(s) and merge this pull request when appropriate.

@mary-poppins
Copy link
Copy Markdown

You can preview 7ae909f at https://pr18813-7ae909f.ngbuilds.io/.

@mhevery mhevery added action: merge The PR is ready for merge by the caretaker target: major This PR is targeted for the next major release and removed target: major This PR is targeted for the next major release labels Aug 28, 2017
@vicb
Copy link
Copy Markdown
Contributor

vicb commented Aug 28, 2017

Will be merged via #18907

@vicb vicb closed this Aug 28, 2017
@ocombe ocombe deleted the google-locale-all branch November 10, 2017 08:48
@angular-automatic-lock-bot
Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: i18n Issues related to localization and internationalization cla: no state: blocked target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants