<commit_before># Makaretu.Globalization

[![build status](https://ci.appveyor.com/api/projects/status/github/richardschneider/net-cldr?branch=master&svg=true)](https://ci.appveyor.com/project/richardschneider/net-cldr) 
[![Coverage Status](https://coveralls.io/repos/richardschneider/net-cldr/badge.svg?branch=master&service=github)](https://coveralls.io/github/richardschneider/net-cldr?branch=master)
[![Version](https://img.shields.io/nuget/v/Makaretu.Globalization.svg)](https://www.nuget.org/packages/Makaretu.Globalization)

Provides locale content for internationalisation software using the Unicode Common Local Data Repository (CLDR)

## Features

- Uses the official Unicode CLDR XML without any "build steps"
- Can download the latest CLDR anytime

## Getting started

Published releases are available on [NuGet](https://www.nuget.org/packages/Makaretu.Globalization/).  To install, run the following command in the [Package Manager Console](https://docs.nuget.org/docs/start-here/using-the-package-manager-console).

    PM> Install-Package Makaretu.Globalization

### Usage

    using Makaretu.Globalization;

The CLDR uses the singleton pattern.  To access the repository, use `Cldr.Instance`,

Ensure that the latest version of the  CLDR is installed.

    var version = Cldr.Instance.DownloadLatestAsync().Result;
    Console.WriteLine($"Using CLDR {version}");<commit_msg>docs(readme): mention the source of CLDR data<commit_after># Makaretu.Globalization

[![build status](https://ci.appveyor.com/api/projects/status/github/richardschneider/net-cldr?branch=master&svg=true)](https://ci.appveyor.com/project/richardschneider/net-cldr) 
[![Coverage Status](https://coveralls.io/repos/richardschneider/net-cldr/badge.svg?branch=master&service=github)](https://coveralls.io/github/richardschneider/net-cldr?branch=master)
[![NuGet](https://img.shields.io/nuget/v/Makaretu.Globalization.svg)](https://www.nuget.org/packages/Makaretu.Globalization)

Provides locale content for internationalisation software using the Unicode Common Local Data Repository (CLDR).

## Features

- Uses the official Unicode CLDR XML without any "build steps"
- Can download the latest CLDR anytime

## Getting started

Published releases are available on [NuGet](https://www.nuget.org/packages/Makaretu.Globalization/).  To install, run the following command in the [Package Manager Console](https://docs.nuget.org/docs/start-here/using-the-package-manager-console).

    PM> Install-Package Makaretu.Globalization

### Usage

    using Makaretu.Globalization;

The CLDR uses the singleton pattern.  To access the repository, use `Cldr.Instance`.

Ensure that the latest version of the  CLDR is installed.  This will download the latest published release from [unicode.org](http://www.unicode.org/Public/cldr/latest), if required.

    var version = Cldr.Instance.DownloadLatestAsync().Result;
    Console.WriteLine($"Using CLDR {version}");
{'fraction_non_alphanumeric': 0.12440354464894342, 'fraction_numerical': 0.0, 'mean_word_length': 5.408296943231441, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 16, 'lorem ipsum': 0, 'www.': 5, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 5, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5667544', 'n_tokens_mistral': 931, 'n_tokens_neox': 891, 'n_words': 198}