Skip to content
Snippets Groups Projects
Verified Commit a67a0be3 authored by Sebastian Kawelke's avatar Sebastian Kawelke :upside_down:
Browse files

Translated in components

parent e4457167
No related branches found
No related tags found
1 merge request!1Translation to de
Pipeline #138596 passed
......@@ -26,41 +26,41 @@ const navigation = {
],
community: [
{
name: 'Project on openCode',
name: 'Projekt auf openCode',
href: 'https://gitlab.opencode.de/open-code/badgebackend',
external: true,
},
{
name: 'Contribute',
name: 'Beitragen',
href: 'https://gitlab.opencode.de/open-code/badgebackend/badge-api/-/blob/main/CONTRIBUTING.md',
external: true,
},
{
name: 'Open issue',
name: 'Issue öffnen',
href: 'https://gitlab.opencode.de/open-code/badgebackend/badge-api/-/issues/new',
external: true,
},
],
legal: [
{
name: 'Imprint',
name: 'Impressum',
href: 'https://opencode.de/de/impressum',
external: true,
},
{
name: 'Privacy policy',
name: 'Datenschutzerklärung',
href: 'https://opencode.de/de/datenschutz',
external: true,
},
{
name: 'License',
name: 'Lizenz',
href: 'https://gitlab.opencode.de/open-code/badgebackend/badge-api/-/blob/main/LICENSE',
external: true,
},
],
accessibility: [
{
name: 'Declaration on Accessibility',
name: 'Erklärung zur Barrierefreiheit',
href: '/declaration-on-accessibility',
external: false,
},
......@@ -94,7 +94,7 @@ export default function Footer() {
/>
</a>
<p className="text-balance text-sm/6 text-gray-600">
The Badge Programm is an{' '}
Das Badge Programm ist ein{' '}
<a
href="https://opencode.de/"
target="_blank"
......@@ -103,7 +103,7 @@ export default function Footer() {
>
openCode
</a>{' '}
service by{' '}
Dienst der{' '}
<a
href="https://zendis.de/"
target="_blank"
......@@ -112,7 +112,7 @@ export default function Footer() {
>
ZenDiS
</a>{' '}
maintained by{' '}
maintained durch{' '}
<a
href="https://l3montree.com"
target="_blank"
......@@ -128,7 +128,7 @@ export default function Footer() {
<div className="md:grid md:grid-cols-2 md:gap-8">
<div>
<h3 className="text-sm/6 font-semibold text-gray-900">
Official Badges
Offizielle Badges
</h3>
<ul role="list" className="mt-6 space-y-4">
{navigation.officialBadges.map((item) => (
......@@ -176,7 +176,7 @@ export default function Footer() {
<div className="md:grid md:grid-cols-2 md:gap-8">
<div>
<h3 className="text-sm/6 font-semibold text-gray-900">
Legal
Rechtliches
</h3>
<ul role="list" className="mt-6 space-y-4">
{navigation.legal.map((item) => (
......@@ -199,7 +199,7 @@ export default function Footer() {
</div>
<div className="mt-10 md:mt-0">
<h3 className="text-sm/6 font-semibold text-gray-900">
Accessibility
Barrierefreiheit
</h3>
<ul role="list" className="mt-6 space-y-4">
{navigation.accessibility.map((item) => (
......
......@@ -19,7 +19,7 @@ export default function ResultGrid({ currentScan }: Props) {
<div className="mx-auto max-w-7xl px-6 lg:px-8">
<div className="mb-8">
<h2 className="mb-1 text-2xl font-semibold">
Displaying results for:
Ergebnisse für:
</h2>
<a
target="_blank"
......@@ -36,7 +36,7 @@ export default function ResultGrid({ currentScan }: Props) {
}
</a>
</div>
<div className="-mx-6 grid grid-cols-2 gap-0.5 overflow-hidden sm:mx-0 sm:rounded-2xl md:grid-cols-3">
<div className="-mx-6 grid grid-cols-1 gap-0.5 overflow-hidden px-6 sm:mx-0 sm:rounded-2xl sm:px-0 md:grid-cols-3">
{currentScan.runs[0].properties.testedRepository &&
currentScan?.runs[0].properties.badges
.sort((a, b) =>
......@@ -44,13 +44,13 @@ export default function ResultGrid({ currentScan }: Props) {
)
.map((badge) => (
<div
className="overflow-hidden bg-gray-400/10 p-10"
className="overflow-hidden rounded-xl bg-gray-400/10 p-10 sm:rounded-none"
key={`${badge.badgeId}-${badge.badgeLevel}`}
>
<div className="relative aspect-square">
{!badge.badgeGranted && (
<div className="absolute right-0 top-0 -translate-y-1/2 translate-x-1/2 rotate-45 bg-red-600 px-10 py-2 font-bold text-white">
Not granted
<div className="absolute right-0 top-0 -translate-y-1/2 translate-x-1/2 rotate-45 bg-red-600 px-10 py-2 text-xs font-bold text-white">
Nicht gewährt
</div>
)}
<Image
......
......@@ -6,15 +6,6 @@ import { SarifApiResponse } from '../lib/apiClient'
import { cn } from '../lib/utils'
import { Badge } from './ui/badge'
const people = [
{
name: 'Lindsay Walton',
title: 'Front-end Developer',
email: 'lindsay.walton@example.com',
role: 'Member',
},
// More people...
]
interface Props {
currentScan: SarifApiResponse
}
......@@ -32,7 +23,7 @@ export default function ResultTable({ currentScan }: Props) {
<details className="">
<summary className="relative flex cursor-pointer flex-row justify-between text-lg font-medium text-gray-900">
<span>
Details on: {badge.badgeId}{' '}
Details für: {badge.badgeId}{' '}
{badge.badgeLevel}
<Badge
variant={
......@@ -72,13 +63,13 @@ export default function ResultTable({ currentScan }: Props) {
scope="col"
className="col-span-2 px-3 py-3.5 text-left font-semibold"
>
Description
Beschreibung
</th>
<th
scope="col"
className="col-span-2 px-3 py-3.5 text-left font-semibold"
>
Evidence
Nachweis
</th>
</tr>
</thead>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.