From 4495cb9032bd63a1e6da6dac04c9308fb7f6babc Mon Sep 17 00:00:00 2001 From: Maksim Ivanov Date: Mon, 5 Aug 2024 14:04:07 +0300 Subject: [PATCH] feat(i18n): add hebrew (#8242) --- .../components/language-switcher/index.ts | 1 + .../i18n/languages/hebrew/addon-commerce.ts | 6 + .../i18n/languages/hebrew/addon-editor.ts | 67 +++++ projects/i18n/languages/hebrew/addon-table.ts | 10 + projects/i18n/languages/hebrew/core.ts | 26 ++ projects/i18n/languages/hebrew/countries.ts | 249 ++++++++++++++++++ projects/i18n/languages/hebrew/hebrew.ts | 16 ++ projects/i18n/languages/hebrew/index.ts | 7 + projects/i18n/languages/hebrew/kit.ts | 72 +++++ .../i18n/languages/hebrew/ng-package.json | 5 + projects/i18n/languages/index.ts | 1 + projects/i18n/types/language-names.ts | 1 + 12 files changed, 461 insertions(+) create mode 100644 projects/i18n/languages/hebrew/addon-commerce.ts create mode 100644 projects/i18n/languages/hebrew/addon-editor.ts create mode 100644 projects/i18n/languages/hebrew/addon-table.ts create mode 100644 projects/i18n/languages/hebrew/core.ts create mode 100644 projects/i18n/languages/hebrew/countries.ts create mode 100644 projects/i18n/languages/hebrew/hebrew.ts create mode 100644 projects/i18n/languages/hebrew/index.ts create mode 100644 projects/i18n/languages/hebrew/kit.ts create mode 100644 projects/i18n/languages/hebrew/ng-package.json diff --git a/projects/addon-doc/components/language-switcher/index.ts b/projects/addon-doc/components/language-switcher/index.ts index 8b1f5c0bb84b..9fa83019f2b7 100644 --- a/projects/addon-doc/components/language-switcher/index.ts +++ b/projects/addon-doc/components/language-switcher/index.ts @@ -33,6 +33,7 @@ export class TuiDocLanguageSwitcher { ['english', 'GB'], ['french', 'FR'], ['german', 'DE'], + ['hebrew', 'IL'], ['italian', 'IT'], ['kazakh', 'KZ'], ['malay', 'MY'], diff --git a/projects/i18n/languages/hebrew/addon-commerce.ts b/projects/i18n/languages/hebrew/addon-commerce.ts new file mode 100644 index 000000000000..79f2da277dd0 --- /dev/null +++ b/projects/i18n/languages/hebrew/addon-commerce.ts @@ -0,0 +1,6 @@ +import type {TuiLanguageCommerce} from '@taiga-ui/i18n/types'; + +export const TUI_HEBREW_LANGUAGE_ADDON_COMMERCE: TuiLanguageCommerce = { + cardNumber: ['מספר', 'מספר כרטיס'], + cardExpiry: ['פג תוקף', 'בתוקף עד'], +}; diff --git a/projects/i18n/languages/hebrew/addon-editor.ts b/projects/i18n/languages/hebrew/addon-editor.ts new file mode 100644 index 000000000000..26a97e0c78b1 --- /dev/null +++ b/projects/i18n/languages/hebrew/addon-editor.ts @@ -0,0 +1,67 @@ +import type {TuiLanguageEditor} from '@taiga-ui/i18n/types'; + +export const TUI_HEBREW_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: 'כתוביות', + }, +}; diff --git a/projects/i18n/languages/hebrew/addon-table.ts b/projects/i18n/languages/hebrew/addon-table.ts new file mode 100644 index 000000000000..1827c6aa1685 --- /dev/null +++ b/projects/i18n/languages/hebrew/addon-table.ts @@ -0,0 +1,10 @@ +import type {TuiLanguageTable} from '@taiga-ui/i18n/types'; + +export const TUI_HEBREW_LANGUAGE_ADDON_TABLE: TuiLanguageTable = { + showHideText: 'הצג הסתר', + paginationTexts: { + pages: 'דפים', + linesPerPage: 'שורות בעמוד', + of: 'שֶׁל', + }, +}; diff --git a/projects/i18n/languages/hebrew/core.ts b/projects/i18n/languages/hebrew/core.ts new file mode 100644 index 000000000000..0842e35f0f0d --- /dev/null +++ b/projects/i18n/languages/hebrew/core.ts @@ -0,0 +1,26 @@ +import type {TuiLanguageCore} from '@taiga-ui/i18n/types'; + +import {TUI_HEBREW_LANGUAGE_COUNTRIES} from './countries'; + +export const TUI_HEBREW_LANGUAGE_CORE: TuiLanguageCore = { + months: [ + 'יָנוּאָר', + 'פברואר', + 'מרץ', + 'אַפּרִיל', + 'מאי', + 'יוני', + 'יולי', + 'אוגוסט', + 'סֶפּטֶמבֶּר', + 'אוֹקְטוֹבֶּר', + 'נוֹבֶמבֶּר', + 'דֵצֶמבֶּר', + ], + close: 'סגור', + nothingFoundMessage: 'שום דבר לא נמצא', + defaultErrorMessage: 'הערך לא חוקי', + spinTexts: ['קודם', 'הַבָּא'], + shortWeekDays: ['יום שני', "ג'", 'היינו עושים', "יום ה'", 'שישי', 'ישב', 'שמש'], + countries: TUI_HEBREW_LANGUAGE_COUNTRIES, +}; diff --git a/projects/i18n/languages/hebrew/countries.ts b/projects/i18n/languages/hebrew/countries.ts new file mode 100644 index 000000000000..26879c67919f --- /dev/null +++ b/projects/i18n/languages/hebrew/countries.ts @@ -0,0 +1,249 @@ +import type {TuiCountryIsoCode} from '@taiga-ui/i18n/types'; + +export const TUI_HEBREW_LANGUAGE_COUNTRIES: Record = { + AD: 'Andorra', + AE: 'United Arab Emirates', + AF: 'Afghanistan', + AG: 'Antigua & Barbuda', + AI: 'Anguilla', + AL: 'Albania', + AM: 'Armenia', + AO: 'Angola', + AR: 'Argentina', + AT: 'Austria', + AU: 'Australia', + AW: 'Aruba', + AZ: 'Azerbaijan', + BA: 'Bosnia & Herzegovina', + BB: 'Barbados', + BD: 'Bangladesh', + BE: 'Belgium', + BF: 'Burkina Faso', + BG: 'Bulgaria', + BH: 'Bahrain', + BI: 'Burundi', + BJ: 'Benin', + BL: 'St. Barthélemy', + BM: 'Bermuda', + BN: 'Brunei', + BO: 'Bolivia', + BQ: 'Caribbean Netherlands', + BR: 'Brazil', + BS: 'Bahamas', + BT: 'Bhutan', + BW: 'Botswana', + BY: 'Belarus', + BZ: 'Belize', + CA: 'Canada', + CD: 'Congo - Kinshasa', + CF: 'Central African Republic', + CG: 'Congo - Brazzaville', + CH: 'Switzerland', + CI: 'Côte d’Ivoire', + CL: 'Chile', + CM: 'Cameroon', + CN: 'China', + CO: 'Colombia', + CR: 'Costa Rica', + CU: 'Cuba', + CV: 'Cape Verde', + CW: 'Curaçao', + CY: 'Cyprus', + CZ: 'Czechia', + DE: 'Germany', + DJ: 'Djibouti', + DK: 'Denmark', + DM: 'Dominica', + DO: 'Dominican Republic', + DZ: 'Algeria', + EC: 'Ecuador', + EE: 'Estonia', + EG: 'Egypt', + ER: 'Eritrea', + ES: 'Spain', + ET: 'Ethiopia', + FI: 'Finland', + FJ: 'Fiji', + FK: 'Falkland Islands', + FM: 'Federated States of Micronesia', + FR: 'France', + GA: 'Gabon', + GB: 'United Kingdom', + GD: 'Grenada', + GE: 'Georgia', + GF: 'French Guiana', + GH: 'Ghana', + GI: 'Gibraltar', + GL: 'Greenland', + GM: 'Gambia', + GN: 'Guinea', + GP: 'Guadeloupe', + GQ: 'Equatorial Guinea', + GR: 'Greece', + GT: 'Guatemala', + GW: 'Guinea-Bissau', + GY: 'Guyana', + HK: 'Hong Kong', + HN: 'Honduras', + HR: 'Croatia', + HT: 'Haiti', + HU: 'Hungary', + ID: 'Indonesia', + IE: 'Ireland', + IL: 'Israel', + IN: 'India', + IQ: 'Iraq', + IR: 'Iran', + IS: 'Iceland', + IT: 'Italy', + JM: 'Jamaica', + JO: 'Jordan', + JP: 'Japan', + KE: 'Kenya', + KG: 'Kyrgyzstan', + KH: 'Cambodia', + KM: 'Comoros', + KN: 'St. Kitts & Nevis', + KP: 'North Korea', + KR: 'South Korea', + KW: 'Kuwait', + KY: 'Cayman Islands', + KZ: 'Kazakhstan', + LA: 'Laos', + LB: 'Lebanon', + LC: 'St. Lucia', + LI: 'Liechtenstein', + LK: 'Sri Lanka', + LR: 'Liberia', + LS: 'Lesotho', + LT: 'Lithuania', + LU: 'Luxembourg', + LV: 'Latvia', + LY: 'Libya', + MA: 'Morocco', + MC: 'Monaco', + MD: 'Moldova', + ME: 'Montenegro', + MF: 'St. Martin', + MG: 'Madagascar', + MK: 'North Macedonia', + ML: 'Mali', + MM: 'Myanmar (Burma)', + MN: 'Mongolia', + MO: 'Macao', + MQ: 'Martinique', + MR: 'Mauritania', + MS: 'Montserrat', + MT: 'Malta', + MU: 'Mauritius', + MV: 'Maldives', + MW: 'Malawi', + MX: 'Mexico', + MY: 'Malaysia', + MZ: 'Mozambique', + NA: 'Namibia', + NC: 'New Caledonia', + NE: 'Niger', + NG: 'Nigeria', + NI: 'Nicaragua', + NL: 'Netherlands', + NO: 'Norway', + NP: 'Nepal', + NZ: 'New Zealand', + OM: 'Oman', + PA: 'Panama', + PE: 'Peru', + PF: 'French Polynesia', + PG: 'Papua New Guinea', + PH: 'Philippines', + PK: 'Pakistan', + PL: 'Poland', + PT: 'Portugal', + PW: 'Palau', + PY: 'Paraguay', + QA: 'Qatar', + RE: 'Réunion', + RO: 'Romania', + RS: 'Serbia', + RU: 'Russia', + RW: 'Rwanda', + SA: 'Saudi Arabia', + SB: 'Solomon Islands', + SC: 'Seychelles', + SD: 'Sudan', + SE: 'Sweden', + SG: 'Singapore', + SH: 'St. Helena', + SI: 'Slovenia', + SK: 'Slovakia', + SL: 'Sierra Leone', + SM: 'San Marino', + SN: 'Senegal', + SO: 'Somalia', + SR: 'Suriname', + ST: 'São Tomé & Príncipe', + SV: 'El Salvador', + SX: 'Sint Maarten', + SY: 'Syria', + SZ: 'Eswatini', + TC: 'Turks & Caicos Islands', + TD: 'Chad', + TG: 'Togo', + TH: 'Thailand', + TJ: 'Tajikistan', + TL: 'Timor-Leste', + TM: 'Turkmenistan', + TN: 'Tunisia', + TO: 'Tonga', + TR: 'Türkiye', + TT: 'Trinidad & Tobago', + TW: 'Taiwan', + TZ: 'Tanzania', + UA: 'Ukraine', + UG: 'Uganda', + US: 'United States', + UY: 'Uruguay', + UZ: 'Uzbekistan', + VC: 'St. Vincent & Grenadines', + VE: 'Venezuela', + VG: 'British Virgin Islands', + VN: 'Vietnam', + VU: 'Vanuatu', + WS: 'Samoa', + XK: 'Kosovo', + YE: 'Yemen', + YT: 'Mayotte', + ZA: 'South Africa', + ZM: 'Zambia', + ZW: 'Zimbabwe', + AC: 'Ascension Island', + AS: 'American Samoa', + AX: 'Åland Islands', + CC: 'Cocos (Keeling) Islands', + CK: 'Cook Islands', + CX: 'Christmas Island', + EH: 'Western Sahara', + FO: 'Faroe Islands', + GG: 'Guernsey', + GU: 'Guam', + IM: 'Isle of Man', + JE: 'Jersey', + IO: 'British Indian Ocean Territory', + KI: 'Kiribati', + MH: 'Marshall Islands', + MP: 'Northern Mariana Islands', + NF: 'Norfolk Island', + NR: 'Nauru', + NU: 'Niue', + PM: 'Saint Pierre and Miquelon', + PR: 'Puerto Rico', + PS: 'Palestine', + SJ: 'Svalbard and Jan Mayen', + SS: 'South Sudan', + TA: 'Tristan da Cunha', + TK: 'Tokelau', + TV: 'Tuvalu', + VA: 'Holy See', + VI: 'Virgin Islands', + WF: 'Wallis and Futuna', +}; diff --git a/projects/i18n/languages/hebrew/hebrew.ts b/projects/i18n/languages/hebrew/hebrew.ts new file mode 100644 index 000000000000..da1f27493a43 --- /dev/null +++ b/projects/i18n/languages/hebrew/hebrew.ts @@ -0,0 +1,16 @@ +import type {TuiLanguage} from '@taiga-ui/i18n/types'; + +import {TUI_HEBREW_LANGUAGE_ADDON_COMMERCE} from './addon-commerce'; +import {TUI_HEBREW_LANGUAGE_ADDON_EDITOR} from './addon-editor'; +import {TUI_HEBREW_LANGUAGE_ADDON_TABLE} from './addon-table'; +import {TUI_HEBREW_LANGUAGE_CORE} from './core'; +import {TUI_HEBREW_LANGUAGE_KIT} from './kit'; + +export const TUI_HEBREW_LANGUAGE: TuiLanguage = { + name: 'hebrew', + ...TUI_HEBREW_LANGUAGE_CORE, + ...TUI_HEBREW_LANGUAGE_KIT, + ...TUI_HEBREW_LANGUAGE_ADDON_TABLE, + ...TUI_HEBREW_LANGUAGE_ADDON_COMMERCE, + ...TUI_HEBREW_LANGUAGE_ADDON_EDITOR, +}; diff --git a/projects/i18n/languages/hebrew/index.ts b/projects/i18n/languages/hebrew/index.ts new file mode 100644 index 000000000000..58b80ffa6359 --- /dev/null +++ b/projects/i18n/languages/hebrew/index.ts @@ -0,0 +1,7 @@ +export * from './addon-commerce'; +export * from './addon-editor'; +export * from './addon-table'; +export * from './core'; +export * from './countries'; +export * from './hebrew'; +export * from './kit'; diff --git a/projects/i18n/languages/hebrew/kit.ts b/projects/i18n/languages/hebrew/kit.ts new file mode 100644 index 000000000000..b6ba435f2303 --- /dev/null +++ b/projects/i18n/languages/hebrew/kit.ts @@ -0,0 +1,72 @@ +import type {TuiLanguageKit} from '@taiga-ui/i18n/types'; + +export const TUI_HEBREW_LANGUAGE_KIT: TuiLanguageKit = { + cancel: 'לְבַטֵל', + done: 'בוצע', + more: 'יותר', + otherDate: 'תאריך אחר', + showAll: 'הצג הכול', + hide: 'להתחבא', + mobileCalendarTexts: ['בחר יום', 'בחר טווח', 'בחר ימים'], + range: ['מ', 'ל'], + countTexts: ['ועוד', 'מִינוּס'], + time: { + 'HH:MM': 'HH:MM', + 'HH:MM:SS': 'HH:MM:SS', + 'HH:MM:SS.MSS': 'HH:MM:SS.MSS', + }, + dateTexts: { + DMY: 'dd/mm/yyyy', + MDY: 'mm/dd/yyyy', + YMD: 'yyyy/mm/dd', + }, + digitalInformationUnits: ['B', 'KiB', 'MiB'], + passwordTexts: ['הראה סיסמה', 'הסתר סיסמא'], + copyTexts: ['עותק', 'מוּעֲתָק'], + shortCalendarMonths: [ + 'ינואר', + 'פברואר', + 'לְקַלְקֵל', + 'אפריל', + 'מאי', + 'יוני', + 'יולי', + 'אוגוסט', + 'ספטמבר', + 'אוקטובר', + 'נובמבר', + 'דצמבר', + ], + pagination: ['עמוד קודם', 'עמוד הבא'], + fileTexts: { + loadingError: 'העלאה נכשלה', + preview: 'תצוגה מקדימה', + remove: 'לְהַסִיר', + }, + inputFileTexts: { + defaultLabelSingle: 'או לרדת\u00A0זה\u00A0כאן', + defaultLabelMultiple: 'או לרדת\u00A0אוֹתָם\u00A0כאן', + defaultLinkSingle: 'בחר קובץ', + defaultLinkMultiple: 'לבחור קבצים', + maxSizeRejectionReason: 'הקובץ גדול מ', + formatRejectionReason: 'סוג קובץ שגוי', + drop: 'שחרר את הקובץ כאן', + dropMultiple: 'זרוק קבצים כאן', + }, + multiSelectTexts: { + all: 'בחר הכל', + none: 'אל תבחר באף אחת מהאפשרויות', + }, + confirm: { + yes: 'כן', + no: 'לא', + }, + previewTexts: { + rotate: 'להתחלף', + }, + zoomTexts: { + zoomOut: 'להקטין את התצוגה', + zoomIn: 'לְהִתְמַקֵד', + reset: 'אִתחוּל', + }, +}; diff --git a/projects/i18n/languages/hebrew/ng-package.json b/projects/i18n/languages/hebrew/ng-package.json new file mode 100644 index 000000000000..bebf62dcb5e5 --- /dev/null +++ b/projects/i18n/languages/hebrew/ng-package.json @@ -0,0 +1,5 @@ +{ + "lib": { + "entryFile": "index.ts" + } +} diff --git a/projects/i18n/languages/index.ts b/projects/i18n/languages/index.ts index 1803d67329f6..d4b12f86501d 100644 --- a/projects/i18n/languages/index.ts +++ b/projects/i18n/languages/index.ts @@ -4,6 +4,7 @@ export * from '@taiga-ui/i18n/languages/dutch'; export * from '@taiga-ui/i18n/languages/english'; export * from '@taiga-ui/i18n/languages/french'; export * from '@taiga-ui/i18n/languages/german'; +export * from '@taiga-ui/i18n/languages/hebrew'; export * from '@taiga-ui/i18n/languages/italian'; export * from '@taiga-ui/i18n/languages/kazakh'; export * from '@taiga-ui/i18n/languages/malay'; diff --git a/projects/i18n/types/language-names.ts b/projects/i18n/types/language-names.ts index 74670df037a9..b074ac77cb1f 100644 --- a/projects/i18n/types/language-names.ts +++ b/projects/i18n/types/language-names.ts @@ -6,6 +6,7 @@ export type TuiLanguageName = | 'english' | 'french' | 'german' + | 'hebrew' | 'italian' | 'kazakh' | 'malay'