From 950ee1f4896d22a5620f782d77158714a697dc13 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Tue, 13 Aug 2024 22:44:36 +0800 Subject: [PATCH] :sparkles: Nuxt content tool chain --- content/{ => en}/products/acefield.mdx | 0 content/{ => en}/products/roadsign.mdx | 0 content/{ => en}/products/solar-network.mdx | 0 content/zh-CN/products/acefield.mdx | 9 +++++++ content/zh-CN/products/roadsign.mdx | 6 +++++ content/zh-CN/products/solar-network.mdx | 24 ++++++++++++++++++ nuxt.config.ts | 2 ++ pages/index.vue | 6 ++++- pages/products/[...slug].vue | 27 +++++++++------------ pages/products/index.vue | 6 ++++- utils/locale.ts | 7 ++++++ 11 files changed, 70 insertions(+), 17 deletions(-) rename content/{ => en}/products/acefield.mdx (100%) rename content/{ => en}/products/roadsign.mdx (100%) rename content/{ => en}/products/solar-network.mdx (100%) create mode 100644 content/zh-CN/products/acefield.mdx create mode 100644 content/zh-CN/products/roadsign.mdx create mode 100644 content/zh-CN/products/solar-network.mdx create mode 100644 utils/locale.ts diff --git a/content/products/acefield.mdx b/content/en/products/acefield.mdx similarity index 100% rename from content/products/acefield.mdx rename to content/en/products/acefield.mdx diff --git a/content/products/roadsign.mdx b/content/en/products/roadsign.mdx similarity index 100% rename from content/products/roadsign.mdx rename to content/en/products/roadsign.mdx diff --git a/content/products/solar-network.mdx b/content/en/products/solar-network.mdx similarity index 100% rename from content/products/solar-network.mdx rename to content/en/products/solar-network.mdx diff --git a/content/zh-CN/products/acefield.mdx b/content/zh-CN/products/acefield.mdx new file mode 100644 index 0000000..b3ceb28 --- /dev/null +++ b/content/zh-CN/products/acefield.mdx @@ -0,0 +1,9 @@ +--- +thumbnail: /thumbnails/products/acefield.webp +title: AceField +description: An experimental multiplayer top-down view shooting game that created by Solsynth LLC affiliation Highland Entertainment. +url: https://files.solsynth.dev/production01/acefield +--- + +AceField which is stands for wonderful place to battle. +We can't just use the name Battlefield because it already became a trademark of Electronic Arts. diff --git a/content/zh-CN/products/roadsign.mdx b/content/zh-CN/products/roadsign.mdx new file mode 100644 index 0000000..91b0c73 --- /dev/null +++ b/content/zh-CN/products/roadsign.mdx @@ -0,0 +1,6 @@ +--- +thumbnail: /thumbnails/products/roadsign.webp +title: RoadSign +description: The reserve proxy that powered our network. Powerful and easy to use. +archived: true +--- diff --git a/content/zh-CN/products/solar-network.mdx b/content/zh-CN/products/solar-network.mdx new file mode 100644 index 0000000..8f622fb --- /dev/null +++ b/content/zh-CN/products/solar-network.mdx @@ -0,0 +1,24 @@ +--- +thumbnail: /thumbnails/products/solar-network.webp +title: Solar Network +description: All-in-one 社交媒体平台 +url: https://sn.solsynth.dev +--- + +Solar Network 是一个创新的平台,它将社交互动、聊天和语音通话无缝整合到一个统一的体验中。通过 Solar Network,您可以毫不费力地建立和管理自己的社区。 + +## Key Features + +- Social Integration: Connect and engage with others through a comprehensive social platform that brings together various forms of interaction. +- Chat: Enjoy real-time messaging with individuals and groups, making communication smooth and efficient. +- Voice Calls: Experience crystal-clear voice calls, enabling you to connect on a deeper level with your community. + +## Why Choose Solar Network? + +- User-Friendly: Designed with simplicity in mind, making it easy for anyone to create and manage their community. +- All-in-One Solution: Combines essential communication tools into one platform, eliminating the need for multiple apps. +- Customizable: Tailor the platform to suit your community’s unique needs and preferences. + +Join Solar Network today and start building your community with ease! + +Feel free to adjust any details to better fit your vision for the product. diff --git a/nuxt.config.ts b/nuxt.config.ts index 3a98284..65df968 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -71,6 +71,8 @@ export default defineNuxtConfig({ highlight: { theme: "github-dark", }, + locales: ["en", "zh-CN"], + defaultLocale: "en", }, pinia: { diff --git a/pages/index.vue b/pages/index.vue index a9d5eab..9a6e51c 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -42,9 +42,13 @@