Skip to content

Commit 6b44c99

Browse files
dmihaylotsvetomir
authored andcommitted
docs: review latest updates
1 parent adb4f79 commit 6b44c99

File tree

2 files changed

+15
-18
lines changed

2 files changed

+15
-18
lines changed

docs/cldr/api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ Holds the number symbols from the specified locale.
153153

154154
### setData
155155

156-
Sets pre-generated data. For information on how to generate the locales refer to the [Generated Data](https://github.com/telerik/kendo-intl/blob/master/docs/cldr/index.md#generated-data) documentation.
156+
Sets the pre-generated data. For more information on how to generate the locales, refer to the section on [generating data](https://github.com/telerik/kendo-intl/blob/master/docs/cldr/index.md#generating-cldr-data).
157157

158158
#### setData Parameters
159159

docs/cldr/index.md

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ If you work with the `en` locale, you do not have to load any data. The only exc
1818

1919
The following table provides the data formats that are required for number and date formatting and parsing when you use a non-default locale.
2020

21-
| FORMATS | REQUIRED DATA |
21+
| Formats | Required data |
2222
|:--- |:--- |
2323
| Any | `cldr/supplemental/likelySubtags.json` |
2424
| Basic numbers | `cldr/main/locale/numbers.json` |
2525
| Currency | `cldr/main/locale/currencies.json` and `cldr/supplemental/currencyData.json` |
2626
| Basic dates | `cldr/main/locale/ca-gregorian.json` |
27-
| Localized timezone | `cldr/main/locale/timeZoneNames.json` |
27+
| Localized time-zone | `cldr/main/locale/timeZoneNames.json` |
2828
| Localized date field names | `cldr/main/locale/dateFields.json` |
2929
| Numeric week day formatting | `cldr/supplemental/weekData.json` |
3030

@@ -36,7 +36,7 @@ Unicode CLDR is available as JSON at [https://github.com/unicode-cldr/](https://
3636

3737
To load the CLDR data, use the [`load`]({% cldrapi_internalization %}#load) method.
3838

39-
> Supplemental data should be loaded first, before other culture scripts. It requires to be loaded only once.
39+
> Before other culture scripts, you have to load the supplemental data first. It requires you to load it just once.
4040
4141
```
4242
import { cldr, load } from '@telerik/kendo-intl';
@@ -66,13 +66,13 @@ load(
6666
//the `cldr` object will consist the loaded data
6767
```
6868

69-
# Generated Data
69+
## Generating CLDR Data
7070

71-
The package provides a build method for generating the files with data required by the Kendo UI Internationalization library.
72-
The following example demonstrates generating the data for typescript projects.
71+
The `build` method the package provides generates the files which use the data that is required by the Internationalization library.
7372

74-
```
73+
The following example demonstrates how to generate the data for typescript projects.
7574

75+
```
7676
const { buildLocales, toJSObject } = require('@telerik/kendo-intl/build-locales');
7777
const intl = require('@telerik/kendo-intl');
7878
@@ -81,28 +81,25 @@ const localeTemplate = (data) => {
8181
};
8282
8383
buildLocales(intl, { contentTemplate: localeTemplate, extension: 'ts', destFolder: 'locales' });
84-
8584
```
8685

87-
The method will output four files in the destination locale folder:
86+
The method outputs four files in the destination locale folder. These are:
8887

89-
* all - contains all required data.
90-
* numbers - contains the numbers data.
91-
* currencies - contains the currencies data.
92-
* calendar - contains the calendar data.
88+
* `all`—Contains all required data.
89+
* `numbers`—Contains the numbers data.
90+
* `currencies`—Contains the currencies data.
91+
* `calendar`—Contains the calendar data.
9392

94-
The generated data can be set via the [setData](https://github.com/telerik/kendo-intl/blob/master/docs/cldr/api.md#setdata) method.
93+
To set the generated data, use the [`setData`](https://github.com/telerik/kendo-intl/blob/master/docs/cldr/api.md#setdata) method.
9594

9695
```
97-
9896
import { setData } from '@telerik/kendo-intl';
9997
import { data } from './locales/bg/all';
10098
10199
setData(data);
102-
103100
```
104101

105-
> Note that the [cldr-data](https://www.npmjs.com/package/cldr-data) package must be installed in order to generate the locales.
102+
> To generate the locales, install the [`cldr-data`](https://www.npmjs.com/package/cldr-data) package first.
106103
107104
## Suggested Links
108105

0 commit comments

Comments
 (0)