From e297e782e8ff49026c843be19e85fb4e66da30d1 Mon Sep 17 00:00:00 2001 From: Shane Melton Date: Fri, 6 Oct 2023 10:21:50 -0700 Subject: [PATCH] [CL-134] Rename key attribute to reduce typing --- libs/components/src/i18n/i18n.component.ts | 4 ++-- libs/components/src/i18n/i18n.mdx | 6 +++--- libs/components/src/i18n/i18n.stories.ts | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/libs/components/src/i18n/i18n.component.ts b/libs/components/src/i18n/i18n.component.ts index 87e91d09c17..490623542f0 100644 --- a/libs/components/src/i18n/i18n.component.ts +++ b/libs/components/src/i18n/i18n.component.ts @@ -32,7 +32,7 @@ interface I18nStringPart { * tags. * * @example - *
+ *
* {{ text }} * * {{ text }} @@ -55,7 +55,7 @@ interface I18nStringPart { standalone: true, }) export class I18nComponent implements AfterContentInit { - @Input("key") + @Input("bit-i18n") translationKey: string; /** diff --git a/libs/components/src/i18n/i18n.mdx b/libs/components/src/i18n/i18n.mdx index 977788b385f..b1695a942d8 100644 --- a/libs/components/src/i18n/i18n.mdx +++ b/libs/components/src/i18n/i18n.mdx @@ -31,7 +31,7 @@ content will be rendered as is. "This is an example with <0>link tags and <1>bold tags. The entire sentence can be <2>translated as a whole and re-arranged according to each language's grammar rules." --> -
+
{{ text }} @@ -59,7 +59,7 @@ be rendered as is. "This is an example with <0>link tags and <1>bold tags. The entire sentence can be <2>translated as a whole and re-arranged according to each language's grammar rules." --> -
+
{{ text }} @@ -82,7 +82,7 @@ You can also pass arguments to the `i18nService.t()` method via the `[args]` inp -
+ diff --git a/libs/components/src/i18n/i18n.stories.ts b/libs/components/src/i18n/i18n.stories.ts index b0bf069dc7a..cbbfcdedf51 100644 --- a/libs/components/src/i18n/i18n.stories.ts +++ b/libs/components/src/i18n/i18n.stories.ts @@ -47,7 +47,7 @@ export const Basic: Story = { render: (args) => ({ props: args, template: ` -
+
{{ text }} {{ text }} @@ -62,7 +62,7 @@ export const ArgsExample: Story = { render: (args) => ({ props: args, template: ` -

+

{{ text }} {{ text }}

@@ -74,7 +74,7 @@ export const MissingTemplate: Story = { render: (args) => ({ props: args, template: ` -

+

{{ text }} {{ text }}