Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ type I18nText = {
editPageText?: string

/**
* Text shown before webcontainer link.
* Text of the webcontainer link.
*
* @default 'Powered by'
* @default 'Powered by Webcontainer'
*/
webcontainerLinkText?: string,

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions packages/astro/src/default/components/TutorialContent.astro
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ const { Markdown, editPageLink, prev, next } = lesson;
</div>
</div>

<p class="mt-6 font-size-3.5 text-tk-elements-webcontainersLink-textColor">
<a
class="inline-block mt-6 font-size-3.5 underline text-tk-elements-webcontainersLink-textColor hover:text-tk-elements-webcontainersLink-textColorHover"
href="https://webcontainers.io/"
>
{lesson.data.i18n!.webcontainerLinkText}
<a class="underline hover:text-tk-elements-webcontainersLink-textColorHover" href="https://webcontainers.io/"
>webcontainers.io</a
>
</p>
</a>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const DEFAULT_LOCALIZATION = {
noPreviewNorStepsText: 'No preview to run nor steps to show',
startWebContainerText: 'Run this tutorial',
editPageText: 'Edit this page',
webcontainerLinkText: 'Powered by',
webcontainerLinkText: 'Powered by Webcontainer',
filesTitleText: 'Files',
prepareEnvironmentTitleText: 'Preparing Environment',
toggleTerminalButtonText: 'Toggle Terminal',
Expand Down
6 changes: 3 additions & 3 deletions packages/types/src/schemas/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ export const i18nSchema = z.object({
editPageText: z.string().optional().describe('Text of the edit page link.'),

/**
* Text shown before webcontainer link.
* Text of the webcontainer link.
*
* @default 'Powered by'
* @default 'Powered by Webcontainer'
*/
webcontainerLinkText: z.string().optional().describe('Text shown before webcontainer link.'),
webcontainerLinkText: z.string().optional().describe('Text of the webcontainer link.'),

/**
* Text shown when there are no previews or steps to show in the prepare environment section.
Expand Down