Skip to content

Commit

Permalink
docs: Use id instead of name for anchor targets (angular#50885)
Browse files Browse the repository at this point in the history
This commit also fixes a minor layout issue.

fixes angular#50727

PR Close angular#50885
  • Loading branch information
JeanMeche authored and ChellappanRajan committed Jan 23, 2024
1 parent bd7ee3e commit 8221f26
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions aio/content/guide/i18n-common-prepare.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ The following code example shows the value of the [`$localize`][AioApiLocalizeIn

<div class="callout is-helpful">

<header>
<a name="how-meanings-control-text-extraction-and-merges"></a> How meanings control text extraction and merges
<header id="how-meanings-control-text-extraction-and-merges">
How meanings control text extraction and merges
</header>

The Angular extraction tool generates a translation unit entry for each `i18n` attribute in a template.
Expand Down Expand Up @@ -306,9 +306,7 @@ For more information about pluralization categories, see [Choosing plural catego

<div class="callout is-important">

<a name="background-locales-may-not-support-some-pluralization-categories"></a>

<header>Background: Locales may not support some pluralization categories</header>
<header id="background-locales-may-not-support-some-pluralization-categories">Background: Locales may not support some pluralization categories</header>

Many locales don't support some of the pluralization categories.
The default locale \(`en-US`\) uses a very simple `plural()` function that doesn't support the `few` pluralization category.
Expand Down

0 comments on commit 8221f26

Please sign in to comment.