;
protected translationParts: I18nStringPart[] = [];
diff --git a/libs/components/src/i18n/i18n.mdx b/libs/components/src/i18n/i18n.mdx
index 0bda24c51c8..507886c0a8f 100644
--- a/libs/components/src/i18n/i18n.mdx
+++ b/libs/components/src/i18n/i18n.mdx
@@ -13,10 +13,10 @@ target language.
The templating syntax uses numeric marker tags `<0>0>` around text that will be wrapped. The
marker tags should numbered sequentially starting from 0. The marker tags are then matched and
-replaced by the `*bit-i18n-tag` directives in the order they appear in the template.
+replaced by the `*bit-i18n-part` directives in the order they appear in the template.
-If a corresponding `*bit-i18n-tag` directive is not found for a marker tag, the marker tag's content
-will be rendered as is.
+If a corresponding `*bit-i18n-part` directive is not found for a marker tag, the marker tag's
+content will be rendered as is.
## Basic Example
@@ -33,11 +33,11 @@ will be rendered as is.
-->
- {{ text }}
+ {{ text }}
- {{ text }}
+ {{ text }}
-
+
{{ text }}
@@ -58,15 +58,15 @@ You can also use the `bit-i18n` as an attribute to avoid creating an extra eleme
"This is another example with <1>bold1> tags to show that tag order does not matter and the <0>link0> tags are after."
-->
- {{ text }}
- {{ text }}
+ {{ text }}
+ {{ text }}
```
## Missing Template Example
-If there are not enough `*bit-i18n-tag` directives to match the marker tags, the marker tags will be
-rendered as is.
+If there are not enough `*bit-i18n-part` directives to match the marker tags, the marker tags will
+be rendered as is.
@@ -81,9 +81,9 @@ rendered as is.
-->
- {{ text }}
+ {{ text }}
- {{ text }}
+ {{ text }}
```
@@ -104,6 +104,6 @@ You can also pass arguments to the `i18nService.t()` method via the `[args]` inp
-->
- {{ text }}
+ {{ text }}
```
diff --git a/libs/components/src/i18n/i18n.module.ts b/libs/components/src/i18n/i18n.module.ts
index 795475c4fa7..85f935d58e7 100644
--- a/libs/components/src/i18n/i18n.module.ts
+++ b/libs/components/src/i18n/i18n.module.ts
@@ -2,12 +2,12 @@ import { NgModule } from "@angular/core";
import { SharedModule } from "../shared";
-import { I18nTagDirective } from "./i18n-tag.directive";
+import { I18nPartDirective } from "./i18n-part.directive";
import { I18nComponent } from "./i18n.component";
@NgModule({
imports: [SharedModule],
- declarations: [I18nComponent, I18nTagDirective],
- exports: [I18nComponent, I18nTagDirective],
+ declarations: [I18nComponent, I18nPartDirective],
+ exports: [I18nComponent, I18nPartDirective],
})
export class I18nModule {}
diff --git a/libs/components/src/i18n/i18n.stories.ts b/libs/components/src/i18n/i18n.stories.ts
index 5c1f842da53..c0e5f061012 100644
--- a/libs/components/src/i18n/i18n.stories.ts
+++ b/libs/components/src/i18n/i18n.stories.ts
@@ -42,9 +42,9 @@ export const Basic: Story = {
props: args,
template: `
- {{ text }}
- {{ text }}
-
+ {{ text }}
+ {{ text }}
+
{{ text }}
@@ -57,8 +57,8 @@ export const AttributeSelector: Story = {
props: args,
template: `
- {{ text }}
- {{ text }}
+ {{ text }}
+ {{ text }}
`,
}),
@@ -69,8 +69,8 @@ export const ArgsExample: Story = {
props: args,
template: `
- {{ text }}
- {{ text }}
+ {{ text }}
+ {{ text }}
`,
}),
@@ -81,8 +81,8 @@ export const MissingTemplate: Story = {
props: args,
template: `
- {{ text }}
- {{ text }}
+ {{ text }}
+ {{ text }}
`,
}),