feat(i18n): add five locales and a header language switcher
PR Check / Security scan (Snyk) (pull_request) Skipped
PR Check / Lint + typecheck (pull_request) Successful in 58s
PR Check / Secret scan (gitleaks) (pull_request) Successful in 6s
PR Check / Dependency audit (pull_request) Successful in 9s
PR Check / Dockerfile lint (droast) (pull_request) Successful in 6s
PR Check / AI code review (opencode) (pull_request) Successful in 42s
PR Check / Security scan (Snyk) (pull_request) Skipped
PR Check / Lint + typecheck (pull_request) Successful in 58s
PR Check / Secret scan (gitleaks) (pull_request) Successful in 6s
PR Check / Dependency audit (pull_request) Successful in 9s
PR Check / Dockerfile lint (droast) (pull_request) Successful in 6s
PR Check / AI code review (opencode) (pull_request) Successful in 42s
Locale files in i18n/locales for en, de, es, it and pl; English stays at / and the others are prefixed. One flag dropdown after the GitHub link on desktop, logo plus the language button on phones. Nav, quick links and footer strings go through $t, and the footer line drops "self-healing on purpose".
This commit is contained in:
1 parent
db04d441c9
commit
93ab0c0d79
14 files changed
+1423
-66
No files matched your search
@@ -0,0 +1,33 @@
|
||||
<script setup lang="ts">
|
||||
defineProps<{ code: 'en' | 'de' | 'es' | 'it' | 'pl' }>()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<svg v-if="code === 'en'" viewBox="0 0 24 16" class="h-full w-full" aria-hidden="true">
|
||||
<rect width="24" height="16" fill="#012169" />
|
||||
<path d="M0 0 24 16 M24 0 0 16" stroke="#fff" stroke-width="3.2" />
|
||||
<path d="M0 0 24 16 M24 0 0 16" stroke="#c8102e" stroke-width="1.6" />
|
||||
<rect x="10.4" width="3.2" height="16" fill="#fff" />
|
||||
<rect y="6.4" width="24" height="3.2" fill="#fff" />
|
||||
<rect x="11" width="2" height="16" fill="#c8102e" />
|
||||
<rect y="7" width="24" height="2" fill="#c8102e" />
|
||||
</svg>
|
||||
<svg v-else-if="code === 'de'" viewBox="0 0 24 16" class="h-full w-full" aria-hidden="true">
|
||||
<rect width="24" height="5.334" fill="#000" />
|
||||
<rect y="5.334" width="24" height="5.333" fill="#dd0000" />
|
||||
<rect y="10.667" width="24" height="5.333" fill="#ffce00" />
|
||||
</svg>
|
||||
<svg v-else-if="code === 'es'" viewBox="0 0 24 16" class="h-full w-full" aria-hidden="true">
|
||||
<rect width="24" height="16" fill="#aa151b" />
|
||||
<rect y="4" width="24" height="8" fill="#f1bf00" />
|
||||
</svg>
|
||||
<svg v-else-if="code === 'it'" viewBox="0 0 24 16" class="h-full w-full" aria-hidden="true">
|
||||
<rect width="8" height="16" fill="#008c45" />
|
||||
<rect x="8" width="8" height="16" fill="#f4f5f0" />
|
||||
<rect x="16" width="8" height="16" fill="#cd212a" />
|
||||
</svg>
|
||||
<svg v-else viewBox="0 0 24 16" class="h-full w-full" aria-hidden="true">
|
||||
<rect width="24" height="8" fill="#fff" />
|
||||
<rect y="8" width="24" height="8" fill="#dc143c" />
|
||||
</svg>
|
||||
</template>
|
||||
Reference in new issue
Block a user