telegram-inline-calendar
Advanced tools
Comparing version 2.1.0 to 2.2.0
{ | ||
"name": "telegram-inline-calendar", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"description": "Date and time picker and inline calendar for Node.js telegram bots", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
@@ -29,2 +29,3 @@ <h1 align="center">telegram-inline-calendar</h1> | ||
* Indonesian | ||
* Ukrainian | ||
@@ -47,2 +48,7 @@ Supported Telegram bot libraries: | ||
``` | ||
> ✍️ **Note:** If you use Typescript you can install this package that contains type definitions for this library | ||
>```sh | ||
>npm install --save-dev telegram-inline-calendar-types | ||
>``` | ||
## 🎚️ Changelog ([v1.x](https://github.com/VDS13/telegram-inline-calendar/blob/main/v1.x/CHANGELOG.md) or [v2.x](https://github.com/VDS13/telegram-inline-calendar/blob/main/v2.x/CHANGELOG.md)) | ||
@@ -286,3 +292,3 @@ | ||
date_format: 'YYYY-MM-DD', //Datetime result format | ||
language: 'en', //Language (en/es/de/es/fr/it/tr/id) | ||
language: 'en', //Language (en/es/de/es/fr/it/tr/id/uk) | ||
bot_api: 'node-telegram-bot-api', //Telegram bot library | ||
@@ -306,2 +312,2 @@ close_calendar: true, //Close calendar after date selection | ||
Copyright © 2022-2023 Dmitry Vyazin | ||
Copyright © 2022-2024 Dmitry Vyazin |
@@ -0,1 +1,2 @@ | ||
import dayjs from 'dayjs'; | ||
import { readFile } from 'fs/promises'; | ||
@@ -8,3 +9,2 @@ import { createRequire } from "module"; | ||
); | ||
import dayjs from 'dayjs'; | ||
@@ -640,3 +640,6 @@ export class Calendar { | ||
return cnk; | ||
} | ||
} | ||
changeLang(lang) { | ||
this.options.language = lang; | ||
} | ||
} |
@@ -10,3 +10,4 @@ { | ||
"tr": ["Pzt", "Sal", "Çar", "Per", "Cum", "Cmt", "Paz"], | ||
"id": ["Min", "Sen", "Sel", "Rab", "Kam", "Jum", "Sab"] | ||
"id": ["Min", "Sen", "Sel", "Rab", "Kam", "Jum", "Sab"], | ||
"uk": ["Нд", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"] | ||
}, | ||
@@ -21,3 +22,4 @@ "month3": { | ||
"tr": ["Oca", "Şub", "Mar", "Nis", "May", "Haz", "Tem", "Ağu", "Eyl", "Eki", "Kas", "Ara"], | ||
"id": ["Jan", "Feb", "Mar", "Apr", "Mei", "Jun", "Jul", "Ags", "Sep", "Okt", "Nov", "Des"] | ||
"id": ["Jan", "Feb", "Mar", "Apr", "Mei", "Jun", "Jul", "Ags", "Sep", "Okt", "Nov", "Des"], | ||
"uk": ["Січ", "Лют", "Бер", "Кві", "Тра", "Чер", "Лип", "Сер", "Вер", "Жов", "Лис", "Гру"] | ||
}, | ||
@@ -32,3 +34,4 @@ "pick": { | ||
"tr": "Bir takvim seçin", | ||
"id": "Pilih Kalendernya kak" | ||
"id": "Pilih Kalendernya kak", | ||
"uk": "Виберіть календар" | ||
}, | ||
@@ -43,3 +46,4 @@ "select": { | ||
"tr": "Lütfen bir tarih seçin:", | ||
"id": "Pilih Tanggalnya kak" | ||
"id": "Pilih Tanggalnya kak", | ||
"uk": "Будь ласка, виберіть дату:" | ||
}, | ||
@@ -54,3 +58,4 @@ "selecttime": { | ||
"tr": "Lütfen bir zaman seçin:", | ||
"id": "Pilih Waktunya Kak" | ||
"id": "Pilih Waktunya Kak", | ||
"uk": "Будь ласка, виберіть час:" | ||
}, | ||
@@ -65,3 +70,4 @@ "selectdatetime": { | ||
"tr": "Lütfen bir tarih ve zaman seçin:", | ||
"id": "Pilih Tanggal Dan Waktunya Kak" | ||
"id": "Pilih Tanggal Dan Waktunya Kak", | ||
"uk": "Будь ласка, виберіть дату та час:" | ||
}, | ||
@@ -76,3 +82,4 @@ "navigafion": { | ||
"tr": "Navigasyon Takvimi", | ||
"id": "Kalender Navigasi" | ||
"id": "Kalender Navigasi", | ||
"uk": "Навігаційний календар" | ||
}, | ||
@@ -87,3 +94,4 @@ "dialog": { | ||
"tr": "Diyalog Takvimi", | ||
"id": "Kalender Dialog" | ||
"id": "Kalender Dialog", | ||
"uk": "Діалоговий календар" | ||
}, | ||
@@ -98,4 +106,5 @@ "back": { | ||
"tr": "Geri", | ||
"id": "Balik" | ||
"id": "Balik", | ||
"uk": "Назад" | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
52514
744
309