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.

Outdated i18n example

See original GitHub issue

📚 Docs or angular.io bug report

Description

The example i18n project referenced in the latest documentation is using old (<9) style localization configuration, and the source code does not match the documented instructions

🔬 Minimal Reproduction

What’s the affected URL?**

https://angular.io/guide/i18n#translate-attributes

Expected vs Actual Behavior**

Would have expected a section in the angular.json similar to:

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

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
javiermarinroscommented, Feb 12, 2020

The current docs also indicates to use the parameter --i18nLocale with ng serve or ng build that is no longer available since v9

https://angular.io/guide/i18n#i18n-pipes

0reactions
angular-automatic-lock-bot[bot]commented, Jul 23, 2020

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Outdated POT file and other i18n issues - WordPress.org
I came across an issue with the language files where a lot of strings where not translated and not in the locale files....
Read more >
Angular i18n: internationalization & localization with examples
In this article you will learn with examples how to get started with Angular I18n using the built-in internationalization module.
Read more >
i18n: languages, countries and character sets - W3C
Most popular charsets. A study during the first half of 1997 by the Babel team gave these counts on a sample of 3239...
Read more >
How To Use Internationalization (i18n) in Angular | DigitalOcean
Navigate to the newly created project directory: cd angular-internationalization-example. To create the basis for the translation project, open ...
Read more >
Migration Guide - i18next documentation
To enforce old behaviour you can set skipOnVariables = false on i18next ... It can be used as primary used language, for example...
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