From bb08d4b06ca7d98ec862df1e46c2641f983b392f Mon Sep 17 00:00:00 2001 From: Junseong Park <39112954+jsparkdev@users.noreply.github.com> Date: Tue, 8 Apr 2025 16:49:53 +0900 Subject: [PATCH 1/3] i18n(ko-KR): update Korean UI strings --- astro.config.mts | 482 ++++++++++++++++++++------------------- src/content/i18n/ko.json | 48 ++++ 2 files changed, 292 insertions(+), 238 deletions(-) create mode 100644 src/content/i18n/ko.json diff --git a/astro.config.mts b/astro.config.mts index 6f95e556..6f4b7ffe 100644 --- a/astro.config.mts +++ b/astro.config.mts @@ -1,246 +1,252 @@ -import starlight from '@astrojs/starlight'; -import ui from '@studiocms/ui'; -import { defineConfig } from 'astro/config'; -import starlightImageZoom from 'starlight-image-zoom'; -import starlightSidebarTopics from 'starlight-sidebar-topics'; -import getCoolifyURL from './hostUtils.ts'; -import rehypePlugins from './src/plugins/rehypePluginKit.ts'; -import { typeDocPlugins } from './typedoc.config.ts'; -import { getTranslations } from './starlight-sidebar/translate.ts'; -import { devServerFileWatcher } from './src/integrations/dev-file-watcher.ts'; -import { remarkFallbackLang } from './src/plugins/remark-fallback-pages.ts'; +import starlight from "@astrojs/starlight"; +import ui from "@studiocms/ui"; +import { defineConfig } from "astro/config"; +import starlightImageZoom from "starlight-image-zoom"; +import starlightSidebarTopics from "starlight-sidebar-topics"; +import getCoolifyURL from "./hostUtils.ts"; +import rehypePlugins from "./src/plugins/rehypePluginKit.ts"; +import { typeDocPlugins } from "./typedoc.config.ts"; +import { getTranslations } from "./starlight-sidebar/translate.ts"; +import { devServerFileWatcher } from "./src/integrations/dev-file-watcher.ts"; +import { remarkFallbackLang } from "./src/plugins/remark-fallback-pages.ts"; // Define the Site URL -const site = getCoolifyURL(true) || 'https://docs.studiocms.dev/'; +const site = getCoolifyURL(true) || "https://docs.studiocms.dev/"; export const locales = { - en: { label: 'English', lang: 'en' }, - es: { label: 'Español', lang: 'es' }, - // de: { label: 'Deutsch', lang: 'de' }, - // ja: { label: '日本語', lang: 'ja' }, - fr: { label: 'Français', lang: 'fr' }, - // it: { label: 'Italiano', lang: 'it' }, - // id: { label: 'Bahasa Indonesia', lang: 'id' }, - // 'zh-cn': { label: '简体中文', lang: 'zh-CN' }, - // 'pt-br': { label: 'Português do Brasil', lang: 'pt-BR' }, - // 'pt-pt': { label: 'Português', lang: 'pt-PT' }, - // ko: { label: '한국어', lang: 'ko' }, - // tr: { label: 'Türkçe', lang: 'tr' }, - // ru: { label: 'Русский', lang: 'ru' }, - // hi: { label: 'हिंदी', lang: 'hi' }, - // da: { label: 'Dansk', lang: 'da' }, - // uk: { label: 'Українська', lang: 'uk' }, + en: { label: "English", lang: "en" }, + es: { label: "Español", lang: "es" }, + // de: { label: 'Deutsch', lang: 'de' }, + // ja: { label: '日本語', lang: 'ja' }, + fr: { label: "Français", lang: "fr" }, + // it: { label: 'Italiano', lang: 'it' }, + // id: { label: 'Bahasa Indonesia', lang: 'id' }, + // 'zh-cn': { label: '简体中文', lang: 'zh-CN' }, + // 'pt-br': { label: 'Português do Brasil', lang: 'pt-BR' }, + // 'pt-pt': { label: 'Português', lang: 'pt-PT' }, + ko: { label: "한국어", lang: "ko" }, + // tr: { label: 'Türkçe', lang: 'tr' }, + // ru: { label: 'Русский', lang: 'ru' }, + // hi: { label: 'हिंदी', lang: 'hi' }, + // da: { label: 'Dansk', lang: 'da' }, + // uk: { label: 'Українська', lang: 'uk' }, }; export default defineConfig({ - site, - image: { - remotePatterns: [{ protocol: 'https' }], - }, - markdown: { - rehypePlugins, - remarkPlugins: [remarkFallbackLang()], - }, - trailingSlash: 'always', - integrations: [ - devServerFileWatcher([ - './hostUtils.ts', - './typedoc.config.ts', - './starlight-types.ts', - './starlight-sidebar/*', - './src/content.ts', - './src/share-link.ts', - './src/util/*.ts', - './src/plugins/*.{ts,js}', - './src/integrations/*.ts', - ]), - ui(), - starlight({ - title: 'StudioCMS', - description: 'A dedicated CMS for Astro DB. Built from the ground up by the Astro community.', - favicon: '/logo-light.svg', - lastUpdated: true, - credits: true, - tagline: 'A dedicated CMS for Astro DB. Built from the ground up by the Astro community.', - disable404Route: true, - pagefind: false, - components: { - SiteTitle: './src/starlightOverrides/SiteTitle.astro', - PageTitle: './src/starlightOverrides/PageTitle.astro', - Sidebar: './src/starlightOverrides/Sidebar.astro', - Head: './src/starlightOverrides/Head.astro', - Search: './src/starlightOverrides/Search.astro', - }, - logo: { - dark: './assets/logo-light.svg', - light: './assets/logo-dark.svg', - }, - defaultLocale: 'en', - locales, - social: { - github: 'https://github.com/withstudiocms/studiocms', - discord: 'https://chat.studiocms.dev', - youtube: 'https://www.youtube.com/@StudioCMS', - 'x.com': 'https://x.com/withstudiocms', - blueSky: 'https://bsky.app/profile/studiocms.dev', - openCollective: 'https://opencollective.com/StudioCMS', - }, - customCss: [ - '@studiocms/ui/css/global.css', - './src/styles/sponsorcolors.css', - './src/styles/starlight.css', - ], - editLink: { - baseUrl: 'https://github.com/withstudiocms/docs/tree/main', - }, - head: [ - { - tag: 'script', - attrs: { - src: 'https://analytics.studiocms.dev/script.js', - 'data-website-id': 'e924da68-f547-4dd2-bd2f-bcdd78cbcdab', - defer: true, - }, - }, - { - tag: 'meta', - attrs: { - name: 'og:image', - content: `${site}og.png`, - }, - }, - { - tag: 'meta', - attrs: { - name: 'twitter:image', - content: `${site}og.png`, - }, - }, - { - tag: 'meta', - attrs: { - name: 'twitter:site', - content: 'withstudiocms', - }, - }, - { - tag: 'meta', - attrs: { - name: 'twitter:creator', - content: 'withstudiocms', - }, - }, - ], - plugins: [ - ...typeDocPlugins, - starlightImageZoom(), - starlightSidebarTopics([ - { - label: getTranslations('topic-learn'), - link: '/start-here/getting-started', - icon: 'open-book', - id: 'learn', - items: [ - { - label: getTranslations('start-here').en, - translations: getTranslations('start-here'), - autogenerate: { directory: 'start-here' }, - }, - { - label: getTranslations('contributing').en, - translations: getTranslations('contributing'), - autogenerate: { directory: 'contributing' }, - }, - { - label: getTranslations('how-it-works').en, - translations: getTranslations('how-it-works'), - autogenerate: { directory: 'how-it-works' }, - }, - { - label: getTranslations('utils').en, - translations: getTranslations('utils'), - autogenerate: { directory: 'utils' }, - }, - { - label: getTranslations('plugins').en, - translations: getTranslations('plugins'), - autogenerate: { directory: 'plugins' }, - }, - ], - }, - { - label: getTranslations('topic-package-catalog'), - link: '/package-catalog', - icon: 'download', - id: 'package-catalog', - items: [ - { - label: getTranslations('catalog').en, - translations: getTranslations('catalog'), - link: '/package-catalog', - }, - { - label: getTranslations('studiocms-plugins').en, - translations: getTranslations('studiocms-plugins'), - autogenerate: { directory: 'package-catalog/studiocms-plugins' }, - }, - { - label: getTranslations('community-plugins').en, - translations: getTranslations('community-plugins'), - autogenerate: { directory: 'package-catalog/community-plugins' }, - }, - ], - }, - { - label: getTranslations('topic-references'), - link: '/config-reference', - icon: 'information', - id: 'references', - items: [ - { - label: getTranslations('config-reference').en, - translations: getTranslations('config-reference'), - autogenerate: { directory: 'config-reference' }, - }, - { - label: getTranslations('typedoc').en, - translations: getTranslations('typedoc'), - badge: { - text: getTranslations('auto-gen'), - variant: 'tip', - }, - items: [ - { - label: 'studiocms', - autogenerate: { directory: 'typedoc/studiocms' }, - collapsed: true, - }, - { - label: '@studiocms/blog', - autogenerate: { directory: 'typedoc/studiocms-blog' }, - collapsed: true, - }, - { - label: '@studiocms/devapps', - autogenerate: { directory: 'typedoc/studiocms-devapps' }, - collapsed: true, - }, - { - label: '@studiocms/markdoc', - autogenerate: { directory: 'typedoc/studiocms-markdoc' }, - collapsed: true, - }, - { - label: '@studiocms/mdx', - autogenerate: { directory: 'typedoc/studiocms-mdx' }, - collapsed: true, - }, - ], - }, - ], - }, - ]), - ], - }), - ], + site, + image: { + remotePatterns: [{ protocol: "https" }], + }, + markdown: { + rehypePlugins, + remarkPlugins: [remarkFallbackLang()], + }, + trailingSlash: "always", + integrations: [ + devServerFileWatcher([ + "./hostUtils.ts", + "./typedoc.config.ts", + "./starlight-types.ts", + "./starlight-sidebar/*", + "./src/content.ts", + "./src/share-link.ts", + "./src/util/*.ts", + "./src/plugins/*.{ts,js}", + "./src/integrations/*.ts", + ]), + ui(), + starlight({ + title: "StudioCMS", + description: + "A dedicated CMS for Astro DB. Built from the ground up by the Astro community.", + favicon: "/logo-light.svg", + lastUpdated: true, + credits: true, + tagline: + "A dedicated CMS for Astro DB. Built from the ground up by the Astro community.", + disable404Route: true, + pagefind: false, + components: { + SiteTitle: "./src/starlightOverrides/SiteTitle.astro", + PageTitle: "./src/starlightOverrides/PageTitle.astro", + Sidebar: "./src/starlightOverrides/Sidebar.astro", + Head: "./src/starlightOverrides/Head.astro", + Search: "./src/starlightOverrides/Search.astro", + }, + logo: { + dark: "./assets/logo-light.svg", + light: "./assets/logo-dark.svg", + }, + defaultLocale: "en", + locales, + social: { + github: "https://github.com/withstudiocms/studiocms", + discord: "https://chat.studiocms.dev", + youtube: "https://www.youtube.com/@StudioCMS", + "x.com": "https://x.com/withstudiocms", + blueSky: "https://bsky.app/profile/studiocms.dev", + openCollective: "https://opencollective.com/StudioCMS", + }, + customCss: [ + "@studiocms/ui/css/global.css", + "./src/styles/sponsorcolors.css", + "./src/styles/starlight.css", + ], + editLink: { + baseUrl: "https://github.com/withstudiocms/docs/tree/main", + }, + head: [ + { + tag: "script", + attrs: { + src: "https://analytics.studiocms.dev/script.js", + "data-website-id": "e924da68-f547-4dd2-bd2f-bcdd78cbcdab", + defer: true, + }, + }, + { + tag: "meta", + attrs: { + name: "og:image", + content: `${site}og.png`, + }, + }, + { + tag: "meta", + attrs: { + name: "twitter:image", + content: `${site}og.png`, + }, + }, + { + tag: "meta", + attrs: { + name: "twitter:site", + content: "withstudiocms", + }, + }, + { + tag: "meta", + attrs: { + name: "twitter:creator", + content: "withstudiocms", + }, + }, + ], + plugins: [ + ...typeDocPlugins, + starlightImageZoom(), + starlightSidebarTopics([ + { + label: getTranslations("topic-learn"), + link: "/start-here/getting-started", + icon: "open-book", + id: "learn", + items: [ + { + label: getTranslations("start-here").en, + translations: getTranslations("start-here"), + autogenerate: { directory: "start-here" }, + }, + { + label: getTranslations("contributing").en, + translations: getTranslations("contributing"), + autogenerate: { directory: "contributing" }, + }, + { + label: getTranslations("how-it-works").en, + translations: getTranslations("how-it-works"), + autogenerate: { directory: "how-it-works" }, + }, + { + label: getTranslations("utils").en, + translations: getTranslations("utils"), + autogenerate: { directory: "utils" }, + }, + { + label: getTranslations("plugins").en, + translations: getTranslations("plugins"), + autogenerate: { directory: "plugins" }, + }, + ], + }, + { + label: getTranslations("topic-package-catalog"), + link: "/package-catalog", + icon: "download", + id: "package-catalog", + items: [ + { + label: getTranslations("catalog").en, + translations: getTranslations("catalog"), + link: "/package-catalog", + }, + { + label: getTranslations("studiocms-plugins").en, + translations: getTranslations("studiocms-plugins"), + autogenerate: { + directory: "package-catalog/studiocms-plugins", + }, + }, + { + label: getTranslations("community-plugins").en, + translations: getTranslations("community-plugins"), + autogenerate: { + directory: "package-catalog/community-plugins", + }, + }, + ], + }, + { + label: getTranslations("topic-references"), + link: "/config-reference", + icon: "information", + id: "references", + items: [ + { + label: getTranslations("config-reference").en, + translations: getTranslations("config-reference"), + autogenerate: { directory: "config-reference" }, + }, + { + label: getTranslations("typedoc").en, + translations: getTranslations("typedoc"), + badge: { + text: getTranslations("auto-gen"), + variant: "tip", + }, + items: [ + { + label: "studiocms", + autogenerate: { directory: "typedoc/studiocms" }, + collapsed: true, + }, + { + label: "@studiocms/blog", + autogenerate: { directory: "typedoc/studiocms-blog" }, + collapsed: true, + }, + { + label: "@studiocms/devapps", + autogenerate: { directory: "typedoc/studiocms-devapps" }, + collapsed: true, + }, + { + label: "@studiocms/markdoc", + autogenerate: { directory: "typedoc/studiocms-markdoc" }, + collapsed: true, + }, + { + label: "@studiocms/mdx", + autogenerate: { directory: "typedoc/studiocms-mdx" }, + collapsed: true, + }, + ], + }, + ], + }, + ]), + ], + }), + ], }); diff --git a/src/content/i18n/ko.json b/src/content/i18n/ko.json new file mode 100644 index 00000000..05ef288f --- /dev/null +++ b/src/content/i18n/ko.json @@ -0,0 +1,48 @@ +{ + "site-title.labels.docs": "문서", + "site-title.labels.main-site": "메인 사이트", + "site-title.labels.live-demo": "라이브 데모", + "sponsors.sponsoredby": "후원", + "package-catalog.readmore.start": "자세한 내용은", + "package-catalog.readmore.end": "문서 페이지를 확인하세요.", + "integration-labels.changelog": "변경 로그", + "contributors.core-packages": "StudioCMS 코어 패키지", + "contributors.ui-library": "StudioCMS UI 라이브러리", + "contributors.devapps": "StudioCMS 개발 도구 모음", + "contributors.plugins": "StudioCMS 플러그인", + "contributors.documentation": "StudioCMS 문서", + "contributors.website": "StudioCMS 웹사이트", + "contributors.bots": "StudioCMS 봇", + "docsearch.button": "검색", + "docsearch.shortcutLabel": "검색하려면 / 키를 누르세요.", + "docsearch.placeholder": "문서 검색", + "docsearch.searchBox.resetButtonTitle": "검색어 지우기", + "docsearch.searchBox.resetButtonAriaLabel": "검색어 지우기", + "docsearch.searchBox.cancelButtonText": "취소", + "docsearch.searchBox.cancelButtonAriaLabel": "취소", + "docsearch.searchBox.searchInputLabel": "검색", + + "docsearch.startScreen.recentSearchesTitle": "최근 검색어", + "docsearch.startScreen.noRecentSearchesText": "최근 검색어가 없습니다.", + "docsearch.startScreen.saveRecentSearchButtonTitle": "즐겨찾기에 추가", + "docsearch.startScreen.removeRecentSearchButtonTitle": "최근 검색어에서 제거", + "docsearch.startScreen.favoriteSearchesTitle": "즐겨찾기", + "docsearch.startScreen.removeFavoriteSearchButtonTitle": "즐겨찾기에서 제거", + + "docsearch.errorScreen.titleText": "검색 결과를 불러올 수 없습니다.", + "docsearch.errorScreen.helpText": "네트워크 연결 상태를 확인해 보세요.", + + "docsearch.footer.selectText": "선택", + "docsearch.footer.selectKeyAriaLabel": "엔터 키", + "docsearch.footer.navigateText": "탐색", + "docsearch.footer.navigateUpKeyAriaLabel": "위쪽 화살표 키", + "docsearch.footer.navigateDownKeyAriaLabel": "아래쪽 화살표 키", + "docsearch.footer.closeText": "닫기", + "docsearch.footer.closeKeyAriaLabel": "Esc 키", + "docsearch.footer.searchByText": "제공:", + + "docsearch.noResultsScreen.noResultsText": "검색 결과 없음:", + "docsearch.noResultsScreen.suggestedQueryText": "이런 검색어는 어떠신가요?", + "docsearch.noResultsScreen.reportMissingResultsText": "이 검색어에 대한 결과가 있어야 한다고 생각하시나요?", + "docsearch.noResultsScreen.reportMissingResultsLinkText": "의견 보내기" +} From d5782d634bc283e8c85134039eff7b270e9b73ab Mon Sep 17 00:00:00 2001 From: Junseong Park <39112954+jsparkdev@users.noreply.github.com> Date: Tue, 8 Apr 2025 16:53:50 +0900 Subject: [PATCH 2/3] format code --- astro.config.mts | 482 +++++++++++++++++++++++------------------------ 1 file changed, 238 insertions(+), 244 deletions(-) diff --git a/astro.config.mts b/astro.config.mts index 6f4b7ffe..e04eb39b 100644 --- a/astro.config.mts +++ b/astro.config.mts @@ -1,252 +1,246 @@ -import starlight from "@astrojs/starlight"; -import ui from "@studiocms/ui"; -import { defineConfig } from "astro/config"; -import starlightImageZoom from "starlight-image-zoom"; -import starlightSidebarTopics from "starlight-sidebar-topics"; -import getCoolifyURL from "./hostUtils.ts"; -import rehypePlugins from "./src/plugins/rehypePluginKit.ts"; -import { typeDocPlugins } from "./typedoc.config.ts"; -import { getTranslations } from "./starlight-sidebar/translate.ts"; -import { devServerFileWatcher } from "./src/integrations/dev-file-watcher.ts"; -import { remarkFallbackLang } from "./src/plugins/remark-fallback-pages.ts"; +import starlight from '@astrojs/starlight'; +import ui from '@studiocms/ui'; +import { defineConfig } from 'astro/config'; +import starlightImageZoom from 'starlight-image-zoom'; +import starlightSidebarTopics from 'starlight-sidebar-topics'; +import getCoolifyURL from './hostUtils.ts'; +import rehypePlugins from './src/plugins/rehypePluginKit.ts'; +import { typeDocPlugins } from './typedoc.config.ts'; +import { getTranslations } from './starlight-sidebar/translate.ts'; +import { devServerFileWatcher } from './src/integrations/dev-file-watcher.ts'; +import { remarkFallbackLang } from './src/plugins/remark-fallback-pages.ts'; // Define the Site URL -const site = getCoolifyURL(true) || "https://docs.studiocms.dev/"; +const site = getCoolifyURL(true) || 'https://docs.studiocms.dev/'; export const locales = { - en: { label: "English", lang: "en" }, - es: { label: "Español", lang: "es" }, - // de: { label: 'Deutsch', lang: 'de' }, - // ja: { label: '日本語', lang: 'ja' }, - fr: { label: "Français", lang: "fr" }, - // it: { label: 'Italiano', lang: 'it' }, - // id: { label: 'Bahasa Indonesia', lang: 'id' }, - // 'zh-cn': { label: '简体中文', lang: 'zh-CN' }, - // 'pt-br': { label: 'Português do Brasil', lang: 'pt-BR' }, - // 'pt-pt': { label: 'Português', lang: 'pt-PT' }, - ko: { label: "한국어", lang: "ko" }, - // tr: { label: 'Türkçe', lang: 'tr' }, - // ru: { label: 'Русский', lang: 'ru' }, - // hi: { label: 'हिंदी', lang: 'hi' }, - // da: { label: 'Dansk', lang: 'da' }, - // uk: { label: 'Українська', lang: 'uk' }, + en: { label: 'English', lang: 'en' }, + es: { label: 'Español', lang: 'es' }, + // de: { label: 'Deutsch', lang: 'de' }, + // ja: { label: '日本語', lang: 'ja' }, + fr: { label: 'Français', lang: 'fr' }, + // it: { label: 'Italiano', lang: 'it' }, + // id: { label: 'Bahasa Indonesia', lang: 'id' }, + // 'zh-cn': { label: '简体中文', lang: 'zh-CN' }, + // 'pt-br': { label: 'Português do Brasil', lang: 'pt-BR' }, + // 'pt-pt': { label: 'Português', lang: 'pt-PT' }, + ko: { label: '한국어', lang: 'ko' }, + // tr: { label: 'Türkçe', lang: 'tr' }, + // ru: { label: 'Русский', lang: 'ru' }, + // hi: { label: 'हिंदी', lang: 'hi' }, + // da: { label: 'Dansk', lang: 'da' }, + // uk: { label: 'Українська', lang: 'uk' }, }; export default defineConfig({ - site, - image: { - remotePatterns: [{ protocol: "https" }], - }, - markdown: { - rehypePlugins, - remarkPlugins: [remarkFallbackLang()], - }, - trailingSlash: "always", - integrations: [ - devServerFileWatcher([ - "./hostUtils.ts", - "./typedoc.config.ts", - "./starlight-types.ts", - "./starlight-sidebar/*", - "./src/content.ts", - "./src/share-link.ts", - "./src/util/*.ts", - "./src/plugins/*.{ts,js}", - "./src/integrations/*.ts", - ]), - ui(), - starlight({ - title: "StudioCMS", - description: - "A dedicated CMS for Astro DB. Built from the ground up by the Astro community.", - favicon: "/logo-light.svg", - lastUpdated: true, - credits: true, - tagline: - "A dedicated CMS for Astro DB. Built from the ground up by the Astro community.", - disable404Route: true, - pagefind: false, - components: { - SiteTitle: "./src/starlightOverrides/SiteTitle.astro", - PageTitle: "./src/starlightOverrides/PageTitle.astro", - Sidebar: "./src/starlightOverrides/Sidebar.astro", - Head: "./src/starlightOverrides/Head.astro", - Search: "./src/starlightOverrides/Search.astro", - }, - logo: { - dark: "./assets/logo-light.svg", - light: "./assets/logo-dark.svg", - }, - defaultLocale: "en", - locales, - social: { - github: "https://github.com/withstudiocms/studiocms", - discord: "https://chat.studiocms.dev", - youtube: "https://www.youtube.com/@StudioCMS", - "x.com": "https://x.com/withstudiocms", - blueSky: "https://bsky.app/profile/studiocms.dev", - openCollective: "https://opencollective.com/StudioCMS", - }, - customCss: [ - "@studiocms/ui/css/global.css", - "./src/styles/sponsorcolors.css", - "./src/styles/starlight.css", - ], - editLink: { - baseUrl: "https://github.com/withstudiocms/docs/tree/main", - }, - head: [ - { - tag: "script", - attrs: { - src: "https://analytics.studiocms.dev/script.js", - "data-website-id": "e924da68-f547-4dd2-bd2f-bcdd78cbcdab", - defer: true, - }, - }, - { - tag: "meta", - attrs: { - name: "og:image", - content: `${site}og.png`, - }, - }, - { - tag: "meta", - attrs: { - name: "twitter:image", - content: `${site}og.png`, - }, - }, - { - tag: "meta", - attrs: { - name: "twitter:site", - content: "withstudiocms", - }, - }, - { - tag: "meta", - attrs: { - name: "twitter:creator", - content: "withstudiocms", - }, - }, - ], - plugins: [ - ...typeDocPlugins, - starlightImageZoom(), - starlightSidebarTopics([ - { - label: getTranslations("topic-learn"), - link: "/start-here/getting-started", - icon: "open-book", - id: "learn", - items: [ - { - label: getTranslations("start-here").en, - translations: getTranslations("start-here"), - autogenerate: { directory: "start-here" }, - }, - { - label: getTranslations("contributing").en, - translations: getTranslations("contributing"), - autogenerate: { directory: "contributing" }, - }, - { - label: getTranslations("how-it-works").en, - translations: getTranslations("how-it-works"), - autogenerate: { directory: "how-it-works" }, - }, - { - label: getTranslations("utils").en, - translations: getTranslations("utils"), - autogenerate: { directory: "utils" }, - }, - { - label: getTranslations("plugins").en, - translations: getTranslations("plugins"), - autogenerate: { directory: "plugins" }, - }, - ], - }, - { - label: getTranslations("topic-package-catalog"), - link: "/package-catalog", - icon: "download", - id: "package-catalog", - items: [ - { - label: getTranslations("catalog").en, - translations: getTranslations("catalog"), - link: "/package-catalog", - }, - { - label: getTranslations("studiocms-plugins").en, - translations: getTranslations("studiocms-plugins"), - autogenerate: { - directory: "package-catalog/studiocms-plugins", - }, - }, - { - label: getTranslations("community-plugins").en, - translations: getTranslations("community-plugins"), - autogenerate: { - directory: "package-catalog/community-plugins", - }, - }, - ], - }, - { - label: getTranslations("topic-references"), - link: "/config-reference", - icon: "information", - id: "references", - items: [ - { - label: getTranslations("config-reference").en, - translations: getTranslations("config-reference"), - autogenerate: { directory: "config-reference" }, - }, - { - label: getTranslations("typedoc").en, - translations: getTranslations("typedoc"), - badge: { - text: getTranslations("auto-gen"), - variant: "tip", - }, - items: [ - { - label: "studiocms", - autogenerate: { directory: "typedoc/studiocms" }, - collapsed: true, - }, - { - label: "@studiocms/blog", - autogenerate: { directory: "typedoc/studiocms-blog" }, - collapsed: true, - }, - { - label: "@studiocms/devapps", - autogenerate: { directory: "typedoc/studiocms-devapps" }, - collapsed: true, - }, - { - label: "@studiocms/markdoc", - autogenerate: { directory: "typedoc/studiocms-markdoc" }, - collapsed: true, - }, - { - label: "@studiocms/mdx", - autogenerate: { directory: "typedoc/studiocms-mdx" }, - collapsed: true, - }, - ], - }, - ], - }, - ]), - ], - }), - ], + site, + image: { + remotePatterns: [{ protocol: 'https' }], + }, + markdown: { + rehypePlugins, + remarkPlugins: [remarkFallbackLang()], + }, + trailingSlash: 'always', + integrations: [ + devServerFileWatcher([ + './hostUtils.ts', + './typedoc.config.ts', + './starlight-types.ts', + './starlight-sidebar/*', + './src/content.ts', + './src/share-link.ts', + './src/util/*.ts', + './src/plugins/*.{ts,js}', + './src/integrations/*.ts', + ]), + ui(), + starlight({ + title: 'StudioCMS', + description: 'A dedicated CMS for Astro DB. Built from the ground up by the Astro community.', + favicon: '/logo-light.svg', + lastUpdated: true, + credits: true, + tagline: 'A dedicated CMS for Astro DB. Built from the ground up by the Astro community.', + disable404Route: true, + pagefind: false, + components: { + SiteTitle: './src/starlightOverrides/SiteTitle.astro', + PageTitle: './src/starlightOverrides/PageTitle.astro', + Sidebar: './src/starlightOverrides/Sidebar.astro', + Head: './src/starlightOverrides/Head.astro', + Search: './src/starlightOverrides/Search.astro', + }, + logo: { + dark: './assets/logo-light.svg', + light: './assets/logo-dark.svg', + }, + defaultLocale: 'en', + locales, + social: { + github: 'https://github.com/withstudiocms/studiocms', + discord: 'https://chat.studiocms.dev', + youtube: 'https://www.youtube.com/@StudioCMS', + 'x.com': 'https://x.com/withstudiocms', + blueSky: 'https://bsky.app/profile/studiocms.dev', + openCollective: 'https://opencollective.com/StudioCMS', + }, + customCss: [ + '@studiocms/ui/css/global.css', + './src/styles/sponsorcolors.css', + './src/styles/starlight.css', + ], + editLink: { + baseUrl: 'https://github.com/withstudiocms/docs/tree/main', + }, + head: [ + { + tag: 'script', + attrs: { + src: 'https://analytics.studiocms.dev/script.js', + 'data-website-id': 'e924da68-f547-4dd2-bd2f-bcdd78cbcdab', + defer: true, + }, + }, + { + tag: 'meta', + attrs: { + name: 'og:image', + content: `${site}og.png`, + }, + }, + { + tag: 'meta', + attrs: { + name: 'twitter:image', + content: `${site}og.png`, + }, + }, + { + tag: 'meta', + attrs: { + name: 'twitter:site', + content: 'withstudiocms', + }, + }, + { + tag: 'meta', + attrs: { + name: 'twitter:creator', + content: 'withstudiocms', + }, + }, + ], + plugins: [ + ...typeDocPlugins, + starlightImageZoom(), + starlightSidebarTopics([ + { + label: getTranslations('topic-learn'), + link: '/start-here/getting-started', + icon: 'open-book', + id: 'learn', + items: [ + { + label: getTranslations('start-here').en, + translations: getTranslations('start-here'), + autogenerate: { directory: 'start-here' }, + }, + { + label: getTranslations('contributing').en, + translations: getTranslations('contributing'), + autogenerate: { directory: 'contributing' }, + }, + { + label: getTranslations('how-it-works').en, + translations: getTranslations('how-it-works'), + autogenerate: { directory: 'how-it-works' }, + }, + { + label: getTranslations('utils').en, + translations: getTranslations('utils'), + autogenerate: { directory: 'utils' }, + }, + { + label: getTranslations('plugins').en, + translations: getTranslations('plugins'), + autogenerate: { directory: 'plugins' }, + }, + ], + }, + { + label: getTranslations('topic-package-catalog'), + link: '/package-catalog', + icon: 'download', + id: 'package-catalog', + items: [ + { + label: getTranslations('catalog').en, + translations: getTranslations('catalog'), + link: '/package-catalog', + }, + { + label: getTranslations('studiocms-plugins').en, + translations: getTranslations('studiocms-plugins'), + autogenerate: { directory: 'package-catalog/studiocms-plugins' }, + }, + { + label: getTranslations('community-plugins').en, + translations: getTranslations('community-plugins'), + autogenerate: { directory: 'package-catalog/community-plugins' }, + }, + ], + }, + { + label: getTranslations('topic-references'), + link: '/config-reference', + icon: 'information', + id: 'references', + items: [ + { + label: getTranslations('config-reference').en, + translations: getTranslations('config-reference'), + autogenerate: { directory: 'config-reference' }, + }, + { + label: getTranslations('typedoc').en, + translations: getTranslations('typedoc'), + badge: { + text: getTranslations('auto-gen'), + variant: 'tip', + }, + items: [ + { + label: 'studiocms', + autogenerate: { directory: 'typedoc/studiocms' }, + collapsed: true, + }, + { + label: '@studiocms/blog', + autogenerate: { directory: 'typedoc/studiocms-blog' }, + collapsed: true, + }, + { + label: '@studiocms/devapps', + autogenerate: { directory: 'typedoc/studiocms-devapps' }, + collapsed: true, + }, + { + label: '@studiocms/markdoc', + autogenerate: { directory: 'typedoc/studiocms-markdoc' }, + collapsed: true, + }, + { + label: '@studiocms/mdx', + autogenerate: { directory: 'typedoc/studiocms-mdx' }, + collapsed: true, + }, + ], + }, + ], + }, + ]), + ], + }), + ], }); From 50146c8464ad1f12eda124204babf24f775b389f Mon Sep 17 00:00:00 2001 From: Junseong Park <39112954+jsparkdev@users.noreply.github.com> Date: Tue, 8 Apr 2025 17:00:30 +0900 Subject: [PATCH 3/3] update lunaria config --- lunaria.config.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lunaria.config.ts b/lunaria.config.ts index 35ba28ba..c8f89b85 100644 --- a/lunaria.config.ts +++ b/lunaria.config.ts @@ -77,13 +77,13 @@ export default defineConfig({ // tag: 'pt-PT', // }, // }, - // { - // label: '한국어', - // lang: 'ko', - // parameters: { - // tag: 'ko', - // }, - // }, + { + label: '한국어', + lang: 'ko', + parameters: { + tag: 'ko', + }, + }, // { // label: 'Türkçe', // lang: 'tr',