mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-08-05 03:57:03 -04:00
47 lines
898 B
Vue
47 lines
898 B
Vue
<script setup lang="ts">
|
|
import type { LocaleDescription } from '~/locale/locales.js';
|
|
|
|
defineProps<{
|
|
locale: LocaleDescription;
|
|
}>();
|
|
|
|
const GROUPS_COLOUR_CODE: Record<string, number> = {
|
|
// indo-european
|
|
germanic: 0,
|
|
romance: 300,
|
|
slavic: 280,
|
|
// uralic
|
|
finnish: 240,
|
|
// turkic
|
|
turkic: 200,
|
|
// austroasiatic
|
|
vietic: 160,
|
|
// afro-asiatic
|
|
semitic: 40,
|
|
// japonic
|
|
japonic: 80,
|
|
// koreanic
|
|
koreanic: 120,
|
|
// sino-tibetan
|
|
sinitic: 140,
|
|
// constructed
|
|
constructed: 160,
|
|
};
|
|
</script>
|
|
|
|
<template>
|
|
<div
|
|
v-if="false"
|
|
class="badge border bg-light text-primary locale-icon"
|
|
:style="`background-color: oklch(95% 0.15 ${GROUPS_COLOUR_CODE[locale.family]}) !important`"
|
|
>
|
|
{{ locale.symbol || ' ' }}
|
|
</div>
|
|
</template>
|
|
|
|
<style scoped>
|
|
.locale-icon {
|
|
width: 2.5em;
|
|
}
|
|
</style>
|