mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.Docs.git
synced 2025-11-19 21:16:31 +08:00
add RU translate 85% by qwerezon
This commit is contained in:
@@ -41,6 +41,11 @@ export default defineUserConfig({
|
||||
title: "Snap Hutao",
|
||||
description: "Super utilitarian Genshin Impact Toolkit",
|
||||
},
|
||||
"/ru/": {
|
||||
lang: "ru-RU",
|
||||
title: "Snap Hutao",
|
||||
description: "Суперполезный набор инструментов для Genshin Impact",
|
||||
},
|
||||
},
|
||||
|
||||
plugins: [
|
||||
@@ -90,6 +95,47 @@ export default defineUserConfig({
|
||||
},
|
||||
},
|
||||
},
|
||||
"/ru/": {
|
||||
placeholder: "Поиск",
|
||||
translations: {
|
||||
button: {
|
||||
buttonText: "Поиск",
|
||||
buttonAriaLabel: "Поиск",
|
||||
},
|
||||
modal: {
|
||||
searchBox: {
|
||||
resetButtonTitle: "Четкие критерии запроса",
|
||||
resetButtonAriaLabel: "Четкие критерии запроса",
|
||||
cancelButtonText: "Назад",
|
||||
cancelButtonAriaLabel: "Назад",
|
||||
},
|
||||
startScreen: {
|
||||
recentSearchesTitle: "История поиска",
|
||||
noRecentSearchesText: "Нету истории поиска",
|
||||
saveRecentSearchButtonTitle: "Сохранить в историю поиска",
|
||||
removeRecentSearchButtonTitle: "Удалить из истории поиска",
|
||||
favoriteSearchesTitle: "Закладки",
|
||||
removeFavoriteSearchButtonTitle: "Удалить из закладок",
|
||||
},
|
||||
errorScreen: {
|
||||
titleText: "Не удалось получить результат",
|
||||
helpText: "Проверте свое подключение к Интернету, а так-же запрашиваемый ресурс",
|
||||
},
|
||||
footer: {
|
||||
selectText: "Выбрать",
|
||||
navigateText: "Переключить",
|
||||
closeText: "Закрыть",
|
||||
searchByText: "Поиск",
|
||||
},
|
||||
noResultsScreen: {
|
||||
noResultsText: "Не удалось ничего найти по вашему запросу :",
|
||||
suggestedQueryText: "Вы можете попробовать запрос",
|
||||
reportMissingResultsText: "Как вы думаете, должен ли этот запрос давать какой-то результат :> ?",
|
||||
reportMissingResultsLinkText: "Связаться с нами",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
"/en/": {
|
||||
placeholder: "Search documents",
|
||||
translations: {
|
||||
@@ -110,6 +156,7 @@ export default defineUserConfig({
|
||||
localeConfig: {
|
||||
"/en/": ["en-US", "en-UK", "en"],
|
||||
"/zh/": ["zh-CN", "zh-TW", "zh"],
|
||||
"/ru/": ["ru-RU", "ru-KZ", "ru-BY", "ru-UA", "ru-MD", "ru-LV", "tt-RU", "ru"],
|
||||
},
|
||||
}),
|
||||
],
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
export * from "./en.js";
|
||||
export * from "./zh.js";
|
||||
export * from "./ru.js";
|
||||
32
docs/.vuepress/navbar/ru.ts
Normal file
32
docs/.vuepress/navbar/ru.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
import { navbar } from "vuepress-theme-hope";
|
||||
|
||||
export const ruNavbar = navbar([
|
||||
"/ru/",
|
||||
{ text: "Документация", icon: "iconfont icon-article", link: "/ru/menu.html" },
|
||||
{
|
||||
text: "Скачать",
|
||||
icon: "iconfont icon-install",
|
||||
link: "https://apps.microsoft.com/store/detail/snap-hutao/9PH4NXJ2JN52",
|
||||
},
|
||||
{
|
||||
text: "Сообщество",
|
||||
icon: "iconfont icon-community",
|
||||
link: "/ru/community",
|
||||
},
|
||||
{
|
||||
text: "Доступность сервиса",
|
||||
icon: "iconfont icon-define",
|
||||
children: [
|
||||
{
|
||||
text: "UptimeRobot",
|
||||
icon: "/images/202312/uptimerobot-logo.svg",
|
||||
link: "https://status.hut.ao/",
|
||||
},
|
||||
{
|
||||
text: "Uptime Kuma",
|
||||
icon: "/images/202312/uptime-kuma.svg",
|
||||
link: "https://status.snapgenshin.cn/status",
|
||||
}
|
||||
]
|
||||
},
|
||||
]);
|
||||
@@ -1,2 +1,3 @@
|
||||
export * from "./en.js";
|
||||
export * from "./zh.js";
|
||||
export * from "./ru.js";
|
||||
34
docs/.vuepress/sidebar/ru.ts
Normal file
34
docs/.vuepress/sidebar/ru.ts
Normal file
@@ -0,0 +1,34 @@
|
||||
import { sidebar } from "vuepress-theme-hope";
|
||||
|
||||
export const ruSidebar = sidebar({
|
||||
"/ru/": [
|
||||
"",
|
||||
"project",
|
||||
"i18n",
|
||||
"quick-start",
|
||||
{
|
||||
icon: "iconfont icon-read",
|
||||
text: "Features",
|
||||
prefix: "features/",
|
||||
children: "structure",
|
||||
},
|
||||
{
|
||||
icon: "iconfont icon-advance",
|
||||
text: "Advanced",
|
||||
prefix: "advanced/",
|
||||
children: "structure",
|
||||
},
|
||||
{
|
||||
icon: "iconfont icon-github",
|
||||
text: "Open Source Development",
|
||||
prefix: "development/",
|
||||
children: "structure",
|
||||
},
|
||||
{
|
||||
icon: "iconfont icon-article",
|
||||
text: "Statements",
|
||||
prefix: "statements/",
|
||||
children: "structure",
|
||||
},
|
||||
],
|
||||
});
|
||||
@@ -1,6 +1,6 @@
|
||||
import { hopeTheme } from "vuepress-theme-hope";
|
||||
import { enNavbar, zhNavbar } from "./navbar/index.js";
|
||||
import { enSidebar, zhSidebar } from "./sidebar/index.js";
|
||||
import { enNavbar, zhNavbar, ruNavbar } from "./navbar/index.js";
|
||||
import { enSidebar, zhSidebar, ruSidebar } from "./sidebar/index.js";
|
||||
|
||||
export default hopeTheme({
|
||||
hostname: "https://hut.ao",
|
||||
@@ -41,6 +41,24 @@ export default hopeTheme({
|
||||
editLink: "Edit this page on GitHub",
|
||||
},
|
||||
},
|
||||
"/ru/": {
|
||||
// Панель навигации (navbar)
|
||||
navbar: ruNavbar,
|
||||
|
||||
// Боковая панель (sidebar)
|
||||
sidebar: ruSidebar,
|
||||
|
||||
// Нижний колонтитул (footer)
|
||||
footer: "Лучший инструмент для Genshin Impact",
|
||||
|
||||
// Отображение нижнего колонтитула
|
||||
displayFooter: true,
|
||||
|
||||
// Локализованные мета-данные
|
||||
metaLocales: {
|
||||
editLink: "Редактировать страницу на GitHub",
|
||||
},
|
||||
},
|
||||
|
||||
/**
|
||||
* Chinese locale config
|
||||
|
||||
Reference in New Issue
Block a user