diff --git a/NuSpecs/Humanizer.Core.th-TH.nuspec b/NuSpecs/Humanizer.Core.th.nuspec similarity index 68% rename from NuSpecs/Humanizer.Core.th-TH.nuspec rename to NuSpecs/Humanizer.Core.th.nuspec index f4c70d3b9..1b3bbb99f 100644 --- a/NuSpecs/Humanizer.Core.th-TH.nuspec +++ b/NuSpecs/Humanizer.Core.th.nuspec @@ -1,23 +1,23 @@ <?xml version="1.0" encoding="utf-8"?> <package> <metadata minClientVersion="2.12"> - <id>Humanizer.Core.th-TH</id> + <id>Humanizer.Core.th</id> <version>$version$</version> - <title>Humanizer Locale (th-TH)</title> + <title>Humanizer Locale (th)</title> <authors>Mehdi Khalili, Claire Novotny</authors> <projectUrl>https://github.com/Humanizr/Humanizer</projectUrl> <icon>logo.png</icon> <requireLicenseAcceptance>false</requireLicenseAcceptance> - <description>Humanizer Locale Thai (Thailand) (th-TH)</description> + <description>Humanizer Locale Thai (th)</description> <copyright>Copyright (c) .NET Foundation and Contributors</copyright> <license type="expression">MIT</license> - <language>th-TH</language> + <language>th</language> <dependencies> <dependency id="Humanizer.Core" version="[$version$]" /> </dependencies> </metadata> <files> - <file src="Humanizer\bin\Release\netstandard2.0\th-TH\*.*" target="lib\netstandard2.0\th-TH" /> + <file src="Humanizer\bin\Release\netstandard2.0\th\*.*" target="lib\netstandard2.0\th" /> <file src="..\logo.png" target="logo.png" /> </files> -</package> \ No newline at end of file +</package> diff --git a/NuSpecs/Humanizer.nuspec b/NuSpecs/Humanizer.nuspec index 9079ae408..4699bf36f 100644 --- a/NuSpecs/Humanizer.nuspec +++ b/NuSpecs/Humanizer.nuspec @@ -56,7 +56,7 @@ <dependency id="Humanizer.Core.sr-Latn" version="$version$" /> <dependency id="Humanizer.Core.sv" version="$version$" /> <!--<dependency id="Humanizer.Core.ta" version="$version$" /> no resources yet --> - <dependency id="Humanizer.Core.th-TH" version="$version$" /> + <dependency id="Humanizer.Core.th" version="$version$" /> <dependency id="Humanizer.Core.tr" version="$version$" /> <dependency id="Humanizer.Core.uk" version="$version$" /> <dependency id="Humanizer.Core.uz-Cyrl-UZ" version="$version$" /> diff --git a/src/Humanizer.Tests/Localisation/th-TH/DateHumanizeTests.cs b/src/Humanizer.Tests/Localisation/th/DateHumanizeTests.cs similarity index 91% rename from src/Humanizer.Tests/Localisation/th-TH/DateHumanizeTests.cs rename to src/Humanizer.Tests/Localisation/th/DateHumanizeTests.cs index 8c33964d6..dc5a9d67e 100644 --- a/src/Humanizer.Tests/Localisation/th-TH/DateHumanizeTests.cs +++ b/src/Humanizer.Tests/Localisation/th/DateHumanizeTests.cs @@ -1,6 +1,6 @@ -namespace thTH; +namespace th; -[UseCulture("th-TH")] +[UseCulture("th")] public class DateHumanizeTests { [Theory] diff --git a/src/Humanizer.Tests/Localisation/th-TH/NumberToWordsTests.cs b/src/Humanizer.Tests/Localisation/th/NumberToWordsTests.cs similarity index 98% rename from src/Humanizer.Tests/Localisation/th-TH/NumberToWordsTests.cs rename to src/Humanizer.Tests/Localisation/th/NumberToWordsTests.cs index 10e8002f1..2007fd50c 100644 --- a/src/Humanizer.Tests/Localisation/th-TH/NumberToWordsTests.cs +++ b/src/Humanizer.Tests/Localisation/th/NumberToWordsTests.cs @@ -1,6 +1,6 @@ -namespace thTH; +namespace th; -[UseCulture("th-TH")] +[UseCulture("th")] public class NumberToWordsTests { [InlineData(1, "หนึ่ง")] diff --git a/src/Humanizer/Configuration/FormatterRegistry.cs b/src/Humanizer/Configuration/FormatterRegistry.cs index 3b7ec6917..fd0499907 100644 --- a/src/Humanizer/Configuration/FormatterRegistry.cs +++ b/src/Humanizer/Configuration/FormatterRegistry.cs @@ -1,4 +1,4 @@ -namespace Humanizer; +namespace Humanizer; class FormatterRegistry : LocaliserRegistry<IFormatter> { @@ -55,7 +55,7 @@ public FormatterRegistry() RegisterDefaultFormatter("zh-CN"); RegisterDefaultFormatter("zh-Hans"); RegisterDefaultFormatter("zh-Hant"); - RegisterDefaultFormatter("th-TH"); + RegisterDefaultFormatter("th"); RegisterDefaultFormatter("en-IN"); Register("lt", c => new LithuanianFormatter(c)); Register("lb", c => new LuxembourgishFormatter(c)); diff --git a/src/Humanizer/Configuration/NumberToWordsConverterRegistry.cs b/src/Humanizer/Configuration/NumberToWordsConverterRegistry.cs index 8dec3df2d..c30cf7143 100644 --- a/src/Humanizer/Configuration/NumberToWordsConverterRegistry.cs +++ b/src/Humanizer/Configuration/NumberToWordsConverterRegistry.cs @@ -1,4 +1,4 @@ -namespace Humanizer; +namespace Humanizer; class NumberToWordsConverterRegistry : LocaliserRegistry<INumberToWordsConverter> { @@ -48,7 +48,7 @@ public NumberToWordsConverterRegistry() Register("ja", new JapaneseNumberToWordsConverter()); Register("ku", new CentralKurdishNumberToWordsConverter()); Register("el", new GreekNumberToWordsConverter()); - Register("th-TH", new ThaiNumberToWordsConverter()); + Register("th", new ThaiNumberToWordsConverter()); Register("lv", new LatvianNumberToWordsConverter()); Register("ko-KR", new KoreanNumberToWordsConverter()); Register("en-IN", new IndianNumberToWordsConverter()); diff --git a/src/Humanizer/Properties/Resources.th-TH.resx b/src/Humanizer/Properties/Resources.th.resx similarity index 100% rename from src/Humanizer/Properties/Resources.th-TH.resx rename to src/Humanizer/Properties/Resources.th.resx