Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change th-TH culture to th #1522

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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>
</package>
2 changes: 1 addition & 1 deletion NuSpecs/Humanizer.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -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$" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace thTH;
namespace th;

[UseCulture("th-TH")]
[UseCulture("th")]
public class DateHumanizeTests
{
[Theory]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace thTH;
namespace th;

[UseCulture("th-TH")]
[UseCulture("th")]
public class NumberToWordsTests
{
[InlineData(1, "หนึ่ง")]
Expand Down
4 changes: 2 additions & 2 deletions src/Humanizer/Configuration/FormatterRegistry.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Humanizer;
namespace Humanizer;

class FormatterRegistry : LocaliserRegistry<IFormatter>
{
Expand Down Expand Up @@ -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));
Expand Down
4 changes: 2 additions & 2 deletions src/Humanizer/Configuration/NumberToWordsConverterRegistry.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Humanizer;
namespace Humanizer;

class NumberToWordsConverterRegistry : LocaliserRegistry<INumberToWordsConverter>
{
Expand Down Expand Up @@ -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());
Expand Down