Gathering detailed insights and metrics for @progress/kendo-intl
Gathering detailed insights and metrics for @progress/kendo-intl
Gathering detailed insights and metrics for @progress/kendo-intl
Gathering detailed insights and metrics for @progress/kendo-intl
@progress/kendo-angular-intl
Kendo UI Internationalization for Angular components
@progress/kendo-react-intl
React Internationalization package provides services for parsing and formatting of dates and numbers. KendoReact Internationalization package
@progress/kendo-licensing
Kendo UI License Manager
@progress/kendo-file-saver
Kendo UI File Saving Helper
npm install @progress/kendo-intl
v3.1.2
Published on 09 Feb 2024
v3.1.2-dev.202401081506
Published on 08 Jan 2024
v3.1.1
Published on 19 Sept 2022
v3.1.1-dev.202209190648
Published on 19 Sept 2022
v3.1.0
Published on 08 Jul 2022
v3.1.0-dev.202207071338
Published on 07 Jul 2022
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
15 Stars
337 Commits
18 Forks
55 Watching
3 Branches
120 Contributors
Updated on 06 Nov 2023
Minified
Minified + Gzipped
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
1.8%
24,332
Compared to previous day
Last week
1.9%
120,308
Compared to previous week
Last month
8.8%
507,764
Compared to previous month
Last year
76.6%
4,981,210
Compared to previous year
21
This repository contains the source code and documentation of the Kendo UI Internationalization package.
It includes methods for parsing and formatting dates and numbers by using Unicode Common Locale Data Repository (CLDR) data. These methods are split into the following modules:
To use the Unicode® CLDR data, you need to install the following subset of cldr-json packages by running the following command:
1npm install --save cldr-core cldr-dates-full cldr-numbers-full
To apply the methods for different locales, load the likelySubtags
and the locale data by using the load
method.
Additionally, the library requires you to load:
currencyData
for the default currency formatting.weekData
for the day of week formatting.1import { load } from '@progress/kendo-intl'; 2 3load( 4 require('cldr-core/supplemental/likelySubtags.json'), 5 require('cldr-core/supplemental/currencyData.json'), 6 require('cldr-core/supplemental/weekData.json'), 7 8 require('cldr-numbers-full/main/bg/numbers.json'), 9 require('cldr-numbers-full/main/bg/currencies.json'), 10 11 require('cldr-dates-full/main/bg/dateFields.json'), 12 require('cldr-dates-full/main/bg/ca-gregorian.json'), 13 require('cldr-dates-full/main/bg/timeZoneNames.json') 14);
For more examples and available configuration options, refer to the article on CLDR Data.
Date parsing converts a string into a Date
object by using the specific settings of the locale.
1import { parseDate } from '@progress/kendo-intl'; 2 3parseDate("11/6/2000", ["G", "d"]); // Mon Nov 06 2000 4parseDate("Montag, 6.11.2000", "EEEE, d.MM.y", "de"); // Mon Nov 06 2000 5parseDate("2000-11-06T10:30Z"); // Mon Nov 06 2000 12:30
For more examples and available configuration options, refer to the article on date parsing.
Date formatting converts a Date
object into a human-readable string by using the specific settings of the locale.
1import { formatDate } from '@progress/kendo-intl'; 2 3formatDate(new Date(2000, 10, 6), "d"); // 11/6/2000 4formatDate(new Date(2000, 10, 6), "yMd", "de"); // 6.11.2000 5formatDate(new Date(2000, 10, 6), "EEEE, d.MM.y", "bg"); // понеделник, 6.11.2000
For more examples and available configuration options, refer to the article on date formatting.
Number parsing converts a string into a Number
object by using the specific settings of the locale.
1import { parseNumber } from '@progress/kendo-intl'; 2 3parseNumber("12.22"); // 12.22 4parseNumber("1.212,22 €", "de"); // 1212.22 5parseNumber("10.22 %"); // 0.1022 6parseNumber("1,0000123e+4", "bg"); // 10000.123
For more examples and available configuration options, refer to the article on number parsing.
Number formatting converts a Number
object into a human-readable string using the specific settings of the locale.
1import { formatNumber } from '@progress/kendo-intl'; 2 3formatNumber(1234.567, "n2"); // 1,234.57 4 5formatNumber(1234.567, "c", "de"); // 1.234,57 € 6 7formatNumber(1234.567, { 8 style: "currency", 9 currency: "USD", 10 currencyDisplay: "displayName" 11}, "bg"); // 1 234,57 щатски долара 12 13formatNumber(2345678, "##,#.00"); // 2,345,678.00
For more examples and available configuration options, refer to the article on number formatting.
General formatting provides methods for independent placeholder and type formatting by using the specific settings of the locale.
1import { format, toString } from '@progress/kendo-intl'; 2 3format('Date: {0:d} - Price: {1:c}', [new Date(), 10.5], "en") // Date: 1/5/2017 - Price: $10.50 4 5toString(10.5, "c", "bg"); // 10,50 лв. 6 7toString(new Date(), "d"); // 1/5/2017
For more examples and available configuration options, refer to the article on general formatting.
The Internationalization library is published as a scoped NPM package in the NPMJS Telerik account.
Download and install the module:
1npm install --save '@progress/kendo-intl';
Once installed, import the Internationalization in your application root module:
1// ES2015 module syntax 2import { formatDate, parseDate } from '@progress/kendo-intl'; 3//or 4import { formatNumber, parseNumber } from '@progress/kendo-intl';
1// CommonJS format 2var numbers = require('@progress/kendo-intl/number').numbers; 3//or 4var dates = require('@progress/kendo-intl/dates').dates;
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
0 existing vulnerabilities detected
Reason
packaging workflow detected
Details
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 11/17 approved changesets -- score normalized to 6
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More