Skip to content

feat: textlint (#971 #926) #1017

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)|

Loading