add source code
This commit is contained in:
@@ -23,6 +23,13 @@ const meta: Meta<UmbLocalizeElement> = {
|
||||
</div>`;
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
export default meta;
|
||||
|
||||
type Story = StoryObj<UmbLocalizeElement>;
|
||||
|
||||
export const Default: Story = {
|
||||
parameters: {
|
||||
docs: {
|
||||
source: {
|
||||
@@ -32,17 +39,18 @@ const meta: Meta<UmbLocalizeElement> = {
|
||||
},
|
||||
};
|
||||
|
||||
export default meta;
|
||||
|
||||
type Story = StoryObj<UmbLocalizeElement>;
|
||||
|
||||
export const Overview: Story = {};
|
||||
|
||||
export const WithArguments: Story = {
|
||||
args: {
|
||||
key: 'blueprints_createdBlueprintMessage',
|
||||
args: ['About us'],
|
||||
},
|
||||
parameters: {
|
||||
docs: {
|
||||
source: {
|
||||
code: `<umb-localize key="blueprints_createdBlueprintMessage" args="['About us']"></umb-localize>`,
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export const KeyNotFound: Story = {
|
||||
@@ -50,4 +58,11 @@ export const KeyNotFound: Story = {
|
||||
key: 'general_ok_not_found',
|
||||
debug: true,
|
||||
},
|
||||
parameters: {
|
||||
docs: {
|
||||
source: {
|
||||
code: `<umb-localize key="general_ok_not_found"></umb-localize>`,
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user