From 771a8cc4bf57b0ae8344a71f0ee412b6cccaabfa Mon Sep 17 00:00:00 2001 From: Benjamin Singleton <19498453+tetrogem@users.noreply.github.com> Date: Sun, 15 Feb 2026 13:55:22 -0600 Subject: [PATCH] wip: Discord Rules page fully using i18n, i18n function messages, fixed Locale compiler bugs, still some bugs with locale fallbacks that need fixing --- .../src/components/atoms/RichTemplate.vue | 6 +- .../molecules/DiscordRuleSection.vue | 32 +++ apps/vdn-static/src/i18n/index.ts | 70 +++--- apps/vdn-static/src/i18n/locale.ts | 11 + apps/vdn-static/src/i18n/marker.ts | 4 +- apps/vdn-static/src/locales/en_US.ts | 214 +++++++++++++++++- apps/vdn-static/src/locales/wp_VL.ts | 14 ++ apps/vdn-static/src/pages/discord/rules.vue | 197 ++++------------ apps/vdn-static/src/utils/types.ts | 6 +- 9 files changed, 361 insertions(+), 193 deletions(-) create mode 100644 apps/vdn-static/src/components/molecules/DiscordRuleSection.vue diff --git a/apps/vdn-static/src/components/atoms/RichTemplate.vue b/apps/vdn-static/src/components/atoms/RichTemplate.vue index 6fd5315..f68b32b 100644 --- a/apps/vdn-static/src/components/atoms/RichTemplate.vue +++ b/apps/vdn-static/src/components/atoms/RichTemplate.vue @@ -7,8 +7,12 @@ import { import RichTemplateParts from "./RichTemplateParts.vue"; import OptionalParent from "./OptionalParent.vue"; -defineProps<{ template: CompiledRichTemplate; tag?: string }>(); +const props = defineProps<{ + template: CompiledRichTemplate; + tag?: string; +}>(); const slots = defineSlots<{ [K in SlotName]: () => VNode[] }>(); +console.log(Object.entries(props.template));