🎏 i18n improvements and translation

This commit is contained in:
Nuno Coração
2024-03-10 17:06:12 +00:00
parent 346b74baf9
commit 2e50aae48b
29 changed files with 114 additions and 52 deletions

View File

@@ -0,0 +1,27 @@
languageCode = "en"
languageName = "English"
weight = 1
title = "Blowfish"
[params]
displayName = "EN"
isoCode = "en"
rtl = false
dateFormat = "2 January 2006"
logo = "img/blowfish_logo_transparent.png"
# secondaryLogo = "PATH"
description = "A powerful, lightweight theme for Hugo."
# copyright = "Copy, _right?_ :thinking_face:"
[author]
name = "Blowfish"
image = "img/blowfish_logo.png"
headline = "A powerful, lightweight theme for Hugo."
bio = "A powerful, lightweight theme for Hugo."
links = [
{ x-twitter = "https://twitter.com/burufugu" },
#{ mastodon = "https://masto.ai/@blowfish" },
{ github = "https://github.com/nunocoracao/blowfish" },
]

View File

@@ -0,0 +1,29 @@
---
title: "Welcome to Blowfish! :tada:"
description: "This page was built using the Blowfish theme for Hugo."
---
<div class="flex px-4 py-2 mb-8 text-base rounded-md bg-primary-100 dark:bg-primary-900">
<span class="flex items-center ltr:pr-3 rtl:pl-3 text-primary-400">
{{< icon "triangle-exclamation" >}}
</span>
<span class="flex items-center justify-between grow dark:text-neutral-300">
<span class="prose dark:prose-invert">This is a demo of the <code id="layout">background</code> layout.</span>
<button
id="switch-layout-button"
class="px-4 !text-neutral !no-underline rounded-md bg-primary-600 hover:!bg-primary-500 dark:bg-primary-800 dark:hover:!bg-primary-700"
>
Switch layout &orarr;
</button>
</span>
</div>
```node
npx blowfish-tools
```
{{< youtubeLite id="SgXhGb-7QbU" label="Blowfish-tools demo" >}}

View File

@@ -64,32 +64,32 @@ The theme currently supports the following languages by default:
| Language | Code |
| ------------------------------ | ------- |
| 🇦🇪 Arabic | `ar` |
| 🇧🇬 Bulgarian | `bg` |
| 🇧🇩 Bengali | `bn` |
| 🇪🇸 Catalan | `ca` |
| 🇨🇿 Czech | `cs` |
| 🇩🇪 German | `de` |
| 🇬🇧 English | `en` |
| 🇪🇸 Spanish (Spain) | `es` |
| 🇫🇮 Finnish | `fi` |
| 🇫🇷 French | `fr` |
| 🇮🇱 Hebrew | `he` |
| 🇭🇷 Croatian | `hr` |
| 🇭🇺 Hungarian | `hu` |
| 🇮🇩 Indonesian | `id` |
| 🇮🇹 Italian | `it` |
| 🇯🇵 Japanese | `ja` |
| 🇰🇷 Korean | `ko` |
| 🇵🇱 Polish | `pl` |
| 🇧🇷 Portuguese (Brazil) | `pt-br` |
| 🇵🇹 Portuguese (Portugal) | `pt-pt` |
| 🇷🇴 Romanian | `ro` |
| 🇷🇺 Russian | `ru` |
| 🇹🇷 Turkish | `tr` |
| 🇻🇳 Vietnamese | `vi` |
| 🇨🇳 Simplified Chinese (China) | `zh-cn` |
| 🇹🇼 Traditional Chinese (Taiwan) | `zh-tw` |
| Arabic | `ar` |
| Bulgarian | `bg` |
| Bengali | `bn` |
| Catalan | `ca` |
| Czech | `cs` |
| German | `de` |
| English | `en` |
| Spanish (Spain) | `es` |
| Finnish | `fi` |
| French | `fr` |
| Hebrew | `he` |
| Croatian | `hr` |
| Hungarian | `hu` |
| Indonesian | `id` |
| Italian | `it` |
| Japanese | `ja` |
| Korean | `ko` |
| Polish | `pl` |
| Portuguese (Brazil) | `pt-br` |
| Portuguese (Portugal) | `pt-pt` |
| Romanian | `ro` |
| Russian | `ru` |
| Turkish | `tr` |
| Vietnamese | `vi` |
| Simplified Chinese (China) | `zh-cn` |
| Traditional Chinese (Taiwan) | `zh-tw` |

View File

@@ -61,6 +61,7 @@ The full list of built-in icons and their corresponding names can referenced bel
| keybase | {{< icon keybase >}} |
| kickstarter | {{< icon kickstarter >}} |
| ko-fi | {{< icon ko-fi >}} |
| language | {{< icon language >}} |
| lastfm | {{< icon lastfm >}} |
| lightbulb | {{< icon lightbulb >}} |
| link | {{< icon link >}} |
@@ -101,7 +102,7 @@ The full list of built-in icons and their corresponding names can referenced bel
| sun | {{< icon sun >}} |
| tag | {{< icon tag >}} |
| telegram | {{< icon telegram >}} |
| threads | {{< icon threads >}} |
| threads | {{< icon threads >}} |
| tiktok | {{< icon tiktok >}} |
| triangle-exclamation | {{< icon triangle-exclamation >}} |
| tumblr | {{< icon tumblr >}} |