wip: RichText & Templating for i18n, refactored & began i18n for Discord Server Rules using the new features
This commit is contained in:
parent
feacb9b754
commit
a3adc2526f
25 changed files with 929 additions and 141 deletions
|
|
@ -2,14 +2,14 @@
|
|||
import LearningResourceWrapper, {
|
||||
type ResourceButton,
|
||||
} from "@/components/molecules/LearningResourceWrapper.vue";
|
||||
import { useLocale } from "@/i18n";
|
||||
import { useI18n } from "@/i18n";
|
||||
import type { Locale } from "@/i18n/locale";
|
||||
import { ignore } from "@/utils/ignore";
|
||||
import { computed } from "vue";
|
||||
|
||||
const locale = useLocale();
|
||||
const i18n = useI18n();
|
||||
|
||||
const resourceIdToResource = computed(() => locale.value.resources.resources);
|
||||
const resourceIdToResource = computed(() => i18n.v("resources.resources"));
|
||||
|
||||
const RESOURCE_ORDER = [
|
||||
"discord",
|
||||
|
|
@ -53,7 +53,7 @@ const computeButtons = (
|
|||
<template>
|
||||
<div>
|
||||
<section class="section">
|
||||
<h1 class="title">{{ locale.resources.title }}</h1>
|
||||
<h1 class="title">{{ i18n.t("resources.title") }}</h1>
|
||||
</section>
|
||||
|
||||
<section class="section container">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue