Skip to content

Commit

Permalink
MAINTENANCE: update Readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jslachta committed Oct 22, 2021
1 parent 0adc1cf commit c04cf34
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The translation data are generated from [CLDR locale data for internationalizati
### Find all language codes

```
var allCountryCodes = LocaleNames.ForLanguageCode("en-US").AllLanguageCodes;
var allLanguageCodes = LocaleNames.ForLanguageCode("en-US").AllLanguageCodes;
```

### Find language name
Expand All @@ -28,16 +28,16 @@ var translatedLanguageName = LocaleNames.ForCultureInfo(new CultureInfo("en-US")
var languageCode = LocaleNames.ForCultureInfo(new CultureInfo("en-US")).FindLanguageCode("Czech");
```

### Find country name
### Find all country codes

```
var translatedCountryName = LocaleNames.ForCultureInfo(new CultureInfo("en-US")).FindCountryName("DE");
var allCountryCodes = LocaleNames.ForLanguageCode("en-US").AllCountryCodes;
```

### Find all country codes
### Find country name

```
var allCountryCodes = LocaleNames.ForLanguageCode("en-US").AllCountryCodes;
var translatedCountryName = LocaleNames.ForCultureInfo(new CultureInfo("en-US")).FindCountryName("DE");
```

### Find country code
Expand Down

0 comments on commit c04cf34

Please sign in to comment.