docs: Add localized document URLs and update references in UI components.

This commit is contained in:
Sakamoto Shiina
2025-12-22 13:51:46 +09:00
parent 97ea17f649
commit b8c6d13dea
4 changed files with 35 additions and 4 deletions

View File

@@ -31,6 +31,8 @@ import { useI18n } from "@useI18n";
import { useAppearance } from "@logics_configs";
import { PosterShowcaseContents } from "./poster_showcase_contents/PosterShowcaseContents";
import { generateLocalizedDocumentUrl } from "@ui_configs";
export const AboutVrct = () => {
const { t } = useI18n();
const { currentUiLanguage } = useAppearance();
@@ -153,7 +155,7 @@ const about_vrct_links = {
dev_shiina_x: { img: dev_x_icon, href: "https://twitter.com/Shiina_12siy" },
project_link_booth: { img: project_link_booth, href: "https://misyaguziya.booth.pm/items/5155325" },
project_link_documents: { img: project_link_documents, href: "https://mzsoftware.notion.site/VRCT-Documents-be79b7a165f64442ad8f326d86c22246" },
project_link_documents: { img: project_link_documents, href: generateLocalizedDocumentUrl().vrct_document_home_url },
project_link_vrct_github: { img: project_link_vrct_github, href: "https://github.com/misyaguziya/VRCT" },
project_link_contact_us: { img: project_link_contact_us, href: "https://docs.google.com/forms/d/e/1FAIpQLSei-xoydOY60ivXqhOjaTzNN8PiBQIDcNhzfy6cw2sjYkcg_g/viewform" },

View File

@@ -9,10 +9,17 @@ import {
useIsOscAvailable,
} from "@logics_common";
import { useVr, useOthers } from "@logics_configs";
import {
useAppearance,
useVr,
useOthers,
} from "@logics_configs";
import { OpenQuickSettingButton } from "./_buttons/OpenQuickSettingButton";
import { generateLocalizedDocumentUrl } from "@ui_configs";
export const RightSideComponents = () => {
const { currentUiLanguage } = useAppearance();
return (
<div className={styles.container}>
@@ -23,7 +30,7 @@ export const RightSideComponents = () => {
<SoftwareUpdateAvailableButton />
<a
className={styles.help_and_info_button}
href="https://docs.google.com/spreadsheets/d/1_L5i-1U6PB1dnaPPTE_5uKMfqOpkLziPyRkiMLi4mqU/edit?usp=sharing"
href={generateLocalizedDocumentUrl(currentUiLanguage.data).vrct_document_ui_guide_url}
target="_blank"
rel="noreferrer"
>

View File

@@ -6,6 +6,7 @@ import MegaphoneSvg from "@images/megaphone.svg?react";
import XMarkSvg from "@images/cancel.svg?react";
import { useWindow } from "@logics_common";
import clsx from "clsx";
import { generateLocalizedDocumentUrl } from "@ui_configs";
export const SplashComponent = () => {
return (
@@ -56,7 +57,7 @@ const AnnouncementsContainer = () => {
[styles.is_shown]: is_shown,
[styles.is_labels_active]: is_labels_active,
})}
href="https://docs.google.com/spreadsheets/d/1_L5i-1U6PB1dnaPPTE_5uKMfqOpkLziPyRkiMLi4mqU/edit?usp=sharing"
href={generateLocalizedDocumentUrl().vrct_document_faq_url}
target="_blank"
rel="noreferrer"
>