Skip to content

Commit 27461fe

Browse files
aykutkardasro-koGCxEnding
authored
Add Korean localization (#223)
* Update index.js * add Korean section * general.json change into Korean * landing.json into Korean * Update learn.json * Update learn.json * learn.json into Korean * Fix translate (korean) * Add missing translation * Fix some highlights (ko/regex-101) * Fix EOL * cheatsheet.json translated to Korean * regexForSeo.json translated to Korean * fix: remove description --------- Co-authored-by: KeonWoo Ro <84064207+ro-ko@users.noreply.github.com> Co-authored-by: JaeRyang Yu <i3380m1722@gmail.com>
1 parent f66549c commit 27461fe

File tree

10 files changed

+368
-2
lines changed

10 files changed

+368
-2
lines changed

scripts/html-lang-fixer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function htmlLangFixer(path) {
1515
const stats = fs.lstatSync(currentPath);
1616

1717
if (stats.isFile() && el.endsWith('.html')) {
18-
const result = currentPath.match(/^\.\/out\/(en|es|de|tr|uk|fr|ru|pl|zh-cn)\/?/);
18+
const result = currentPath.match(/^\.\/out\/(en|es|de|tr|uk|fr|ru|pl|ko|zh-cn)\/?/);
1919

2020
if (result) {
2121
replaceLangTag(currentPath, result[1]);

src/localization/en/landing.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@
2323
"section.opensource.title": "Open Source",
2424
"section.opensource.content": "Regex Learn is an open-source project that welcomes community contributions and is free to use. Working on this project allows you to hone your skills, study, and collaborate. You can contribute & support here.",
2525
"section.opensource.imageAltText": "Illustration of a woman, a man, and a cat putting together puzzle pieces."
26-
}
26+
}

src/localization/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export const langNames = {
77
ru: '🇷🇺',
88
'zh-cn': '🇨🇳',
99
uk: '🇺🇦',
10+
ko: '🇰🇷',
1011
pl: '🇵🇱',
1112
};
1213

src/localization/ko/cheatsheet.json

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"cheatsheet.anchors": "앵커",
3+
"cheatsheet.caret.title": "문자열 또는 라인의 앞 부분",
4+
"cheatsheet.caret.description": "문자열 또는 라인의 앞 부분을 탐색합니다.",
5+
"cheatsheet.dollar.title": "문자열 또는 라인의 끝 부분",
6+
"cheatsheet.dollar.description": "문자열 또는 라인의 끝 부분을 탐색합니다.",
7+
"cheatsheet.wordBoundary.title": "문장 경계선",
8+
"cheatsheet.wordBoundary.description": "전체 문장에서 모든 단어 또는 위치를 탐색합니다.",
9+
"cheatsheet.notWordBoundary.title": "문장 경계선 아님",
10+
"cheatsheet.notWordBoundary.description": "전체 문장에서 가장 먼저 보이는 단어 또는 위치를 탐색합니다.",
11+
12+
"cheatsheet.characterClasses": "문자 클래스",
13+
"cheatsheet.characterSet.title": "문자 집합",
14+
"cheatsheet.characterSet.description": "집합내의 문자를 포함하는 단어를 모두 탐색합니다.",
15+
"cheatsheet.negatedCharacterSet.title": "부정 문자 집합",
16+
"cheatsheet.negatedCharacterSet.description": "집합내의 문자를 포함하지 않는 단어를 모두 탐색합니다.",
17+
"cheatsheet.range.title": "범위",
18+
"cheatsheet.range.description": "두 문자 사이중 자기 자신을 포함한 모든 문자를 탐색합니다.",
19+
"cheatsheet.dot.title": "",
20+
"cheatsheet.dot.description": "줄 바꿈을 제외한 모든 문자를 탐색합니다.",
21+
"cheatsheet.word.title": "단어",
22+
"cheatsheet.word.description": "영어, 숫자, 밑줄을 포함한 모든 문자를 탐색합니다.",
23+
"cheatsheet.notWord.title": "단어 아님",
24+
"cheatsheet.notWord.description": "영어, 숫자, 밑줄이 아닌 모든 문자를 탐색합니다.",
25+
"cheatsheet.digit.title": "숫자",
26+
"cheatsheet.digit.description": "모든 숫자를 탐색합니다.",
27+
"cheatsheet.notDigit.title": "숫자 아님",
28+
"cheatsheet.notDigit.description": "숫자가 아닌 모든 문자를 탐색합니다.",
29+
"cheatsheet.space.title": "공백",
30+
"cheatsheet.space.description": "모든 공백을 탐색합니다",
31+
"cheatsheet.notSpace.title": "공백 아님",
32+
"cheatsheet.notSpace.description": "공백이 아닌 모든 문자를 탐색합니다.",
33+
34+
"cheatsheet.flags": "플래그",
35+
"cheatsheet.caseInsensitiveFlag.title": "대소문자 무시",
36+
"cheatsheet.caseInsensitiveFlag.description": "표현식이 대소문자를 구별하도록 합니다.",
37+
"cheatsheet.globalFlag.title": "전체",
38+
"cheatsheet.globalFlag.description": "처음 문자열을 찾아내도 다음 탐색을 계속 진행하도록 합니다.",
39+
"cheatsheet.multilineFlag.title": "다중라인",
40+
"cheatsheet.multilineFlag.description": "사용하지 않을 경우, 줄의 시작과 끝은 전체 문자열의 시작과 끝과 같습니다. 각 문자 라인의 끝마다 작동하지 않습니다.",
41+
42+
"cheatsheet.groupAndReferences": "그룹 & 참조",
43+
"cheatsheet.group.title": "그룹",
44+
"cheatsheet.group.description": "표현식을 그룹화 합니다.",
45+
"cheatsheet.reference.title": "참조",
46+
"cheatsheet.reference.description": "그룹화된 식을 참조합니다.",
47+
"cheatsheet.nonCapturingGroup.title": "캡처링 되지 않은 그룹",
48+
"cheatsheet.nonCapturingGroup.description": "참조할 수 없는 그룹식을 만듭니다.",
49+
50+
"cheatsheet.lookarounds": "찾아보기",
51+
"cheatsheet.positiveLookahead.title": "앞에서 부터 맞는것 찾기",
52+
"cheatsheet.negativeLookahead.title": "앞에서 부터 다른것 찾기",
53+
"cheatsheet.positiveLookbehind.title": "뒤에서 부터 맞는것 찾기",
54+
"cheatsheet.negativeLookbehind.title": "뒤에서 부터 다른것 찾기",
55+
56+
"cheatsheet.quantifiersAndAlternation": "수량 및 대체",
57+
"cheatsheet.plus.title": "더하기",
58+
"cheatsheet.plus.description": "표현식이 하나 또는 그 이상을 탐색하도록 합니다.",
59+
"cheatsheet.asterisk.title": "Astekrisk",
60+
"cheatsheet.asterisk.description": "표현식이 0개 또는 그 이상을 탐색하도록 합니다.",
61+
"cheatsheet.quantifier.title": "수량자",
62+
"cheatsheet.quantifier.description": "표현식이 명시된 범위를 탐색하도록 합니다.",
63+
"cheatsheet.optional.title": "선택적",
64+
"cheatsheet.optional.description": "표현식을 선택적 탐색을 하도록 합니다.",
65+
"cheatsheet.alternation.title": "대안",
66+
"cheatsheet.alternation.description": "닮은 것을 탐색합니다. 예약된 식중 하나와 일치할때 까지 탐색합니다."
67+
}

src/localization/ko/general.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"general.prev": "이전",
3+
"general.next": "다음",
4+
"general.result": "결과",
5+
"general.regex": "Regex",
6+
"general.text": "문자",
7+
"general.watch": "손목 시계",
8+
"general.start": "시작",
9+
"general.continue": "계속하다",
10+
"general.completedStep": "단계 성공!",
11+
"general.hintQuestion": "답안 보기",
12+
"general.reportStep": "오류 제기",
13+
"general.startLearning": "학습 시작",
14+
"general.comingSoon": "",
15+
"general.becomeSponsor": "후원자가 되어주세요",
16+
"general.learn": "학습",
17+
"general.playground": "Playground",
18+
"general.cheatsheet": "Cheatsheet",
19+
"general.ourSponsors": "후원자들",
20+
21+
"notFound.intro": "찾고자 하는 페이지가 없습니다.",
22+
"notFound.button": "홈으로 돌아가기",
23+
24+
"page.landing.title": "Regex Learn - 처음부터 차근차근.",
25+
"page.learn.title": "Regex Learn - RegEx 중간 과정",
26+
"page.cheatsheet.title": "Regex Learn - RegEx Cheatsheet",
27+
"page.playground.title": "Regex Learn - Playground",
28+
"page.404.title": "Regex Learn - 찾을 수 없음",
29+
30+
"page.landing.description": "RegEx를 상호작용하며 배우고 당신의 level에 맞추어 실험, 연습하고 당신만의 RegEX를 공유하세요.",
31+
"page.learn.description": "RegEX를 차근차근 배우세요. 튜토리얼을 마치면 좀 더 이해하기 쉽고 용이할 것입니다.",
32+
"page.cheatsheet.description": "가끔 RegEx를 기억할 필요가 있습니다. cheatsheet를 시도해보세요. 당신을 이해하기 쉽고 오래 기억하게 해줄 것입니다.",
33+
"page.playground.description": "Playground를 통해 온라인으로 정규식 패턴을 쉽게 빌드하고 테스트할 수 있습니다.",
34+
35+
"learn.safari.unsupportWarning": "Regular expressionsare 단계는 Safari 브라우저 지원을 받지 않습니다. 이 단계 이전에 문제가 있다면 여기를 클릭해주세요."
36+
}

