feat(): use labels translations for astro components and giscus

This commit is contained in:
Eduardo Roth
2023-12-19 23:31:04 -06:00
parent 022d72296a
commit ca9f054848
9 changed files with 42 additions and 30 deletions

View File

@@ -1,17 +1,20 @@
---
import { Icon } from '@astrojs/starlight/components';
import MyIcon from './MyIcon.astro';
import type { Props } from '@astrojs/starlight/props';
const { labels } = Astro.props;
---
<div class="action-footer">
<a class="action-button" href='https://github.com/tomalaforge/angular-challenges'>
<div>Give a star</div>
<div>{labels['buttons.star']}</div>
<Icon name='github' size="1rem" />
</a>
<a class="action-button button-sponsor" href='https://github.com/sponsors/tomalaforge'>
<div>Sponsor</div>
<div>{labels['buttons.sponsor']}</div>
<MyIcon name='heart' size="1rem" color="white" />
</a>
</div>
@@ -45,4 +48,4 @@ import MyIcon from './MyIcon.astro';
color: white;
}
</style>
</style>