Skip to content

Commit

Permalink
feat(module:theme): adding Korean locale (#486)
Browse files Browse the repository at this point in the history
* feat(module:theme): adding Korean locale

* Update packages/schematics/docs/plugin.zh-CN.md

Co-Authored-By: revfactory <revfactory@gmail.com>

* feat(module:theme): adding Korean locale

applied PR review


Co-authored-by: 卡色 <cipchk@qq.com>
  • Loading branch information
revfactory and cipchk committed Mar 25, 2019
1 parent f42861a commit 5e3ad9c
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/schematics/core/lang.config.ts
Expand Up @@ -18,6 +18,7 @@ export const LANGS_CONFIG = [
{ langs: ['tr'], zorro: 'tr_TR', delon: 'tr_TR', fileName: 'tr-TR.json' },
{ langs: ['pl'], zorro: 'pl_PL', delon: 'pl_PL', fileName: 'pl-PL.json' },
{ langs: ['el'], zorro: 'el_GR', delon: 'el_GR', fileName: 'el-GR.json' },
{ langs: ['ko'], zorro: 'ko_KR', delon: 'ko_KR', fileName: 'ko-KR.json' },
];

export function getLangConfig(lang: string): any {
Expand Down
1 change: 1 addition & 0 deletions packages/schematics/docs/plugin.en-US.md
Expand Up @@ -106,6 +106,7 @@ ng g ng-alain:plugin defaultLanguage --defaultLanguage=zh-tw
| Turkish | tr | tr | tr_TR | tr_TR |
| Polish | pl | pl | pl_PL | pl_PL |
| Greek | el | el | el_GR | el_GR |
| Korean | ko | ko | ko_KR | ko_KR |

### networkEnv

Expand Down
1 change: 1 addition & 0 deletions packages/schematics/docs/plugin.zh-CN.md
Expand Up @@ -110,6 +110,7 @@ ng g ng-alain:plugin defaultLanguage --defaultLanguage=zh-tw
| 土耳其语 | tr | tr | tr_TR | tr_TR |
| 波兰语 | pl | pl | pl_PL | pl_PL |
| 希腊语 | el | el | el_GR | el_GR |
| 朝鲜语 | ko | ko | ko_KR | ko_KR |

### networkEnv

Expand Down
1 change: 1 addition & 0 deletions packages/theme/docs/locale.en-US.md
Expand Up @@ -48,6 +48,7 @@ Note: `en_US` is the package name, follow below.
| Turkish | tr_TR |
| Polish | pl_PL |
| Greek | el_GR |
| Korean | ko_KR |

## Add a new language

Expand Down
1 change: 1 addition & 0 deletions packages/theme/docs/locale.zh-CN.md
Expand Up @@ -48,6 +48,7 @@ switchLanguage() {
| 土耳其语 | tr_TR |
| 波兰语 | pl_PL |
| 希腊语 | el_GR |
| 朝鲜语 | ko_KR |

## 增加语言包

Expand Down
40 changes: 40 additions & 0 deletions packages/theme/src/locale/languages/ko-KR.ts
@@ -0,0 +1,40 @@
import { FullLocaleData } from '../locale.types';

export default {
abbr: 'ko-KR',
exception: {
403: `죄송합니다.이 페이지에 액세스 할 수 없습니다.`,
404: `죄송합니다. 해당 페이지가 없습니다.`,
500: `죄송합니다, 서버 오류가 있습니다.`,
backToHome: '홈으로 돌아갑니다.',
},
noticeIcon: {
emptyText: '데이터 없음',
clearText: '지우기',
},
reuseTab: {
close: '탭 닫기',
closeOther: '다른 탭 닫기',
closeRight: '오른쪽 탭 닫기',
clear: '탭 지우기',
},
tagSelect: {
expand: '펼치기',
collapse: '접기',
},
miniProgress: {
target: '대상: ',
},
st: {
total: '전체 {{total}}건',
},
sf: {
submit: '제출',
reset: '재설정',
search: '검색',
edit: '저장',
addText: '추가',
removeText: '제거',
checkAllText: '모두 확인',
},
} as FullLocaleData;
1 change: 1 addition & 0 deletions packages/theme/src/locale/public_api.ts
Expand Up @@ -9,3 +9,4 @@ export { default as zh_TW } from './languages/zh-TW';
export { default as tr_TR } from './languages/tr-TR';
export { default as pl_PL } from './languages/pl-PL';
export { default as el_GR } from './languages/el-GR';
export { default as ko_KR } from './languages/ko-KR';

0 comments on commit 5e3ad9c

Please sign in to comment.