feat: ⬆️ Update Inlang JS to v2

This commit is contained in:
Jesse Wierzbinski 2025-02-14 14:08:21 +01:00
parent 826f3c89b7
commit f41908a3a7
No known key found for this signature in database
11 changed files with 136 additions and 139 deletions

View file

@ -25,6 +25,7 @@
<script lang="ts" setup>
import { CalendarDays } from "lucide-vue-next";
import * as m from "~/paraglide/messages.js";
import { getLocale } from "~/paraglide/runtime";
const { creationDate } = defineProps<{
creationDate: Date;
@ -33,8 +34,8 @@ const { creationDate } = defineProps<{
followingCount: number;
}>();
const formattedCreationDate = new Intl.DateTimeFormat(getLanguageTag(), {
const formattedCreationDate = new Intl.DateTimeFormat(getLocale(), {
month: "long",
year: "numeric",
}).format(creationDate);
</script>
</script>