Skip to content

Commit

Permalink
feat(i18n): add hebrew (#8242)
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode authored Aug 5, 2024
1 parent 47ac23e commit 4495cb9
Show file tree
Hide file tree
Showing 12 changed files with 461 additions and 0 deletions.
1 change: 1 addition & 0 deletions projects/addon-doc/components/language-switcher/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export class TuiDocLanguageSwitcher {
['english', 'GB'],
['french', 'FR'],
['german', 'DE'],
['hebrew', 'IL'],
['italian', 'IT'],
['kazakh', 'KZ'],
['malay', 'MY'],
Expand Down
6 changes: 6 additions & 0 deletions projects/i18n/languages/hebrew/addon-commerce.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import type {TuiLanguageCommerce} from '@taiga-ui/i18n/types';

export const TUI_HEBREW_LANGUAGE_ADDON_COMMERCE: TuiLanguageCommerce = {
cardNumber: ['מספר', 'מספר כרטיס'],
cardExpiry: ['פג תוקף', 'בתוקף עד'],
};
67 changes: 67 additions & 0 deletions projects/i18n/languages/hebrew/addon-editor.ts
Original file line number Diff line number Diff line change
@@ -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: 'כתוביות',
},
};
10 changes: 10 additions & 0 deletions projects/i18n/languages/hebrew/addon-table.ts
Original file line number Diff line number Diff line change
@@ -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: 'שֶׁל',
},
};
26 changes: 26 additions & 0 deletions projects/i18n/languages/hebrew/core.ts
Original file line number Diff line number Diff line change
@@ -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,
};
249 changes: 249 additions & 0 deletions projects/i18n/languages/hebrew/countries.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,249 @@
import type {TuiCountryIsoCode} from '@taiga-ui/i18n/types';

export const TUI_HEBREW_LANGUAGE_COUNTRIES: Record<TuiCountryIsoCode, string> = {
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',
};
16 changes: 16 additions & 0 deletions projects/i18n/languages/hebrew/hebrew.ts
Original file line number Diff line number Diff line change
@@ -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,
};
7 changes: 7 additions & 0 deletions projects/i18n/languages/hebrew/index.ts
Original file line number Diff line number Diff line change
@@ -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';
Loading

0 comments on commit 4495cb9

Please sign in to comment.