Skip to content

Commit

Permalink
feat: textlint (reactjs#971 reactjs#926)
Browse files Browse the repository at this point in the history
textlint translateGlossary 용어 추가.
  • Loading branch information
lumirlumir committed Jul 23, 2024
1 parent 984e9ff commit c37af53
Show file tree
Hide file tree
Showing 2 changed files with 124 additions and 1 deletion.
107 changes: 106 additions & 1 deletion textlint/data/rules/translateGlossary.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: [],
Expand Down
18 changes: 18 additions & 0 deletions wiki/translate-glossary.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)|

0 comments on commit c37af53

Please sign in to comment.