<script setup lang="ts">
const { locale, localeCodes, matrixPath } = useContent()
const candidates = computed(() => localeCodes.filter(l => l !== locale.value))
</script>

<template>
  <NuxtLink v-for="candidate in candidates" :key="candidate" :to="{ path: matrixPath({locale: candidate}), query: { freeze: 'true' } }">
    {{ candidate.toUpperCase() }}
  </NuxtLink>
</template>
