diff --git a/HISTORY.md b/HISTORY.md index 28a375c8..4683f866 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,3 +1,7 @@ +## v35.2.0 +Release Date: 2023-12-26 +* Issue 497: PR 522 - Better Xamarin AOT compatibility. Renames/removes diacritics from API method names Finland: Henkilötunnus -> Henkilotunnus; Norway: Fødselsnummer -> Fodselsnummer. + ## v35.0.1 Release Date: 2023-12-11 * PR 513: Update Swedish `sv` locale; first/last names. Thanks @EBD232! diff --git a/README.md b/README.md index 0975b9a0..7bad1763 100644 --- a/README.md +++ b/README.md @@ -505,12 +505,12 @@ In the examples above, all three alternative styles of using **Bogus** produce t * **`using Bogus.Extensions.Denmark;`** * `Bogus.Person.Cpr()` - Danish Personal Identification number * **`using Bogus.Extensions.Finland;`** - * `Bogus.Person.Henkilötunnus()` - Finnish Henkilötunnus + * `Bogus.Person.Henkilotunnus()` - Finnish Henkilötunnus * **`using Bogus.Extensions.Italy;`** * `Bogus.Person.CodiceFiscale()` - Codice Fiscale * `Bogus.DataSets.Finance.CodiceFiscale()` - Codice Fiscale * **`using Bogus.Extensions.Norway;`** - * `Bogus.Person.Fødselsnummer()` - Norwegian national identity number + * `Bogus.Person.Fodselsnummer()` - Norwegian national identity number * **`using Bogus.Extensions.Portugal;`** * `Bogus.Person.Nif()` - Número de Identificação Fiscal (NIF) * `Bogus.DataSets.Company.Nipc()` - Número de Identificação de Pessoa Colectiva (NIPC) diff --git a/Source/Bogus.Tests/ExtensionTests/NorwegianExtensionTest.cs b/Source/Bogus.Tests/ExtensionTests/NorwegianExtensionTest.cs index 6ab8252c..8c287559 100644 --- a/Source/Bogus.Tests/ExtensionTests/NorwegianExtensionTest.cs +++ b/Source/Bogus.Tests/ExtensionTests/NorwegianExtensionTest.cs @@ -88,7 +88,7 @@ public void can_create_norwegian_fødselsnummer() var f = new Faker("nb_NO"); var person = f.Person; - string fødselsnummer = person.Fødselsnummer(); + string fødselsnummer = person.Fodselsnummer(); IsLegalFødselsnummer(fødselsnummer, person); } diff --git a/Source/Bogus.Tests/PersonTest.cs b/Source/Bogus.Tests/PersonTest.cs index 82d0c6c0..c6551319 100644 --- a/Source/Bogus.Tests/PersonTest.cs +++ b/Source/Bogus.Tests/PersonTest.cs @@ -168,7 +168,7 @@ public void can_generate_cpr_number_for_denmark() public void can_generate_henkilötunnus_for_finland() { var p = new Person(); - var obtained = p.Henkilötunnus(); + var obtained = p.Henkilotunnus(); var a = obtained.Split('-')[0]; var b = obtained.Split('-')[1]; diff --git a/Source/Bogus/Extensions/ExtensionsForString.cs b/Source/Bogus/Extensions/ExtensionsForString.cs index b14b2762..84a45ccd 100644 --- a/Source/Bogus/Extensions/ExtensionsForString.cs +++ b/Source/Bogus/Extensions/ExtensionsForString.cs @@ -53,7 +53,7 @@ public static string RemoveDiacritics(this string @this) } /// - /// Transliterates Unicode characters to US-ASCII. For example, Russian cryllic "Анна Фомина" becomes "Anna Fomina". + /// Transliterates Unicode characters to US-ASCII. For example, Russian cyrillic "Анна Фомина" becomes "Anna Fomina". /// /// The @this string to act on. /// The language character set to use. diff --git a/Source/Bogus/Extensions/Finland/ExtensionsForFinland.cs b/Source/Bogus/Extensions/Finland/ExtensionsForFinland.cs index cf9aa5ba..a5d00621 100644 --- a/Source/Bogus/Extensions/Finland/ExtensionsForFinland.cs +++ b/Source/Bogus/Extensions/Finland/ExtensionsForFinland.cs @@ -8,7 +8,7 @@ public static class ExtensionsForFinland /// /// Finnish Henkilötunnus /// - public static string Henkilötunnus(this Person p) + public static string Henkilotunnus(this Person p) { const string Key = nameof(ExtensionsForFinland) + "Henkilötunnus"; if( p.context.ContainsKey(Key) ) diff --git a/Source/Bogus/Extensions/Norway/ExtensionsForNorway.cs b/Source/Bogus/Extensions/Norway/ExtensionsForNorway.cs index cd30e304..bc0909b4 100644 --- a/Source/Bogus/Extensions/Norway/ExtensionsForNorway.cs +++ b/Source/Bogus/Extensions/Norway/ExtensionsForNorway.cs @@ -8,9 +8,9 @@ namespace Bogus.Extensions.Norway; public static class ExtensionsForNorway { /// - /// Norwegian national identity number + /// Fødselsnummer - Norwegian national identity number /// - public static string Fødselsnummer(this Person p) + public static string Fodselsnummer(this Person p) { const string Key = nameof(ExtensionsForNorway) + "Fødselsnummer"; if (p.context.ContainsKey(Key))