question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

xliffmerge: use official Angular v9 i18n config

See original GitHub issue

First, thanks you for this amazing tool!

i18n is now much simpler in Angular 9, which introduces this config in angular.json:

{
  "projects": {
    "helloworld": {
      "i18n": {
        "sourceLocale": "fr",
        "locales": {
          "en": "src/locale/messages.en.xlf"
} } } } }

So xliffmerge could get this config, if present, instead of its own custom config:

  • defaultLanguage > from sourceLocale
  • languages > from locales indexes
  • genDir > from base path of one of locales values

It would simplify a lot, as most app would now just have to do ng xi18n && xliffmerge with no config at all.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

15reactions
martinroobcommented, Feb 27, 2020

Thank you for your positive feedback. This is definitively on my agenda for the next release. I was a little bit short 8n time the last weeks. But I plan to start with ng9 updates 7n the next few days.

11reactions
andrefilimonocommented, Jul 3, 2020

If nobody is working on this, I’d take a shot at it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

xliffmerge: use official Angular v9 i18n config
xliffmerge : use official Angular v9 i18n config ... First, thanks you for this amazing tool! i18n is now much simpler in Angular...
Read more >
ngx-i18nsupport/README.md at master - xliffmerge
ngx-i18nsupport. Some tooling to be used for Angular i18n workflows. This page contains just a very short description about the installation process and...
Read more >
Merge translations into the application
To merge the completed translations into your project, complete the following actions. Use the Angular CLI to build a copy of the distributable...
Read more >
Maintaining Multi-language Angular Applications with i18n
We learned how to configure the application for localization and added tooling to manage our translation files. When we used an editor for ......
Read more >
Can I use Angular i18n to translate string literals in ...
I can confirm what @JB Nizet is referring to in his answer is now working in Angular 9, so this works:
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found