diff --git a/textlint/data/rules/translateGlossary.js b/textlint/data/rules/translateGlossary.js index 3f04c57b0..7660ed60d 100644 --- a/textlint/data/rules/translateGlossary.js +++ b/textlint/data/rules/translateGlossary.js @@ -382,7 +382,112 @@ module.exports = { }, }, ], - // others: [], + others: [ + { + sources: [/\bTips?\b/], + target: '팁', + meta: { + term: 'Tip', + discussions: [2], + }, + }, + { + sources: [/\bExamples?\b/, /예제/], + target: '예시', + meta: { + term: 'Example', + discussions: [2], + }, + }, + { + sources: [/\bChapters?\b/, /[챕쳅]터/], + target: '장', + meta: { + term: 'Chapter', + discussions: [2], + }, + }, + { + sources: [/\bSpec(?:ification)?s?\b/, /스[펙팩]/], + target: '명세', + meta: { + term: 'Spec, Specification', + discussions: [2], + }, + }, + { + sources: [/\bcamel\s?Case\b/, /[캐카][맬멜]\s?케이스/], + target: '캐멀 케이스', + meta: { + term: 'camelCase', + discussions: [2], + }, + }, + { + sources: [/\bParam(?:eter)?s?\b/, /[파패][라러]미터/, /매개 변수/], + target: '매개변수', + meta: { + term: 'Parameter', + discussions: [614], + }, + }, + { + sources: [/\bDeprecated\b/], + target: '더 이상 사용되지 않습니다.', + meta: { + term: 'Deprecated', + discussions: [632], + }, + }, + { + sources: [/\bPitfall\b/], + target: '주의하세요!', + meta: { + term: 'Pitfall', + discussions: [632], + }, + }, + { + sources: [/\bNote\b/], + target: '중요합니다!', + meta: { + term: 'Note', + discussions: [632], + }, + }, + { + sources: [/\bWip\b/], + target: '개발중이에요', + meta: { + term: 'Wip', + discussions: [632], + }, + }, + { + sources: [/\bReturns\b/, /반환\s+(?:값\s+)?{\//], + target: '반환값', + meta: { + term: 'Returns(제목에 사용된 경우)', + discussions: [725], + }, + }, + { + sources: [/\bLogic\b/], + target: '로직', + meta: { + term: 'Logic', + discussions: [695], + }, + }, + { + sources: [/\bDependenc(?:y|ies)\b/], + target: '의존성', + meta: { + term: 'Dependency', + discussions: [841], + }, + }, + ], }, // untranslated: { // react: [], diff --git a/wiki/translate-glossary.md b/wiki/translate-glossary.md index c61cd66a6..f00abc292 100644 --- a/wiki/translate-glossary.md +++ b/wiki/translate-glossary.md @@ -56,3 +56,21 @@ Browser|`/Browser/`|브라우저|[#610](https://github.com/reactjs/ko.react.dev/ Extension|`/Extension/`, `/확장프로그램/`|확장 프로그램|[#610](https://github.com/reactjs/ko.react.dev/issues/610)| Escape Hatches|`/Escape[-\s]?Hatches/`|탈출구|[#738](https://github.com/reactjs/ko.react.dev/issues/738)| +### Others + +용어 `term`|정규표현식 `sources`|번역 `target`|논의 `discussions`| +---|---|---|---| +Tip|`/\bTips?\b/`|팁|[#2](https://github.com/reactjs/ko.react.dev/issues/2)| +Example|`/\bExamples?\b/`, `/예제/`|예시|[#2](https://github.com/reactjs/ko.react.dev/issues/2)| +Chapter|`/\bChapters?\b/`, `/[챕쳅]터/`|장|[#2](https://github.com/reactjs/ko.react.dev/issues/2)| +Spec, Specification|`/\bSpec(?:ification)?s?\b/`, `/스[펙팩]/`|명세|[#2](https://github.com/reactjs/ko.react.dev/issues/2)| +camelCase|`/\bcamel\s?Case\b/`, `/[캐카][맬멜]\s?케이스/`|캐멀 케이스|[#2](https://github.com/reactjs/ko.react.dev/issues/2)| +Parameter|`/\bParam(?:eter)?s?\b/`, `/[파패][라러]미터/`, `/매개 변수/`|매개변수|[#614](https://github.com/reactjs/ko.react.dev/issues/614)| +Deprecated|`/\bDeprecated\b/`|더 이상 사용되지 않습니다.|[#632](https://github.com/reactjs/ko.react.dev/issues/632)| +Pitfall|`/\bPitfall\b/`|주의하세요!|[#632](https://github.com/reactjs/ko.react.dev/issues/632)| +Note|`/\bNote\b/`|중요합니다!|[#632](https://github.com/reactjs/ko.react.dev/issues/632)| +Wip|`/\bWip\b/`|개발중이에요|[#632](https://github.com/reactjs/ko.react.dev/issues/632)| +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)| +