Skip to content

New i18n schema #15760

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

Merged
merged 5 commits into from
Oct 10, 2019
Merged

New i18n schema #15760

merged 5 commits into from
Oct 10, 2019

Conversation

alan-agius4
Copy link
Collaborator

@alan-agius4 alan-agius4 commented Oct 4, 2019

See individual commits.

@alan-agius4
Copy link
Collaborator Author

alan-agius4 commented Oct 8, 2019

@clydin PTAL, Once confirmed I will rollout the schema changes to all the other builders

@alan-agius4 alan-agius4 requested a review from clydin October 8, 2019 18:01
@clydin clydin added the target: major This PR is targeted for the next major release label Oct 8, 2019
@alan-agius4 alan-agius4 requested a review from clydin October 9, 2019 07:37
"projects": {
  "my-app": {
    "projectType": "application",
    "schematics": {},
    "root": "",
    "i18n": {
      "sourceLocale": "en-US",
      "locales": {
        "fr": "src/locale/messages.fr.xlf"
      }
    },
    "sourceRoot": "src",
    ...
  }
}
…and server builders

With this change we add `translateLocales` as new options for i18n in browser and server builders.

We also deprecate the following options;
* i18nLocale
* i18nFormat
* i18nFile
…Locale` options of `extract-i18n` builder

Option `i18nFormat` has been deprecated in favor of `format` and `i18nLocale` option has been deprecated in favor of the `sourceLocale` sub option of the `i18n` project level option.
@mgechev mgechev merged commit c3169ae into angular:master Oct 10, 2019
@alan-agius4 alan-agius4 deleted the new-i18n-schema branch October 11, 2019 04:42
@angular-automatic-lock-bot
Copy link

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 Nov 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants