Skip to content

Commit

Permalink
fix: change package scope to @progress
Browse files Browse the repository at this point in the history
  • Loading branch information
tsvetomir committed Jun 6, 2022
1 parent 4e17539 commit c3e0588
Show file tree
Hide file tree
Showing 12 changed files with 107 additions and 91 deletions.
21 changes: 21 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
module.exports = {
"env": {
"browser": true,
"es2021": true,
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"@typescript-eslint/no-explicit-any": 0
}
}
6 changes: 0 additions & 6 deletions .eslintrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ jobs:
- name: Publish release
run: npx ci-semantic-release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN_TELERIK }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}

2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
token: ${{ secrets.GH_TOKEN }}

- name: Install modules
run: npm install @telerik/semantic-prerelease@1 --no-save
run: npm install @progress/semantic-prerelease --no-save

- name: Fast-forward master to develop
run: npx release-master
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Additionally, the library requires you to load:
* The `weekData` for the day of week formatting.

```javascript
import { load } from '@telerik/kendo-intl';
import { load } from '@progress/kendo-intl';

load(
require("cldr-data/supplemental/likelySubtags.json"),
Expand All @@ -55,7 +55,7 @@ For more examples and available configuration options, refer to the article on [
Date parsing converts a string into a `Date` object by using the specific settings of the locale.

```js
import { parseDate } from '@telerik/kendo-intl';
import { parseDate } from '@progress/kendo-intl';

parseDate("11/6/2000", ["G", "d"]); // Mon Nov 06 2000
parseDate("Montag, 6.11.2000", "EEEE, d.MM.y", "de"); // Mon Nov 06 2000
Expand All @@ -69,7 +69,7 @@ For more examples and available configuration options, refer to the article on [
Date formatting converts a `Date` object into a human-readable string by using the specific settings of the locale.

```js
import { formatDate } from '@telerik/kendo-intl';
import { formatDate } from '@progress/kendo-intl';

formatDate(new Date(2000, 10, 6), "d"); // 11/6/2000
formatDate(new Date(2000, 10, 6), "yMd", "de"); // 6.11.2000
Expand All @@ -83,7 +83,7 @@ For more examples and available configuration options, refer to the article on [
Number parsing converts a string into a `Number` object by using the specific settings of the locale.

```js
import { parseNumber } from '@telerik/kendo-intl';
import { parseNumber } from '@progress/kendo-intl';

parseNumber("12.22"); // 12.22
parseNumber("1.212,22 €", "de"); // 1212.22
Expand All @@ -98,7 +98,7 @@ For more examples and available configuration options, refer to the article on [
Number formatting converts a `Number` object into a human-readable string using the specific settings of the locale.

```js
import { formatNumber } from '@telerik/kendo-intl';
import { formatNumber } from '@progress/kendo-intl';

formatNumber(1234.567, "n2"); // 1,234.57

Expand All @@ -120,7 +120,7 @@ For more examples and available configuration options, refer to the article on [
General formatting provides methods for independent placeholder and type formatting by using the specific settings of the locale.

```js
import { format, toString } from '@telerik/kendo-intl';
import { format, toString } from '@progress/kendo-intl';

format('Date: {0:d} - Price: {1:c}', [new Date(), 10.5], "en") // Date: 1/5/2017 - Price: $10.50

Expand All @@ -138,20 +138,20 @@ For more examples and available configuration options, refer to the article on [
2. Download and install the module:

```bash
npm install --save '@telerik/kendo-intl';
npm install --save '@progress/kendo-intl';
```

3. Once installed, import the Internationalization in your application root module:

```javascript
// ES2015 module syntax
import { formatDate, parseDate } from '@telerik/kendo-intl';
import { formatDate, parseDate } from '@progress/kendo-intl';
//or
import { formatNumber, parseNumber } from '@telerik/kendo-intl';
import { formatNumber, parseNumber } from '@progress/kendo-intl';
```
```javascript
// CommonJS format
var numbers = require('@telerik/kendo-intl/number').numbers;
var numbers = require('@progress/kendo-intl/number').numbers;
//or
var dates = require('@telerik/kendo-intl/dates').dates;
var dates = require('@progress/kendo-intl/dates').dates;
```
8 changes: 4 additions & 4 deletions docs/cldr/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ To load the CLDR data, use the [`load`](https://github.com/telerik/kendo-intl/bl
> Before other culture scripts, you have to load the supplemental data first. It requires you to load it just once.
```
import { cldr, load } from '@telerik/kendo-intl';
import { cldr, load } from '@progress/kendo-intl';
const likelySubtags = require("cldr-data/supplemental/likelySubtags.json");
const weekData = require("cldr-data/supplemental/weekData.json");
Expand Down Expand Up @@ -75,8 +75,8 @@ The `build` method the kendo-intl package provides generates the files which use
The following example demonstrates how to generate the data for typescript projects.

```
const { buildLocales, toJSObject } = require('@telerik/kendo-intl/build-locales');
const intl = require('@telerik/kendo-intl');
const { buildLocales, toJSObject } = require('@progress/kendo-intl/build-locales');
const intl = require('@progress/kendo-intl');
const localeTemplate = (data) => {
return `export const data = ${ toJSObject(data) };`;
Expand All @@ -95,7 +95,7 @@ The method outputs four files in the destination locale folder. These are:
To set the generated data, use the [`setData`](https://github.com/telerik/kendo-intl/blob/master/docs/cldr/api.md#setdata) method.

```
import { setData } from '@telerik/kendo-intl';
import { setData } from '@progress/kendo-intl';
import { data } from './locales/bg/all';
setData(data);
Expand Down
Loading

0 comments on commit c3e0588

Please sign in to comment.