src/localization/ko/index.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import cheatsheet from './cheatsheet.json';
2+
import general from './general.json';
3+
import landing from './landing.json';
4+
import learn from './learn.json';
5+
import lessons from './lessons.json';
6+
import regexForSeo from './lessons/regexForSeo.json';
7+
8+
const messages = {
9+
...cheatsheet,
10+
...general,
11+
...landing,
12+
...learn,
13+
...lessons,
14+
...regexForSeo,
15+
};
16+
17+
export default messages;

src/localization/ko/landing.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"landing.title": "RegEx를 처음부터 차근차근 배우세요.",
3+
"landing.description": "RegEx 을 배우는 것은 생각보다 쉽습니다. 당신은 RegEx 를 쉽게 `배우고`, `연습하고`, `실험해보고` 그리고 `나눌 수` 있습니다.",
4+
"landing.imageAltText": "",
5+
6+
"section.learn.title": "학습하기",
7+
"section.learn.content": "`Regular Expressions`, 축약해서 RegEx 혹은 RegExp 로 불리며, RegEx 구문 규칙 프레임워크안에서 생성된 문자열입니다. RegEx와 함께 검색,매칭,편집 명령어를 이용하여 데이터를 쉽게 관리하고 처리할수 있습니다. Regex는 Python, SQL, Javascript, R, Google Analytics, Google Data Studio와 같은 모든 코딩 프로세스 프로그래밍 언어안에서 사용될 수 있습니다. 지금 당장 RegexLearn에서 예제와 튜토리얼을 통해 regex를 배우세요.",
8+
"section.learn.imageAltText": "",
9+
10+
"section.cheatsheet.button": "지금 리뷰하기",
11+
"section.cheatsheet.title": "Cheatsheet",
12+
"section.cheatsheet.content": "하나의 페이지안에서 `RegexLearn Cheatsheet`로 모든 사용법을 알 수 있습니다. RegEx cheat sheet과 함께 모든 RegEx 패턴과 기호를 찾아보세요.",
13+
"section.cheatsheet.imageAltText": "",
14+
15+
"section.playground.title": "Playground",
16+
"section.playground.content": "Regex를 생성하려면 Playground를 통해 Regex 패턴을 쉽게 빌드하고 테스트할 수 있습니다. 정규식 테스터는 공동 작업을 위해 정규식을 검증하고 다른 사람들과 공유할 수 있습니다.",
17+
"section.playground.imageAltText": "",
18+
19+
"section.practice.title": "실습",
20+
"section.practice.content": "학습 부분을 완료했다면 이제 연습할 시간입니다! 연습 섹션에서는 레벨에 따라 RegEx 튜토리얼을 통해 RegEx 지식과 연습을 테스트할 수 있습니다. 곧.",
21+
"section.practice.imageAltText": "",
22+
23+
"section.opensource.title": "오픈 소스",
24+
"section.opensource.content": "Regex 배우기는 자유롭게 이용 가능하고 모든 커뮤니티의 contributions을 환영하는 오픈소스 프로젝트입니다. 이 프로젝트를 통해 능력을 연마하고 공부하고 협업할 수 있습니다. 여기서 contribute & support 할 수 있습니다.",
25+
"section.opensource.imageAltText": ""
26+
}

0 commit comments

Comments
 (0)