From 3a898041d8494ec5699ccda50bf2f688871a706e Mon Sep 17 00:00:00 2001 From: pubiqq Date: Thu, 11 Jan 2024 10:05:25 +0300 Subject: [PATCH] feat(i18n): add Belarusian translation --- .../addon-commerce/enums/currency-code.ts | 3 +- projects/addon-commerce/enums/currency.ts | 8 + .../language-switcher.component.ts | 5 +- .../customization/i18n/app.esbuild.module.md | 2 + projects/i18n/README.md | 1 + projects/i18n/interfaces/language-names.ts | 1 + .../languages/belarusian/addon-commerce.ts | 6 + .../i18n/languages/belarusian/addon-editor.ts | 67 ++++++ .../languages/belarusian/addon-preview.ts | 12 + .../i18n/languages/belarusian/addon-table.ts | 10 + .../i18n/languages/belarusian/belarusian.ts | 18 ++ projects/i18n/languages/belarusian/core.ts | 26 +++ .../i18n/languages/belarusian/countries.ts | 219 ++++++++++++++++++ projects/i18n/languages/belarusian/index.ts | 8 + projects/i18n/languages/belarusian/kit.ts | 64 +++++ .../i18n/languages/belarusian/ng-package.json | 5 + projects/i18n/languages/index.ts | 1 + 17 files changed, 452 insertions(+), 4 deletions(-) create mode 100644 projects/i18n/languages/belarusian/addon-commerce.ts create mode 100644 projects/i18n/languages/belarusian/addon-editor.ts create mode 100644 projects/i18n/languages/belarusian/addon-preview.ts create mode 100644 projects/i18n/languages/belarusian/addon-table.ts create mode 100644 projects/i18n/languages/belarusian/belarusian.ts create mode 100644 projects/i18n/languages/belarusian/core.ts create mode 100644 projects/i18n/languages/belarusian/countries.ts create mode 100644 projects/i18n/languages/belarusian/index.ts create mode 100644 projects/i18n/languages/belarusian/kit.ts create mode 100644 projects/i18n/languages/belarusian/ng-package.json diff --git a/projects/addon-commerce/enums/currency-code.ts b/projects/addon-commerce/enums/currency-code.ts index 8cc345e1a381..c27410eba96f 100644 --- a/projects/addon-commerce/enums/currency-code.ts +++ b/projects/addon-commerce/enums/currency-code.ts @@ -50,13 +50,12 @@ export enum TuiCurrencyCode { Baht = '764', /** - * * Belarusian ruble * * @description Numeric code: 933 * @description Alphabetic code: BYN * @description Countries and territories: Belarus - * @description Currency symbol: Rbl + * @description Currency symbol: Br */ BelarusianRuble = '933', diff --git a/projects/addon-commerce/enums/currency.ts b/projects/addon-commerce/enums/currency.ts index 9c1daa11df74..ab7dafde7cd9 100644 --- a/projects/addon-commerce/enums/currency.ts +++ b/projects/addon-commerce/enums/currency.ts @@ -42,6 +42,14 @@ export enum TuiCurrency { */ Baht = 'THB', + /** + * Belarusian ruble + * + * @description Numeric code: 933 + * @description Alphabetic code: BYN + * @description Countries and territories: Belarus + * @description Currency symbol: Br + */ BelarusianRuble = 'BYN', /** diff --git a/projects/addon-doc/components/language-switcher/language-switcher.component.ts b/projects/addon-doc/components/language-switcher/language-switcher.component.ts index 24ef27044ab7..222768b5c9e9 100644 --- a/projects/addon-doc/components/language-switcher/language-switcher.component.ts +++ b/projects/addon-doc/components/language-switcher/language-switcher.component.ts @@ -17,20 +17,21 @@ export class TuiLanguageSwitcherComponent { readonly language = new FormControl(tuiCapitalizeFirstLetter(this.switcher.language)); readonly flags = new Map([ + ['belarusian', TuiCountryIsoCode.BY], ['chinese', TuiCountryIsoCode.CN], ['dutch', TuiCountryIsoCode.NL], ['english', TuiCountryIsoCode.GB], ['french', TuiCountryIsoCode.FR], ['german', TuiCountryIsoCode.DE], ['italian', TuiCountryIsoCode.IT], + ['kazakh', TuiCountryIsoCode.KZ], + ['malay', TuiCountryIsoCode.MY], ['polish', TuiCountryIsoCode.PL], ['portuguese', TuiCountryIsoCode.PT], ['russian', TuiCountryIsoCode.RU], ['spanish', TuiCountryIsoCode.ES], ['turkish', TuiCountryIsoCode.TR], ['ukrainian', TuiCountryIsoCode.UA], - ['kazakh', TuiCountryIsoCode.KZ], - ['malay', TuiCountryIsoCode.MY], ['vietnamese', TuiCountryIsoCode.VN], ]); diff --git a/projects/demo/src/modules/customization/i18n/app.esbuild.module.md b/projects/demo/src/modules/customization/i18n/app.esbuild.module.md index 9000a96b43a6..70aa49c62f04 100644 --- a/projects/demo/src/modules/customization/i18n/app.esbuild.module.md +++ b/projects/demo/src/modules/customization/i18n/app.esbuild.module.md @@ -10,6 +10,8 @@ import {tuiLanguageSwitcher} from '@taiga-ui/i18n/switch'; // ... tuiLanguageSwitcher(async (language: TuiLanguageName): Promise => { switch (language) { + case `belarusian`: + return import(`@taiga-ui/i18n/languages/belarusian`); case `chinese`: return import(`@taiga-ui/i18n/languages/chinese`); case `dutch`: diff --git a/projects/i18n/README.md b/projects/i18n/README.md index 0d26ce03cc0d..e503fdfb25e9 100644 --- a/projects/i18n/README.md +++ b/projects/i18n/README.md @@ -16,6 +16,7 @@ Supported languages: | -------------------- | :---------------------: | | English (by default) | TUI_ENGLISH_LANGUAGE | | Russian | TUI_RUSSIAN_LANGUAGE | +| Belarusian | TUI_BELARUSIAN_LANGUAGE | | Spanish | TUI_SPANISH_LANGUAGE | | German | TUI_GERMAN_LANGUAGE | | Turkish | TUI_TURKISH_LANGUAGE | diff --git a/projects/i18n/interfaces/language-names.ts b/projects/i18n/interfaces/language-names.ts index ee68c866556f..74670df037a9 100644 --- a/projects/i18n/interfaces/language-names.ts +++ b/projects/i18n/interfaces/language-names.ts @@ -1,5 +1,6 @@ export type TuiLanguageName = | string + | 'belarusian' | 'chinese' | 'dutch' | 'english' diff --git a/projects/i18n/languages/belarusian/addon-commerce.ts b/projects/i18n/languages/belarusian/addon-commerce.ts new file mode 100644 index 000000000000..8850cc918fa1 --- /dev/null +++ b/projects/i18n/languages/belarusian/addon-commerce.ts @@ -0,0 +1,6 @@ +import {TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; + +export const TUI_BELARUSIAN_LANGUAGE_ADDON_COMMERCE: TuiLanguageCommerce = { + cardNumber: ['Нумар', 'Нумар карты'], + cardExpiry: ['Тэрмін', 'Тэрмін дзеяння'], +}; diff --git a/projects/i18n/languages/belarusian/addon-editor.ts b/projects/i18n/languages/belarusian/addon-editor.ts new file mode 100644 index 000000000000..488076464e52 --- /dev/null +++ b/projects/i18n/languages/belarusian/addon-editor.ts @@ -0,0 +1,67 @@ +import {TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; + +export const TUI_BELARUSIAN_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: 'Колер тэксту', + hiliteColor: 'Колер вылучэння', + backColor: 'Колер фону', + 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: ['Inline-код', 'Блок кода'], + editorFontOptions: { + small: 'Малы', + normal: 'Звычайны', + large: 'Вялікі', + title: 'Загаловак', + subtitle: 'Падзагаловак', + }, +}; diff --git a/projects/i18n/languages/belarusian/addon-preview.ts b/projects/i18n/languages/belarusian/addon-preview.ts new file mode 100644 index 000000000000..3f71f0678c32 --- /dev/null +++ b/projects/i18n/languages/belarusian/addon-preview.ts @@ -0,0 +1,12 @@ +import {TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; + +export const TUI_BELARUSIAN_LANGUAGE_ADDON_PREVIEW: TuiLanguagePreview = { + previewTexts: { + rotate: 'Павярнуць', + }, + zoomTexts: { + zoomIn: 'Павялічыць', + zoomOut: 'Паменшыць', + reset: 'Скінуць маштаб', + }, +}; diff --git a/projects/i18n/languages/belarusian/addon-table.ts b/projects/i18n/languages/belarusian/addon-table.ts new file mode 100644 index 000000000000..d9e4ba6c0d32 --- /dev/null +++ b/projects/i18n/languages/belarusian/addon-table.ts @@ -0,0 +1,10 @@ +import {TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; + +export const TUI_BELARUSIAN_LANGUAGE_ADDON_TABLE: TuiLanguageTable = { + showHideText: 'Паказаць/Схаваць', + paginationTexts: { + pages: 'Старонак', + linesPerPage: 'Радкоў на старонку', + of: 'з', + }, +}; diff --git a/projects/i18n/languages/belarusian/belarusian.ts b/projects/i18n/languages/belarusian/belarusian.ts new file mode 100644 index 000000000000..a1f530ec5aca --- /dev/null +++ b/projects/i18n/languages/belarusian/belarusian.ts @@ -0,0 +1,18 @@ +import {TuiLanguage} from '@taiga-ui/i18n/interfaces'; + +import {TUI_BELARUSIAN_LANGUAGE_ADDON_COMMERCE} from './addon-commerce'; +import {TUI_BELARUSIAN_LANGUAGE_ADDON_EDITOR} from './addon-editor'; +import {TUI_BELARUSIAN_LANGUAGE_ADDON_PREVIEW} from './addon-preview'; +import {TUI_BELARUSIAN_LANGUAGE_ADDON_TABLE} from './addon-table'; +import {TUI_BELARUSIAN_LANGUAGE_CORE} from './core'; +import {TUI_BELARUSIAN_LANGUAGE_KIT} from './kit'; + +export const TUI_BELARUSIAN_LANGUAGE: TuiLanguage = { + name: 'belarusian', + ...TUI_BELARUSIAN_LANGUAGE_CORE, + ...TUI_BELARUSIAN_LANGUAGE_KIT, + ...TUI_BELARUSIAN_LANGUAGE_ADDON_COMMERCE, + ...TUI_BELARUSIAN_LANGUAGE_ADDON_TABLE, + ...TUI_BELARUSIAN_LANGUAGE_ADDON_EDITOR, + ...TUI_BELARUSIAN_LANGUAGE_ADDON_PREVIEW, +}; diff --git a/projects/i18n/languages/belarusian/core.ts b/projects/i18n/languages/belarusian/core.ts new file mode 100644 index 000000000000..5e24615a74ad --- /dev/null +++ b/projects/i18n/languages/belarusian/core.ts @@ -0,0 +1,26 @@ +import {TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; + +import {TUI_BELARUSIAN_LANGUAGE_COUNTRIES} from './countries'; + +export const TUI_BELARUSIAN_LANGUAGE_CORE: TuiLanguageCore = { + months: [ + 'Студзень', + 'Люты', + 'Сакавік', + 'Красавік', + 'Май', + 'Чэрвень', + 'Ліпень', + 'Жнівень', + 'Верасень', + 'Кастрычнік', + 'Лістапад', + 'Снежань', + ], + close: 'Закрыць', + nothingFoundMessage: 'Нічога не знойдзена', + defaultErrorMessage: 'Недапушчальнае значэнне', + spinTexts: ['Папярэдні', 'Наступны'], + shortWeekDays: ['Пн', 'Аў', 'Ср', 'Чц', 'Пт', 'Сб', 'Нд'], + countries: TUI_BELARUSIAN_LANGUAGE_COUNTRIES, +}; diff --git a/projects/i18n/languages/belarusian/countries.ts b/projects/i18n/languages/belarusian/countries.ts new file mode 100644 index 000000000000..731148f53df7 --- /dev/null +++ b/projects/i18n/languages/belarusian/countries.ts @@ -0,0 +1,219 @@ +import {TuiCountryIsoCode} from '@taiga-ui/i18n/enums'; + +export const TUI_BELARUSIAN_LANGUAGE_COUNTRIES: Record = { + [TuiCountryIsoCode.AD]: 'Андора', + [TuiCountryIsoCode.AE]: 'Аб’яднаныя Арабскія Эміраты', + [TuiCountryIsoCode.AF]: 'Афганістан', + [TuiCountryIsoCode.AG]: 'Антыгуа і Барбуда', + [TuiCountryIsoCode.AI]: 'Ангілья', + [TuiCountryIsoCode.AL]: 'Албанія', + [TuiCountryIsoCode.AM]: 'Арменія', + [TuiCountryIsoCode.AO]: 'Ангола', + [TuiCountryIsoCode.AR]: 'Аргенціна', + [TuiCountryIsoCode.AT]: 'Аўстрыя', + [TuiCountryIsoCode.AU]: 'Аўстралія', + [TuiCountryIsoCode.AW]: 'Аруба', + [TuiCountryIsoCode.AZ]: 'Азербайджан', + [TuiCountryIsoCode.BA]: 'Боснія і Герцагавіна', + [TuiCountryIsoCode.BB]: 'Барбадас', + [TuiCountryIsoCode.BD]: 'Бангладэш', + [TuiCountryIsoCode.BE]: 'Бельгія', + [TuiCountryIsoCode.BF]: 'Буркіна-Фасо', + [TuiCountryIsoCode.BG]: 'Балгарыя', + [TuiCountryIsoCode.BH]: 'Бахрэйн', + [TuiCountryIsoCode.BI]: 'Бурундзі', + [TuiCountryIsoCode.BJ]: 'Бенін', + [TuiCountryIsoCode.BL]: 'Сен-Бартэльмі', + [TuiCountryIsoCode.BM]: 'Бермудскія астравы', + [TuiCountryIsoCode.BN]: 'Бруней', + [TuiCountryIsoCode.BO]: 'Балівія', + [TuiCountryIsoCode.BQ]: 'Карыбскія Нідэрланды', + [TuiCountryIsoCode.BR]: 'Бразілія', + [TuiCountryIsoCode.BS]: 'Багамскія астравы', + [TuiCountryIsoCode.BT]: 'Бутан', + [TuiCountryIsoCode.BW]: 'Батсвана', + [TuiCountryIsoCode.BY]: 'Беларусь', + [TuiCountryIsoCode.BZ]: 'Беліз', + [TuiCountryIsoCode.CA]: 'Канада', + [TuiCountryIsoCode.CD]: 'Конга - Кіншаса', + [TuiCountryIsoCode.CF]: 'Цэнтральна-Афрыканская Рэспубліка', + [TuiCountryIsoCode.CG]: 'Конга - Бразавіль', + [TuiCountryIsoCode.CH]: 'Швейцарыя', + [TuiCountryIsoCode.CI]: 'Кот-д’Івуар', + [TuiCountryIsoCode.CL]: 'Чылі', + [TuiCountryIsoCode.CM]: 'Камерун', + [TuiCountryIsoCode.CN]: 'Кітай', + [TuiCountryIsoCode.CO]: 'Калумбія', + [TuiCountryIsoCode.CR]: 'Коста-Рыка', + [TuiCountryIsoCode.CU]: 'Куба', + [TuiCountryIsoCode.CV]: 'Каба-Вердэ', + [TuiCountryIsoCode.CW]: 'Кюрасаа', + [TuiCountryIsoCode.CY]: 'Кіпр', + [TuiCountryIsoCode.CZ]: 'Чэхія', + [TuiCountryIsoCode.DE]: 'Германія', + [TuiCountryIsoCode.DJ]: 'Джыбуці', + [TuiCountryIsoCode.DK]: 'Данія', + [TuiCountryIsoCode.DM]: 'Дамініка', + [TuiCountryIsoCode.DO]: 'Дамініканская Рэспубліка', + [TuiCountryIsoCode.DZ]: 'Алжыр', + [TuiCountryIsoCode.EC]: 'Эквадор', + [TuiCountryIsoCode.EE]: 'Эстонія', + [TuiCountryIsoCode.EG]: 'Егіпет', + [TuiCountryIsoCode.ER]: 'Эрытрэя', + [TuiCountryIsoCode.ES]: 'Іспанія', + [TuiCountryIsoCode.ET]: 'Эфіопія', + [TuiCountryIsoCode.FI]: 'Фінляндыя', + [TuiCountryIsoCode.FJ]: 'Фіджы', + [TuiCountryIsoCode.FK]: 'Фалклендскія астравы', + [TuiCountryIsoCode.FM]: 'Федэратыўныя Штаты Мікранезіі', + [TuiCountryIsoCode.FR]: 'Францыя', + [TuiCountryIsoCode.GA]: 'Габон', + [TuiCountryIsoCode.GB]: 'Вялікабрытанія', + [TuiCountryIsoCode.GD]: 'Грэнада', + [TuiCountryIsoCode.GE]: 'Грузія', + [TuiCountryIsoCode.GF]: 'Французская Гвіяна', + [TuiCountryIsoCode.GH]: 'Гана', + [TuiCountryIsoCode.GI]: 'Гібралтар', + [TuiCountryIsoCode.GL]: 'Грэнландыя', + [TuiCountryIsoCode.GM]: 'Гамбія', + [TuiCountryIsoCode.GN]: 'Гвінея', + [TuiCountryIsoCode.GP]: 'Гвадэлупа', + [TuiCountryIsoCode.GQ]: 'Экватарыяльная Гвінея', + [TuiCountryIsoCode.GR]: 'Грэцыя', + [TuiCountryIsoCode.GT]: 'Гватэмала', + [TuiCountryIsoCode.GW]: 'Гвінея-Бісау', + [TuiCountryIsoCode.GY]: 'Гаяна', + [TuiCountryIsoCode.HK]: 'Ганконг, САР (Кітай)', + [TuiCountryIsoCode.HN]: 'Гандурас', + [TuiCountryIsoCode.HR]: 'Харватыя', + [TuiCountryIsoCode.HT]: 'Гаіці', + [TuiCountryIsoCode.HU]: 'Венгрыя', + [TuiCountryIsoCode.ID]: 'Інданезія', + [TuiCountryIsoCode.IE]: 'Ірландыя', + [TuiCountryIsoCode.IL]: 'Ізраіль', + [TuiCountryIsoCode.IN]: 'Індыя', + [TuiCountryIsoCode.IQ]: 'Ірак', + [TuiCountryIsoCode.IR]: 'Іран', + [TuiCountryIsoCode.IS]: 'Ісландыя', + [TuiCountryIsoCode.IT]: 'Італія', + [TuiCountryIsoCode.JM]: 'Ямайка', + [TuiCountryIsoCode.JO]: 'Іарданія', + [TuiCountryIsoCode.JP]: 'Японія', + [TuiCountryIsoCode.KE]: 'Кенія', + [TuiCountryIsoCode.KG]: 'Кыргызстан', + [TuiCountryIsoCode.KH]: 'Камбоджа', + [TuiCountryIsoCode.KM]: 'Каморскія астравы', + [TuiCountryIsoCode.KN]: 'Сент-Кітс і Невіс', + [TuiCountryIsoCode.KP]: 'КНДР', + [TuiCountryIsoCode.KR]: 'Рэспубліка Карэя', + [TuiCountryIsoCode.KW]: 'Кувейт', + [TuiCountryIsoCode.KY]: 'Кайманавы астравы', + [TuiCountryIsoCode.KZ]: 'Казахстан', + [TuiCountryIsoCode.LA]: 'Лаос', + [TuiCountryIsoCode.LB]: 'Ліван', + [TuiCountryIsoCode.LC]: 'Сент-Люсія', + [TuiCountryIsoCode.LI]: 'Ліхтэнштэйн', + [TuiCountryIsoCode.LK]: 'Шры-Ланка', + [TuiCountryIsoCode.LR]: 'Ліберыя', + [TuiCountryIsoCode.LS]: 'Лесота', + [TuiCountryIsoCode.LT]: 'Літва', + [TuiCountryIsoCode.LU]: 'Люксембург', + [TuiCountryIsoCode.LV]: 'Латвія', + [TuiCountryIsoCode.LY]: 'Лівія', + [TuiCountryIsoCode.MA]: 'Марока', + [TuiCountryIsoCode.MC]: 'Манака', + [TuiCountryIsoCode.MD]: 'Малдова', + [TuiCountryIsoCode.ME]: 'Чарнагорыя', + [TuiCountryIsoCode.MF]: 'Сен-Мартэн', + [TuiCountryIsoCode.MG]: 'Мадагаскар', + [TuiCountryIsoCode.MK]: 'Паўночная Македонія', + [TuiCountryIsoCode.ML]: 'Малі', + [TuiCountryIsoCode.MM]: 'М’янма (Бірма)', + [TuiCountryIsoCode.MN]: 'Манголія', + [TuiCountryIsoCode.MO]: 'Макаа, САР (Кітай)', + [TuiCountryIsoCode.MQ]: 'Марцініка', + [TuiCountryIsoCode.MR]: 'Маўрытанія', + [TuiCountryIsoCode.MS]: 'Мантсерат', + [TuiCountryIsoCode.MT]: 'Мальта', + [TuiCountryIsoCode.MU]: 'Маўрыкій', + [TuiCountryIsoCode.MV]: 'Мальдывы', + [TuiCountryIsoCode.MW]: 'Малаві', + [TuiCountryIsoCode.MX]: 'Мексіка', + [TuiCountryIsoCode.MY]: 'Малайзія', + [TuiCountryIsoCode.MZ]: 'Мазамбік', + [TuiCountryIsoCode.NA]: 'Намібія', + [TuiCountryIsoCode.NC]: 'Новая Каледонія', + [TuiCountryIsoCode.NE]: 'Нігер', + [TuiCountryIsoCode.NG]: 'Нігерыя', + [TuiCountryIsoCode.NI]: 'Нікарагуа', + [TuiCountryIsoCode.NL]: 'Нідэрланды', + [TuiCountryIsoCode.NO]: 'Нарвегія', + [TuiCountryIsoCode.NP]: 'Непал', + [TuiCountryIsoCode.NZ]: 'Новая Зеландыя', + [TuiCountryIsoCode.OM]: 'Аман', + [TuiCountryIsoCode.PA]: 'Панама', + [TuiCountryIsoCode.PE]: 'Перу', + [TuiCountryIsoCode.PF]: 'Французская Палінезія', + [TuiCountryIsoCode.PG]: 'Папуа — Новая Гвінея', + [TuiCountryIsoCode.PH]: 'Філіпіны', + [TuiCountryIsoCode.PK]: 'Пакістан', + [TuiCountryIsoCode.PL]: 'Польшча', + [TuiCountryIsoCode.PT]: 'Партугалія', + [TuiCountryIsoCode.PW]: 'Палау', + [TuiCountryIsoCode.PY]: 'Парагвай', + [TuiCountryIsoCode.QA]: 'Катар', + [TuiCountryIsoCode.RE]: 'Рэюньён', + [TuiCountryIsoCode.RO]: 'Румынія', + [TuiCountryIsoCode.RS]: 'Сербія', + [TuiCountryIsoCode.RU]: 'Расія', + [TuiCountryIsoCode.RW]: 'Руанда', + [TuiCountryIsoCode.SA]: 'Саудаўская Аравія', + [TuiCountryIsoCode.SB]: 'Саламонавы астравы', + [TuiCountryIsoCode.SC]: 'Сейшэльскія астравы', + [TuiCountryIsoCode.SD]: 'Судан', + [TuiCountryIsoCode.SE]: 'Швецыя', + [TuiCountryIsoCode.SG]: 'Сінгапур', + [TuiCountryIsoCode.SH]: 'Востраў Святой Алены', + [TuiCountryIsoCode.SI]: 'Славенія', + [TuiCountryIsoCode.SK]: 'Славакія', + [TuiCountryIsoCode.SL]: 'Сьера-Леонэ', + [TuiCountryIsoCode.SM]: 'Сан-Марына', + [TuiCountryIsoCode.SN]: 'Сенегал', + [TuiCountryIsoCode.SO]: 'Самалі', + [TuiCountryIsoCode.SR]: 'Сурынам', + [TuiCountryIsoCode.ST]: 'Сан-Тамэ і Прынсіпі', + [TuiCountryIsoCode.SV]: 'Сальвадор', + [TuiCountryIsoCode.SX]: 'Сінт-Мартэн', + [TuiCountryIsoCode.SY]: 'Сірыя', + [TuiCountryIsoCode.SZ]: 'Эсватыні', + [TuiCountryIsoCode.TC]: 'Астравы Цёркс і Кайкас', + [TuiCountryIsoCode.TD]: 'Чад', + [TuiCountryIsoCode.TG]: 'Тога', + [TuiCountryIsoCode.TH]: 'Тайланд', + [TuiCountryIsoCode.TJ]: 'Таджыкістан', + [TuiCountryIsoCode.TL]: 'Тымор-Лешці', + [TuiCountryIsoCode.TM]: 'Туркменістан', + [TuiCountryIsoCode.TN]: 'Туніс', + [TuiCountryIsoCode.TO]: 'Тонга', + [TuiCountryIsoCode.TR]: 'Турцыя', + [TuiCountryIsoCode.TT]: 'Трынідад і Табага', + [TuiCountryIsoCode.TW]: 'Тайвань', + [TuiCountryIsoCode.TZ]: 'Танзанія', + [TuiCountryIsoCode.UA]: 'Украіна', + [TuiCountryIsoCode.UG]: 'Уганда', + [TuiCountryIsoCode.US]: 'Злучаныя Штаты Амерыкі', + [TuiCountryIsoCode.UY]: 'Уругвай', + [TuiCountryIsoCode.UZ]: 'Узбекістан', + [TuiCountryIsoCode.VC]: 'Сент-Вінсент і Грэнадзіны', + [TuiCountryIsoCode.VE]: 'Венесуэла', + [TuiCountryIsoCode.VG]: 'Віргінскія астравы (Брыт.)', + [TuiCountryIsoCode.VN]: 'В’етнам', + [TuiCountryIsoCode.VU]: 'Вануату', + [TuiCountryIsoCode.WS]: 'Самоа', + [TuiCountryIsoCode.XK]: 'Косава', + [TuiCountryIsoCode.YE]: 'Емен', + [TuiCountryIsoCode.YT]: 'Маёта', + [TuiCountryIsoCode.ZA]: 'Паўднёва-Афрыканская Рэспубліка', + [TuiCountryIsoCode.ZM]: 'Замбія', + [TuiCountryIsoCode.ZW]: 'Зімбабвэ', +}; diff --git a/projects/i18n/languages/belarusian/index.ts b/projects/i18n/languages/belarusian/index.ts new file mode 100644 index 000000000000..d544603df859 --- /dev/null +++ b/projects/i18n/languages/belarusian/index.ts @@ -0,0 +1,8 @@ +export * from './addon-commerce'; +export * from './addon-editor'; +export * from './addon-preview'; +export * from './addon-table'; +export * from './belarusian'; +export * from './core'; +export * from './countries'; +export * from './kit'; diff --git a/projects/i18n/languages/belarusian/kit.ts b/projects/i18n/languages/belarusian/kit.ts new file mode 100644 index 000000000000..90344518f78b --- /dev/null +++ b/projects/i18n/languages/belarusian/kit.ts @@ -0,0 +1,64 @@ +import {TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; + +export const TUI_BELARUSIAN_LANGUAGE_KIT: TuiLanguageKit = { + cancel: 'Скасаваць', + done: 'Гатова', + more: 'Яшчэ', + otherDate: 'Іншая дата...', + showAll: 'Паказаць усё', + hide: 'Схаваць', + mobileCalendarTexts: ['Выберыце дату', 'Выберыце дыяпазон дат', 'Выберыце даты'], + range: ['ад', 'да'], + countTexts: ['Плюс', 'Мінус'], + time: { + 'HH:MM': 'ГГ:ХХ', + 'HH:MM:SS': 'ГГ:ХХ:СС', + 'HH:MM:SS.MSS': 'ГГ:ХХ:СС.МСС', + }, + dateTexts: { + DMY: 'дд.мм.гггг', + MDY: 'мм.дд.гггг', + YMD: 'гггг.мм.дд', + }, + digitalInformationUnits: ['Б', 'КіБ', 'МіБ'], + passwordTexts: ['Паказаць пароль', 'Схаваць пароль'], + copyTexts: ['Капіяваць', 'Скапіявана'], + shortCalendarMonths: [ + 'Сту', + 'Лют', + 'Сак', + 'Кра', + 'Май', + 'Чэр', + 'Ліп', + 'Жні', + 'Вер', + 'Кас', + 'Ліс', + 'Сне', + ], + pagination: ['Папярэдняя старонка', 'Наступная старонка'], + fileTexts: { + loadingError: 'Памылка загрузкі', + preview: 'Папярэдні прагляд', + remove: 'Выдаліць', + }, + inputFileTexts: { + defaultLabelSingle: 'або перацягніце\u00A0яго\u00A0сюды', + defaultLabelMultiple: 'або перацягніце\u00A0іх\u00A0сюды', + defaultLinkSingle: 'Выберыце файл', + defaultLinkMultiple: 'Выберыце файлы', + maxSizeRejectionReason: 'Памер файла перавышае ', + formatRejectionReason: 'Няправільны тып файла', + drop: 'Перацягніце файл сюды', + dropMultiple: 'Перацягніце файлы сюды', + }, + multiSelectTexts: { + all: 'Выбраць усё', + none: 'Зняць выбар', + }, + prompt: { + yes: 'Так', + no: 'Не', + }, +}; diff --git a/projects/i18n/languages/belarusian/ng-package.json b/projects/i18n/languages/belarusian/ng-package.json new file mode 100644 index 000000000000..bebf62dcb5e5 --- /dev/null +++ b/projects/i18n/languages/belarusian/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 b4a305ba45be..1803d67329f6 100644 --- a/projects/i18n/languages/index.ts +++ b/projects/i18n/languages/index.ts @@ -1,3 +1,4 @@ +export * from '@taiga-ui/i18n/languages/belarusian'; export * from '@taiga-ui/i18n/languages/chinese'; export * from '@taiga-ui/i18n/languages/dutch'; export * from '@taiga-ui/i18n/languages/english';