From 4d875b1416072f558a42801e7d731ec390fa3403 Mon Sep 17 00:00:00 2001
From: Benjamin Singleton <19498453+tetrogem@users.noreply.github.com>
Date: Sat, 21 Feb 2026 19:32:12 -0600
Subject: [PATCH] wip: Continued string-only-ifying locales
---
.../src/components/molecules/DiscordRuleOverview.vue | 2 +-
apps/vdn-static/src/i18n/locale.ts | 2 +-
apps/vdn-static/src/locales/en_US.ts | 12 ++++++------
apps/vdn-static/src/pages/discord/rules.vue | 8 ++++----
4 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/apps/vdn-static/src/components/molecules/DiscordRuleOverview.vue b/apps/vdn-static/src/components/molecules/DiscordRuleOverview.vue
index 246b6a9..6478e04 100644
--- a/apps/vdn-static/src/components/molecules/DiscordRuleOverview.vue
+++ b/apps/vdn-static/src/components/molecules/DiscordRuleOverview.vue
@@ -24,7 +24,7 @@ defineProps<{
:style="{ width: 'fit-content', display: 'inline-block' }">
-
+
;
- subtext: RichTemplate | null;
+ subtext: RichTemplate;
};
export type DiscordRuleSection = {
diff --git a/apps/vdn-static/src/locales/en_US.ts b/apps/vdn-static/src/locales/en_US.ts
index 9b1ceb2..a8158b7 100644
--- a/apps/vdn-static/src/locales/en_US.ts
+++ b/apps/vdn-static/src/locales/en_US.ts
@@ -57,7 +57,7 @@ export default {
text: richT(
"No translation! Do not translate to/from Viossa on the server, except the big four translatables (you can learn in hard mode without them!)",
),
- subtext: null,
+ subtext: richT(),
},
section: {
header: ({ ruleNumber }) =>
@@ -99,7 +99,7 @@ export default {
lfsv: {
overview: {
text: richT("If it's understood, it's Viossa."),
- subtext: null,
+ subtext: richT(),
},
section: {
header: ({ ruleNumber }) =>
@@ -125,7 +125,7 @@ export default {
text: richT(
"The chats in the Viossa Only category are Viossa only.",
),
- subtext: null,
+ subtext: richT(),
},
section: {
header: ({ ruleNumber }) =>
@@ -153,7 +153,7 @@ export default {
text: richT(
"This server is SFW. No sexually explicit, gory, or violent content.",
),
- subtext: null,
+ subtext: richT(),
},
section: {
header: ({ ruleNumber }) =>
@@ -183,7 +183,7 @@ export default {
text: richT(
"Don't use hate speech, and respect each other.",
),
- subtext: null,
+ subtext: richT(),
},
section: {
header: ({ ruleNumber }) =>
@@ -207,7 +207,7 @@ export default {
boldT("@Yewaldnen"),
").",
),
- subtext: null,
+ subtext: richT(),
},
section: {
header: ({ ruleNumber }) =>
diff --git a/apps/vdn-static/src/pages/discord/rules.vue b/apps/vdn-static/src/pages/discord/rules.vue
index 12f415b..7911907 100644
--- a/apps/vdn-static/src/pages/discord/rules.vue
+++ b/apps/vdn-static/src/pages/discord/rules.vue
@@ -7,7 +7,7 @@ import { computed } from "vue";
const locale = useLocale();
const pageI18n = computed(() => locale.value.discord.rulesPage);
-const rules = computed(() => pageI18n.value.rules);
+const rulesI18n = computed(() => pageI18n.value.rules);
const RULE_ORDER = [
"noTranslation",
@@ -17,7 +17,7 @@ const RULE_ORDER = [
"respectOthers",
"respectStaff",
"controversialTopics",
-] as const satisfies (keyof typeof pageI18n.value.rules)[];
+] as const satisfies (keyof typeof rulesI18n.value)[];
@@ -37,13 +37,13 @@ const RULE_ORDER = [
v-for="(id, index) in RULE_ORDER"
:key="index"
:rule-number="index + 1"
- :overview="rules[id].overview" />
+ :overview="rulesI18n[id].overview" />