Skip to content

Commit

Permalink
fix(i18n): add korean (#8498)
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode authored Aug 13, 2024
1 parent bcfd27f commit b3cbe8b
Show file tree
Hide file tree
Showing 12 changed files with 437 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export class TuiLanguageSwitcherComponent {
['german', TuiCountryIsoCode.DE],
['japan', TuiCountryIsoCode.JP],
['italian', TuiCountryIsoCode.IT],
['korean', TuiCountryIsoCode.KR],
['polish', TuiCountryIsoCode.PL],
['portuguese', TuiCountryIsoCode.PT],
['russian', TuiCountryIsoCode.RU],
Expand Down
1 change: 1 addition & 0 deletions projects/i18n/interfaces/language-names.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export type TuiLanguageName =
| 'german'
| 'italian'
| 'kazakh'
| 'korean'
| 'malay'
| 'polish'
| 'portuguese'
Expand Down
6 changes: 6 additions & 0 deletions projects/i18n/languages/korean/addon-commerce.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import {TuiLanguageCommerce} from '@taiga-ui/i18n';

export const TUI_KOREAN_LANGUAGE_ADDON_COMMERCE: TuiLanguageCommerce = {
cardNumber: ['숫자', '카드번호'],
cardExpiry: ['만료', '유효 기간:'],
};
67 changes: 67 additions & 0 deletions projects/i18n/languages/korean/addon-editor.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
import {TuiLanguageEditor} from '@taiga-ui/i18n';

export const TUI_KOREAN_LANGUAGE_ADDON_EDITOR: TuiLanguageEditor = {
colorSelectorModeNames: ['단색', '구배'],
toolbarTools: {
undo: '끄르다',
redo: '다시 하다',
font: '세례반',
fontStyle: '글꼴 스타일',
fontSize: '글꼴 크기',
bold: '용감한',
italic: '이탤릭체',
underline: '밑줄',
strikeThrough: '취소선',
justify: '신이 옳다고 하다',
justifyLeft: '왼쪽 정렬',
justifyCenter: '중앙 정렬',
justifyRight: '오른쪽으로 정렬',
justifyFull: '전체를 정당화하다',
list: '목록',
indent: '톱니 모양',
outdent: '내어쓰기',
unorderedList: '순서 없는 목록',
orderedList: '정렬된 목록',
quote: '인용하다',
foreColor: '색상',
backColor: '배경색',
hiliteColor: '하이라이트 색상',
clear: '분명한',
link: '링크',
attach: '파일 첨부',
tex: 'TeX 삽입',
code: '암호',
image: '이미지 삽입',
insertHorizontalRule: '수평선 삽입',
superscript: '어깨 기호',
subscript: '아래첨자',
insertTable: '테이블 삽입',
insertGroup: '그룹 삽입',
hiliteGroup: '하이라이트 그룹',
removeGroup: '그룹 제거',
insertAnchor: '앵커 삽입',
mergeCells: '셀 병합',
splitCells: '세포 분할',
rowsColumnsManaging: '행과 열 관리',
cellColor: '셀 색상',
setDetails: '세부',
removeDetails: '세부 정보 제거',
},
editorEditLink: {
urlExample: 'example.com',
anchorExample: '닻',
},
editorTableCommands: [
['열을 삽입하기 전에', '다음에 열 삽입'],
['행을 삽입하기 전에', '행 삽입'],
['열 삭제', '행 삭제'],
],
editorCodeOptions: ['텍스트의 코드', '블록 내 코드'],
editorFontOptions: {
small: '작은',
large: '크기가 큰',
normal: '정상',
title: '제목',
subtitle: '부제',
},
};
12 changes: 12 additions & 0 deletions projects/i18n/languages/korean/addon-preview.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import {TuiLanguagePreview} from '@taiga-ui/i18n/interfaces';

export const TUI_KOREAN_LANGUAGE_ADDON_PREVIEW: TuiLanguagePreview = {
previewTexts: {
rotate: '회전하다',
},
zoomTexts: {
zoomOut: '축소',
zoomIn: '확대하다',
reset: '다시 놓기',
},
};
10 changes: 10 additions & 0 deletions projects/i18n/languages/korean/addon-table.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import {TuiLanguageTable} from '@taiga-ui/i18n';

export const TUI_KOREAN_LANGUAGE_ADDON_TABLE: TuiLanguageTable = {
showHideText: '표시 또는 숨기기',
paginationTexts: {
pages: '페이지',
linesPerPage: '페이지당 줄 수',
of: '~의',
},
};
26 changes: 26 additions & 0 deletions projects/i18n/languages/korean/core.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import {TuiLanguageCore} from '@taiga-ui/i18n';

import {TUI_KOREAN_LANGUAGE_COUNTRIES} from './countries';

export const TUI_KOREAN_LANGUAGE_CORE: TuiLanguageCore = {
months: [
'1월',
'2월',
'3월',
'4월',
'5월',
'6월',
'7월',
'8월',
'9월',
'10월',
'11월',
'12월',
],
close: '닫다',
nothingFoundMessage: '아무것도 발견되지 않았습니다',
defaultErrorMessage: '값이 잘못되었습니다',
spinTexts: ['이전의', '다음'],
shortWeekDays: ['월요일', '화요일', '수요일', '목요일', '금요일', '토요일', '일요일'],
countries: TUI_KOREAN_LANGUAGE_COUNTRIES,
};
219 changes: 219 additions & 0 deletions projects/i18n/languages/korean/countries.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,219 @@
import {TuiCountryIsoCode} from '@taiga-ui/i18n/enums';

export const TUI_KOREAN_LANGUAGE_COUNTRIES: Record<TuiCountryIsoCode, string> = {
[TuiCountryIsoCode.AD]: 'Andorra',
[TuiCountryIsoCode.AE]: 'United Arab Emirates',
[TuiCountryIsoCode.AF]: 'Afghanistan',
[TuiCountryIsoCode.AG]: 'Antigua and Barbuda',
[TuiCountryIsoCode.BL]: 'Saint Barthélemy',
[TuiCountryIsoCode.AI]: 'Anguilla',
[TuiCountryIsoCode.AL]: 'Albania',
[TuiCountryIsoCode.AM]: 'Armenia',
[TuiCountryIsoCode.AO]: 'Angola',
[TuiCountryIsoCode.AR]: 'Argentina',
[TuiCountryIsoCode.AT]: 'Austria',
[TuiCountryIsoCode.AU]: 'Australia',
[TuiCountryIsoCode.AW]: 'Aruba',
[TuiCountryIsoCode.AZ]: 'Azerbaijan',
[TuiCountryIsoCode.BA]: 'Bosnia and Herzegovina',
[TuiCountryIsoCode.BB]: 'Barbados',
[TuiCountryIsoCode.BD]: 'Bangladesh',
[TuiCountryIsoCode.BE]: 'Belgium',
[TuiCountryIsoCode.BF]: 'Burkina Faso',
[TuiCountryIsoCode.BG]: 'Bulgaria',
[TuiCountryIsoCode.BH]: 'Bahrain',
[TuiCountryIsoCode.BI]: 'Burundi',
[TuiCountryIsoCode.BJ]: 'Benin',
[TuiCountryIsoCode.GF]: 'Guyana',
[TuiCountryIsoCode.BM]: 'Bermuda',
[TuiCountryIsoCode.BN]: 'Brunei Darussalam',
[TuiCountryIsoCode.BO]: 'Bolivia',
[TuiCountryIsoCode.BQ]: 'Bonaire, Sint Eustatius and Saba',
[TuiCountryIsoCode.BR]: 'Brazil',
[TuiCountryIsoCode.BS]: 'Bahamas',
[TuiCountryIsoCode.BT]: 'Bhutan',
[TuiCountryIsoCode.BW]: 'Botswana',
[TuiCountryIsoCode.BY]: 'Belarus',
[TuiCountryIsoCode.BZ]: 'Belize',
[TuiCountryIsoCode.CA]: 'Canada',
[TuiCountryIsoCode.CD]: 'Dem. Rep. Congo (Kinshasa)',
[TuiCountryIsoCode.CF]: 'Central African Republic',
[TuiCountryIsoCode.CG]: 'Congo (Brazzaville)',
[TuiCountryIsoCode.CH]: 'Switzerland',
[TuiCountryIsoCode.CI]: 'Ivory Coast',
[TuiCountryIsoCode.CL]: 'Chile',
[TuiCountryIsoCode.CM]: 'Cameroon',
[TuiCountryIsoCode.CN]: 'China',
[TuiCountryIsoCode.CO]: 'Colombia',
[TuiCountryIsoCode.CR]: 'Costa Rica',
[TuiCountryIsoCode.CU]: 'Cuba',
[TuiCountryIsoCode.CV]: 'Cape Verde',
[TuiCountryIsoCode.CW]: 'Curaçao',
[TuiCountryIsoCode.CY]: 'Cyprus',
[TuiCountryIsoCode.CZ]: 'Czech Republic',
[TuiCountryIsoCode.DE]: 'Germany',
[TuiCountryIsoCode.DJ]: 'Djibouti',
[TuiCountryIsoCode.DK]: 'Denmark',
[TuiCountryIsoCode.DM]: 'Dominica',
[TuiCountryIsoCode.DO]: 'Dominican Republic',
[TuiCountryIsoCode.DZ]: 'Algeria',
[TuiCountryIsoCode.EC]: 'Ecuador',
[TuiCountryIsoCode.EE]: 'Estonia',
[TuiCountryIsoCode.EG]: 'Egypt',
[TuiCountryIsoCode.ER]: 'Eritrea',
[TuiCountryIsoCode.ES]: 'Spain',
[TuiCountryIsoCode.ET]: 'Ethiopia',
[TuiCountryIsoCode.FI]: 'Finland',
[TuiCountryIsoCode.FJ]: 'Fiji',
[TuiCountryIsoCode.FK]: 'Falkland Islands',
[TuiCountryIsoCode.FM]: 'F.S. of Micronesia',
[TuiCountryIsoCode.FR]: 'France',
[TuiCountryIsoCode.GA]: 'Gabon',
[TuiCountryIsoCode.GB]: 'United Kingdom',
[TuiCountryIsoCode.GD]: 'Grenada',
[TuiCountryIsoCode.GE]: 'Georgia',
[TuiCountryIsoCode.GP]: 'Guadeloupe',
[TuiCountryIsoCode.GH]: 'Ghana',
[TuiCountryIsoCode.GI]: 'Gibraltar',
[TuiCountryIsoCode.GL]: 'Greenland',
[TuiCountryIsoCode.GM]: 'Gambia',
[TuiCountryIsoCode.GN]: 'Guinea',
[TuiCountryIsoCode.MF]: 'Saint-Martin',
[TuiCountryIsoCode.GQ]: 'Equatorial Guinea',
[TuiCountryIsoCode.GR]: 'Greece',
[TuiCountryIsoCode.GT]: 'Guatemala',
[TuiCountryIsoCode.GW]: 'Guinea-Bissau',
[TuiCountryIsoCode.GY]: 'Guyana',
[TuiCountryIsoCode.HK]: 'Hong Kong',
[TuiCountryIsoCode.HN]: 'Honduras',
[TuiCountryIsoCode.HR]: 'Croatia',
[TuiCountryIsoCode.HT]: 'Haiti',
[TuiCountryIsoCode.HU]: 'Hungary',
[TuiCountryIsoCode.ID]: 'Indonesia',
[TuiCountryIsoCode.IE]: 'Ireland',
[TuiCountryIsoCode.IL]: 'Israel',
[TuiCountryIsoCode.IN]: 'India',
[TuiCountryIsoCode.IQ]: 'Iraq',
[TuiCountryIsoCode.IR]: 'Iran',
[TuiCountryIsoCode.IS]: 'Iceland',
[TuiCountryIsoCode.IT]: 'Italy',
[TuiCountryIsoCode.JM]: 'Jamaica',
[TuiCountryIsoCode.JO]: 'Jordan',
[TuiCountryIsoCode.JP]: 'Japan',
[TuiCountryIsoCode.KE]: 'Kenya',
[TuiCountryIsoCode.KG]: 'Kyrgyzstan',
[TuiCountryIsoCode.KH]: 'Cambodia',
[TuiCountryIsoCode.KM]: 'Comoros',
[TuiCountryIsoCode.KN]: 'Saint Kitts and Nevis',
[TuiCountryIsoCode.KP]: 'Korean PDR',
[TuiCountryIsoCode.KR]: 'Rep. Korea',
[TuiCountryIsoCode.KW]: 'Kuwait',
[TuiCountryIsoCode.KY]: 'Cayman Islands',
[TuiCountryIsoCode.KZ]: 'Kazakhstan',
[TuiCountryIsoCode.LA]: 'Laos',
[TuiCountryIsoCode.LB]: 'Lebanon',
[TuiCountryIsoCode.LC]: 'Saint Lucia',
[TuiCountryIsoCode.LI]: 'Liechtenstein',
[TuiCountryIsoCode.LK]: 'Sri Lanka',
[TuiCountryIsoCode.LR]: 'Liberia',
[TuiCountryIsoCode.LS]: 'Lesotho',
[TuiCountryIsoCode.LT]: 'Lithuania',
[TuiCountryIsoCode.LU]: 'Luxembourg',
[TuiCountryIsoCode.LV]: 'Latvia',
[TuiCountryIsoCode.LY]: 'Libya',
[TuiCountryIsoCode.MA]: 'Morocco',
[TuiCountryIsoCode.MC]: 'Monaco',
[TuiCountryIsoCode.MD]: 'Moldova',
[TuiCountryIsoCode.ME]: 'Montenegro',
[TuiCountryIsoCode.MQ]: 'Martinique',
[TuiCountryIsoCode.MG]: 'Madagascar',
[TuiCountryIsoCode.MK]: 'Rep. of North Macedonia',
[TuiCountryIsoCode.ML]: 'Mali',
[TuiCountryIsoCode.MM]: 'Burma (Myanmar)',
[TuiCountryIsoCode.MN]: 'Mongolia',
[TuiCountryIsoCode.MO]: 'Macau',
[TuiCountryIsoCode.RE]: 'Réunion',
[TuiCountryIsoCode.MR]: 'Mauritania',
[TuiCountryIsoCode.MS]: 'Montserrat',
[TuiCountryIsoCode.MT]: 'Malta',
[TuiCountryIsoCode.MU]: 'Mauritius',
[TuiCountryIsoCode.MV]: 'Maldives',
[TuiCountryIsoCode.MW]: 'Malawi',
[TuiCountryIsoCode.MX]: 'Mexico',
[TuiCountryIsoCode.MY]: 'Malaysia',
[TuiCountryIsoCode.MZ]: 'Mozambique',
[TuiCountryIsoCode.NA]: 'Namibia',
[TuiCountryIsoCode.NC]: 'New Caledonia',
[TuiCountryIsoCode.NE]: 'Niger',
[TuiCountryIsoCode.NG]: 'Nigeria',
[TuiCountryIsoCode.NI]: 'Nicaragua',
[TuiCountryIsoCode.NL]: 'Netherlands',
[TuiCountryIsoCode.NO]: 'Norway',
[TuiCountryIsoCode.NP]: 'Nepal',
[TuiCountryIsoCode.NZ]: 'New Zealand',
[TuiCountryIsoCode.OM]: 'Oman',
[TuiCountryIsoCode.PA]: 'Panama',
[TuiCountryIsoCode.PE]: 'Peru',
[TuiCountryIsoCode.PF]: 'French Polynesia (Tahiti)',
[TuiCountryIsoCode.PG]: 'Papua New Guinea',
[TuiCountryIsoCode.PH]: 'Philippines',
[TuiCountryIsoCode.PK]: 'Pakistan',
[TuiCountryIsoCode.PL]: 'Poland',
[TuiCountryIsoCode.PT]: 'Portugal',
[TuiCountryIsoCode.PW]: 'Palau',
[TuiCountryIsoCode.PY]: 'Paraguay',
[TuiCountryIsoCode.QA]: 'Qatar',
[TuiCountryIsoCode.YT]: 'Mayotte',
[TuiCountryIsoCode.RO]: 'Romania',
[TuiCountryIsoCode.RS]: 'Serbia',
[TuiCountryIsoCode.RU]: 'Russia',
[TuiCountryIsoCode.RW]: 'Rwanda',
[TuiCountryIsoCode.SA]: 'Saudi Arabia',
[TuiCountryIsoCode.SB]: 'Solomon Islands',
[TuiCountryIsoCode.SC]: 'Seychelles',
[TuiCountryIsoCode.SD]: 'Sudan',
[TuiCountryIsoCode.SE]: 'Sweden',
[TuiCountryIsoCode.SG]: 'Singapore',
[TuiCountryIsoCode.SH]: 'Saint Helena',
[TuiCountryIsoCode.SI]: 'Slovenia',
[TuiCountryIsoCode.SK]: 'Slovakia',
[TuiCountryIsoCode.SL]: 'Sierra Leone',
[TuiCountryIsoCode.SM]: 'San Marino',
[TuiCountryIsoCode.SN]: 'Senegal',
[TuiCountryIsoCode.SO]: 'Somalia',
[TuiCountryIsoCode.SR]: 'Suriname',
[TuiCountryIsoCode.ST]: 'Sao Tome and Principe',
[TuiCountryIsoCode.SV]: 'El Salvador',
[TuiCountryIsoCode.SX]: 'Sint Maarten',
[TuiCountryIsoCode.SY]: 'Syrian Arab Republic',
[TuiCountryIsoCode.SZ]: 'Swaziland',
[TuiCountryIsoCode.TC]: 'Turks and Caicos',
[TuiCountryIsoCode.TD]: 'Chad',
[TuiCountryIsoCode.TG]: 'Togo',
[TuiCountryIsoCode.TH]: 'Thailand',
[TuiCountryIsoCode.TJ]: 'Tajikistan',
[TuiCountryIsoCode.TL]: 'East Timor',
[TuiCountryIsoCode.TM]: 'Turkmenistan',
[TuiCountryIsoCode.TN]: 'Tunisia',
[TuiCountryIsoCode.TO]: 'Tonga',
[TuiCountryIsoCode.TR]: 'Turkey',
[TuiCountryIsoCode.TT]: 'Trinidad and Tobago',
[TuiCountryIsoCode.TW]: 'Taiwan',
[TuiCountryIsoCode.TZ]: 'Tanzania',
[TuiCountryIsoCode.UA]: 'Ukraine',
[TuiCountryIsoCode.UG]: 'Uganda',
[TuiCountryIsoCode.US]: 'USA',
[TuiCountryIsoCode.UY]: 'Uruguay',
[TuiCountryIsoCode.UZ]: 'Uzbekistan',
[TuiCountryIsoCode.VC]: 'Saint Vincent and the Grenadines',
[TuiCountryIsoCode.VE]: 'Venezuela',
[TuiCountryIsoCode.VG]: 'British Virgin Islands',
[TuiCountryIsoCode.VN]: 'Vietnam',
[TuiCountryIsoCode.VU]: 'Vanuatu',
[TuiCountryIsoCode.WS]: 'Samoa',
[TuiCountryIsoCode.XK]: 'Kosovo',
[TuiCountryIsoCode.YE]: 'Yemen',
[TuiCountryIsoCode.ZA]: 'South Africa',
[TuiCountryIsoCode.ZM]: 'Zambia',
[TuiCountryIsoCode.ZW]: 'Zimbabwe',
};
8 changes: 8 additions & 0 deletions projects/i18n/languages/korean/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export * from './addon-commerce';
export * from './addon-editor';
export * from './addon-preview';
export * from './addon-table';
export * from './core';
export * from './countries';
export * from './kit';
export * from './korean';
Loading

0 comments on commit b3cbe8b

Please sign in to comment.