fix(integration): missing french translations

This commit is contained in:
Florian Sylvain committed 2026-10-13 16:54:06 +02:00
1 parent c41e6dbca5
commit a1cdfce529
5 files changed
+108 -8

No files matched your search

+2 -2
View File
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { t } from '@/i18n'
import { t, translate } from '@/i18n'
import { computed } from 'vue'
import type { ApiField } from '@/data/apiCatalogue'
@@ -70,7 +70,7 @@ const columns = computed(() => [
{{ row.original.required ? t('Yes') : t('No') }}
</template>
<template #rule-cell="{ row }">
<span class="text-pretty">{{ row.original.rule }}</span>
<span class="text-pretty">{{ translate(row.original.rule) }}</span>
</template>
</UTable>
</template>
+2 -2
View File
@@ -17,7 +17,7 @@ const activeTab = ref('fetch')
const examples = computed(() => endpointExamples(props.endpoint, props.origin))
const rowLabel = computed(
() => `${props.endpoint.method} ${props.endpoint.path}. ${props.endpoint.description}`,
() => `${props.endpoint.method} ${props.endpoint.path}. ${translate(props.endpoint.description)}`,
)
const bodyTitle = computed(() => {
if (props.endpoint.bodyKind === 'multipart') {
@@ -62,7 +62,7 @@ const snippetTabs = computed(() => [
class="size-4 shrink-0 text-muted lg:hidden"
/>
</span>
<span class="min-w-0 text-toned lg:truncate">{{ endpoint.description }}</span>
<span class="min-w-0 text-toned lg:truncate">{{ translate(endpoint.description) }}</span>
<span class="flex flex-wrap gap-1.5">
<UBadge
:label="translate(endpoint.access)"
+10 -3
View File
@@ -2,7 +2,7 @@
import { t, translate } from '@/i18n'
import ApiRouteRow from '@/components/ApiRouteRow.vue'
import type { PublicRow, SessionGroup } from '@/data/apiCatalogue'
import { LOGIN_FAMILY_CAPTION, type PublicRow, type SessionGroup } from '@/data/apiCatalogue'
import { CHIP_CLASS } from '@/lib/apiReference'
defineProps<{
@@ -10,6 +10,13 @@ defineProps<{
publicRows: PublicRow[]
}>()
function describe(description: string) {
const suffix = `. ${LOGIN_FAMILY_CAPTION}`
return description.endsWith(suffix)
? `${translate(description.slice(0, -suffix.length))}. ${translate(LOGIN_FAMILY_CAPTION)}`
: translate(description)
}
const SUBGROUP_TITLE_CLASS =
'px-3.5 pt-2 pb-1 text-xs font-medium tracking-wide text-muted uppercase'
</script>
@@ -36,7 +43,7 @@ const SUBGROUP_TITLE_CLASS =
:key="`${row.method} ${row.path}`"
:method="row.method"
:path="row.path"
:description="row.description"
:description="describe(row.description)"
data-session-row
>
<UBadge
@@ -59,7 +66,7 @@ const SUBGROUP_TITLE_CLASS =
:key="`${row.method} ${row.path}`"
:method="row.method"
:path="row.path"
:description="row.description"
:description="translate(row.description)"
data-public-row
>
<UBadge