Skip to content

Commit 6bfce78

Browse files
authored
feat: textlint (#971 #926) (#1017)
textlint translateGlossary 용어 추가.
1 parent 8b5a2fc commit 6bfce78

File tree

2 files changed

+124
-1
lines changed

2 files changed

+124
-1
lines changed

textlint/data/rules/translateGlossary.js

+106-1
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,112 @@ module.exports = {
382382
},
383383
},
384384
],
385-
// others: [],
385+
others: [
386+
{
387+
sources: [/\bTips?\b/],
388+
target: '팁',
389+
meta: {
390+
term: 'Tip',
391+
discussions: [2],
392+
},
393+
},
394+
{
395+
sources: [/\bExamples?\b/, //],
396+
target: '예시',
397+
meta: {
398+
term: 'Example',
399+
discussions: [2],
400+
},
401+
},
402+
{
403+
sources: [/\bChapters?\b/, /[]/],
404+
target: '장',
405+
meta: {
406+
term: 'Chapter',
407+
discussions: [2],
408+
},
409+
},
410+
{
411+
sources: [/\bSpec(?:ification)?s?\b/, /[]/],
412+
target: '명세',
413+
meta: {
414+
term: 'Spec, Specification',
415+
discussions: [2],
416+
},
417+
},
418+
{
419+
sources: [/\bcamel\s?Case\b/, /[][]\s?/],
420+
target: '캐멀 케이스',
421+
meta: {
422+
term: 'camelCase',
423+
discussions: [2],
424+
},
425+
},
426+
{
427+
sources: [/\bParam(?:eter)?s?\b/, /[][]/, / /],
428+
target: '매개변수',
429+
meta: {
430+
term: 'Parameter',
431+
discussions: [614],
432+
},
433+
},
434+
{
435+
sources: [/\bDeprecated\b/],
436+
target: '더 이상 사용되지 않습니다.',
437+
meta: {
438+
term: 'Deprecated',
439+
discussions: [632],
440+
},
441+
},
442+
{
443+
sources: [/\bPitfall\b/],
444+
target: '주의하세요!',
445+
meta: {
446+
term: 'Pitfall',
447+
discussions: [632],
448+
},
449+
},
450+
{
451+
sources: [/\bNote\b/],
452+
target: '중요합니다!',
453+
meta: {
454+
term: 'Note',
455+
discussions: [632],
456+
},
457+
},
458+
{
459+
sources: [/\bWip\b/],
460+
target: '개발중이에요',
461+
meta: {
462+
term: 'Wip',
463+
discussions: [632],
464+
},
465+
},
466+
{
467+
sources: [/\bReturns\b/, /\s+(?:\s+)?{\//],
468+
target: '반환값',
469+
meta: {
470+
term: 'Returns(제목에 사용된 경우)',
471+
discussions: [725],
472+
},
473+
},
474+
{
475+
sources: [/\bLogic\b/],
476+
target: '로직',
477+
meta: {
478+
term: 'Logic',
479+
discussions: [695],
480+
},
481+
},
482+
{
483+
sources: [/\bDependenc(?:y|ies)\b/],
484+
target: '의존성',
485+
meta: {
486+
term: 'Dependency',
487+
discussions: [841],
488+
},
489+
},
490+
],
386491
},
387492
// untranslated: {
388493
// react: [],

wiki/translate-glossary.md

+18
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,21 @@ Browser|`/Browser/`|브라우저|[#610](https://github.com/reactjs/ko.react.dev/
5656
Extension|`/Extension/`, `/확장프로그램/`|확장 프로그램|[#610](https://github.com/reactjs/ko.react.dev/issues/610)|
5757
Escape Hatches|`/Escape[-\s]?Hatches/`|탈출구|[#738](https://github.com/reactjs/ko.react.dev/issues/738)|
5858

59+
### Others
60+
61+
용어 `term`|정규표현식 `sources`|번역 `target`|논의 `discussions`|
62+
---|---|---|---|
63+
Tip|`/\bTips?\b/`|팁|[#2](https://github.com/reactjs/ko.react.dev/issues/2)|
64+
Example|`/\bExamples?\b/`, `/예제/`|예시|[#2](https://github.com/reactjs/ko.react.dev/issues/2)|
65+
Chapter|`/\bChapters?\b/`, `/[챕쳅]터/`|장|[#2](https://github.com/reactjs/ko.react.dev/issues/2)|
66+
Spec, Specification|`/\bSpec(?:ification)?s?\b/`, `/스[펙팩]/`|명세|[#2](https://github.com/reactjs/ko.react.dev/issues/2)|
67+
camelCase|`/\bcamel\s?Case\b/`, `/[캐카][맬멜]\s?케이스/`|캐멀 케이스|[#2](https://github.com/reactjs/ko.react.dev/issues/2)|
68+
Parameter|`/\bParam(?:eter)?s?\b/`, `/[파패][라러]미터/`, `/매개 변수/`|매개변수|[#614](https://github.com/reactjs/ko.react.dev/issues/614)|
69+
Deprecated|`/\bDeprecated\b/`|더 이상 사용되지 않습니다.|[#632](https://github.com/reactjs/ko.react.dev/issues/632)|
70+
Pitfall|`/\bPitfall\b/`|주의하세요!|[#632](https://github.com/reactjs/ko.react.dev/issues/632)|
71+
Note|`/\bNote\b/`|중요합니다!|[#632](https://github.com/reactjs/ko.react.dev/issues/632)|
72+
Wip|`/\bWip\b/`|개발중이에요|[#632](https://github.com/reactjs/ko.react.dev/issues/632)|
73+
Returns(제목에 사용된 경우)|`/\bReturns\b/`, `/반환\s+(?:값\s+)?{\//`|반환값|[#725](https://github.com/reactjs/ko.react.dev/issues/725)|
74+
Logic|`/\bLogic\b/`|로직|[#695](https://github.com/reactjs/ko.react.dev/issues/695)|
75+
Dependency|`/\bDependenc(?:y\|ies)\b/`|의존성|[#841](https://github.com/reactjs/ko.react.dev/issues/841)|
76+

0 commit comments

Comments
 (0)