From 204eaccdf6ca3c9321de92881e9a889e7dbf0d93 Mon Sep 17 00:00:00 2001 From: melontini <104443436+melontini@users.noreply.github.com> Date: Thu, 6 Jun 2024 14:47:42 +0700 Subject: [PATCH] ugh, WhyPress... --- .vitepress/config.mts | 14 +++++++++++++- ru/README.md | 2 +- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.vitepress/config.mts b/.vitepress/config.mts index 3c29ba8..39d27f9 100644 --- a/.vitepress/config.mts +++ b/.vitepress/config.mts @@ -5,7 +5,7 @@ export default defineConfig({ base: '/bootloader-unlock-wall-of-shame/', rewrites: { 'README.md': 'index.md', - '(.*)/README.md': '(.*)/' + '(.*)/README.md': '(.*)/index.md' }, title: "Bootloader Unlock: Wall of Shame", description: "Keeping track of companies that \"care about your data πŸ₯Ί\"", @@ -30,6 +30,7 @@ export default defineConfig({ themeConfig: { logo: { src: '/favicon.png', width: 24, height: 24 }, + i18nRouting: false, socialLinks: [ { icon: 'github', link: 'https://github.com/melontini/bootloader-unlock-wall-of-shame' } @@ -42,5 +43,16 @@ export default defineConfig({ search: { provider: 'local' }, + }, + + locales: { + "root": { + label: "English", + link: "/", + }, + "ru": { + label: "Russian", + link: "/ru/", + } } }) diff --git a/ru/README.md b/ru/README.md index 2b0cfc3..91ad338 100644 --- a/ru/README.md +++ b/ru/README.md @@ -2,7 +2,7 @@ ΠžΡ‚ΡΠ»Π΅ΠΆΠΈΠ²Π°Π΅ΠΌ ΠΊΠΎΠΌΠΏΠ°Π½ΠΈΠΈ, ΠΊΠΎΡ‚ΠΎΡ€Ρ‹Π΅ «заботятся ΠΎ Π²Π°ΡˆΠΈΡ… Π΄Π°Π½Π½Ρ‹Ρ… πŸ₯ΊΒ» -[ΠŸΠ΅Ρ€Π΅ΠΊΠ»ΡŽΡ‡ΠΈΡ‚ΡŒΡΡ Π½Π° английский ΠΎΡ€ΠΈΠ³ΠΈΠ½Π°Π»](README.md) +[ΠŸΠ΅Ρ€Π΅ΠΊΠ»ΡŽΡ‡ΠΈΡ‚ΡŒΡΡ Π½Π° английский ΠΎΡ€ΠΈΠ³ΠΈΠ½Π°Π»](/README.md) ![Terrible](https://raw.githubusercontent.com/melontini/bootloader-unlock-wall-of-shame/main/ru/terrible_ru.svg) [![License CC BY-NC-SA](https://raw.githubusercontent.com/melontini/bootloader-unlock-wall-of-shame/main/ru/CC-BY-NC-SA-4.0_ru.svg)](https://github.com/melontini/bootloader-unlock-wall-of-shame/blob/main/LICENSE)