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.

Rename `I18nSelectPipe`

See original GitHub issue

Which @angular/* package(s) are relevant/related to the feature request?

common

Description

Angular provides the built-in pipe I18nSelectPipe. The name of this pipe is quite confusing as the use case for i18n mappings (e.g. male, female, etc.) is just one. The pipe can be used to map any value against a key. The current name suggests that the pipe is somewhat specific for i18n features but it isn’t.

Proposed solution

The pipe should be renamed to: select

Alternatives considered

  • selectValue
  • map
  • mapValue

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:2
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
fmalchercommented, Aug 15, 2022

IMO the same applies for i18nPlural: It is not really useful for i18n in the sense of supporting different languages.

0reactions
angular-automatic-lock-bot[bot]commented, Oct 20, 2022

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

I18nSelectPipe - Angular
an object that indicates the text that should be displayed for different values of the provided value . Descriptionlink. If none of the...
Read more >
angular/common - UNPKG
659, // TODO: rename this method to pushState ... minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: I18nSelectPipe, decorators: [{.
Read more >
How do I rename bundles generated with ng serve of Angular ...
I need to rename bundles generated post ng serve of Angular Application. Currently, the bundles are: vendor.js polyfills.js styles.css ...
Read more >
Internationalization (i18n) Angular 2官方教程 _w3cschool
The Angular i18n attribute is a marker for translatable content. Place it on every element tag whose fixed text should be translated. i18n...
Read more >
Pipe - I18nSelectPipe - Plunker
Enter to Rename, Shift+Enter to Preview. Preview. Click to run Ctrl+Enter. DigitalOceanCreate your world-changing apps on the cloud developers love Try now ...
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