From ab7c88c2854fb3303130f359310f365379138537 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=A3=A8=EB=B0=80LuMir?= Date: Wed, 2 Oct 2024 12:59:13 +0900 Subject: [PATCH] docs(typo): fix typo 'directive' linted by textlint --- src/content/reference/react/index.md | 2 +- src/content/reference/rsc/directives.md | 2 +- src/content/reference/rsc/server-components.md | 2 +- src/content/reference/rsc/use-client.md | 2 +- src/content/reference/rsc/use-server.md | 2 +- textlint/data/rules/translateGlossary.js | 9 +++++++++ wiki/translate-glossary.md | 1 + 7 files changed, 15 insertions(+), 5 deletions(-) diff --git a/src/content/reference/react/index.md b/src/content/reference/react/index.md index 754acf250..76cfc177e 100644 --- a/src/content/reference/react/index.md +++ b/src/content/reference/react/index.md @@ -17,7 +17,7 @@ React의 프로그래밍 기능 * [Hooks](/reference/react/hooks) - 컴포넌트에서 다양한 React 기능을 사용하세요. * [Components](/reference/react/components) - JSX에서 사용할 수 있는 내장 컴포넌트입니다. * [APIs](/reference/react/apis) - 컴포넌트 정의에 유용한 API들을 다룹니다. -* [Directives](/reference/rsc/directives) - React 서버 컴포넌트와 호환되는 Bundler에게 지시를 제공합니다. +* [지시어](/reference/rsc/directives) - React 서버 컴포넌트와 호환되는 Bundler에게 지시를 제공합니다. ## React DOM {/*react-dom*/} diff --git a/src/content/reference/rsc/directives.md b/src/content/reference/rsc/directives.md index 3c354cfe6..0d3394380 100644 --- a/src/content/reference/rsc/directives.md +++ b/src/content/reference/rsc/directives.md @@ -1,5 +1,5 @@ --- -title: "Directives" +title: "지시어" canary: true --- diff --git a/src/content/reference/rsc/server-components.md b/src/content/reference/rsc/server-components.md index 6fa1afde8..32d0260b4 100644 --- a/src/content/reference/rsc/server-components.md +++ b/src/content/reference/rsc/server-components.md @@ -190,7 +190,7 @@ async function Author({id}) { 서버 컴포넌트는 `"use server"`로 표시된다는 오해가 있지만, 서버 컴포넌트에 대한 지시어은 없습니다. `"use server"` 지시어은 서버 액션에 사용됩니다. -자세한 내용은 [Directives](/reference/rsc/directives) 참조하세요. +자세한 내용은 [지시어](/reference/rsc/directives) 참조하세요. diff --git a/src/content/reference/rsc/use-client.md b/src/content/reference/rsc/use-client.md index 5e8e7a942..26ba0c377 100644 --- a/src/content/reference/rsc/use-client.md +++ b/src/content/reference/rsc/use-client.md @@ -1,6 +1,6 @@ --- title: "'use client'" -titleForTitleTag: "'use client' directive" +titleForTitleTag: "'use client' 지시어" canary: true --- diff --git a/src/content/reference/rsc/use-server.md b/src/content/reference/rsc/use-server.md index d10a0f89c..cd589fceb 100644 --- a/src/content/reference/rsc/use-server.md +++ b/src/content/reference/rsc/use-server.md @@ -1,6 +1,6 @@ --- title: "'use server'" -titleForTitleTag: "'use server' directive" +titleForTitleTag: "'use server' 지시어" canary: true --- diff --git a/textlint/data/rules/translateGlossary.js b/textlint/data/rules/translateGlossary.js index 96b331cce..59ce73d38 100644 --- a/textlint/data/rules/translateGlossary.js +++ b/textlint/data/rules/translateGlossary.js @@ -549,6 +549,15 @@ module.exports = { note: '', }, }, + { + sources: [/\bDirectives?\b/], + target: '지시어', + meta: { + term: 'Directive', + discussions: [819], + note: '', + }, + }, ], }, // untranslated: { diff --git a/wiki/translate-glossary.md b/wiki/translate-glossary.md index ffec0a390..4e77569a7 100644 --- a/wiki/translate-glossary.md +++ b/wiki/translate-glossary.md @@ -73,4 +73,5 @@ Wip|`/\bWip\b/`|개발중이에요|[#632](https://github.com/reactjs/ko.react.de Returns|`/\bReturns\b/`, `/반환\s+(?:값\s+)?{\//`|반환값|[#725](https://github.com/reactjs/ko.react.dev/issues/725)|제목에 사용된 경우| Logic|`/\bLogic\b/`|로직|[#695](https://github.com/reactjs/ko.react.dev/issues/695)|| Dependency|`/\bDependenc(?:y\|ies)\b/`|의존성|[#841](https://github.com/reactjs/ko.react.dev/issues/841)|| +Directive|`/\bDirectives?\b/`|지시어|[#819](https://github.com/reactjs/ko.react.dev/issues/819)||