Skip to content

Commit

Permalink
Fix chinese translate error of 'now' (#1239)
Browse files Browse the repository at this point in the history
Fixes #1238
  • Loading branch information
dameng324 authored May 15, 2023
1 parent 30aa369 commit e9844d6
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class DateHumanizeTests
[Theory]
[InlineData(2, "2 天前")]
[InlineData(1, "昨天")]
[InlineData(0, "今天")]
[InlineData(0, "现在")]
public void DaysAgo(int days, string expected)
{
DateHumanize.Verify(expected, days, TimeUnit.Day, Tense.Past);
Expand All @@ -19,7 +19,7 @@ public void DaysAgo(int days, string expected)
[Theory]
[InlineData(2, "2 天后")]
[InlineData(1, "明天")]
[InlineData(0, "今天")]
[InlineData(0, "现在")]
public void DaysFromNow(int days, string expected)
{
DateHumanize.Verify(expected, days, TimeUnit.Day, Tense.Future);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class DateHumanizeTests
[Theory]
[InlineData(2, "2 天前")]
[InlineData(1, "昨天")]
[InlineData(0, "今天")]
[InlineData(0, "現在")]
public void DaysAgo(int days, string expected)
{
DateHumanize.Verify(expected, days, TimeUnit.Day, Tense.Past);
Expand All @@ -18,7 +18,7 @@ public void DaysAgo(int days, string expected)
[Theory]
[InlineData(2, "2 天後")]
[InlineData(1, "明天")]
[InlineData(0, "今天")]
[InlineData(0, "現在")]
public void DaysFromNow(int days, string expected)
{
DateHumanize.Verify(expected, days, TimeUnit.Day, Tense.Future);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class DateHumanizeTests
[Theory]
[InlineData(2, "2 天前")]
[InlineData(1, "昨天")]
[InlineData(0, "今天")]
[InlineData(0, "现在")]
public void DaysAgo(int days, string expected)
{
DateHumanize.Verify(expected, days, TimeUnit.Day, Tense.Past);
Expand All @@ -18,7 +18,7 @@ public void DaysAgo(int days, string expected)
[Theory]
[InlineData(2, "2 天后")]
[InlineData(1, "明天")]
[InlineData(0, "今天")]
[InlineData(0, "现在")]
public void DaysFromNow(int days, string expected)
{
DateHumanize.Verify(expected, days, TimeUnit.Day, Tense.Future);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class DateHumanizeTests
[Theory]
[InlineData(2, "2 天前")]
[InlineData(1, "昨天")]
[InlineData(0, "今天")]
[InlineData(0, "現在")]
public void DaysAgo(int days, string expected)
{
DateHumanize.Verify(expected, days, TimeUnit.Day, Tense.Past);
Expand All @@ -18,7 +18,7 @@ public void DaysAgo(int days, string expected)
[Theory]
[InlineData(2, "2 天後")]
[InlineData(1, "明天")]
[InlineData(0, "今天")]
[InlineData(0, "現在")]
public void DaysFromNow(int days, string expected)
{
DateHumanize.Verify(expected, days, TimeUnit.Day, Tense.Future);
Expand Down
2 changes: 1 addition & 1 deletion src/Humanizer/Properties/Resources.zh-CN.resx
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@
<value>{0} 年后</value>
</data>
<data name="DateHumanize_Now" xml:space="preserve">
<value>今天</value>
<value>现在</value>
</data>
<data name="DateHumanize_SingleDayFromNow" xml:space="preserve">
<value>明天</value>
Expand Down
2 changes: 1 addition & 1 deletion src/Humanizer/Properties/Resources.zh-Hans.resx
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@
<value>{0} 年后</value>
</data>
<data name="DateHumanize_Now" xml:space="preserve">
<value>今天</value>
<value>现在</value>
</data>
<data name="DateHumanize_SingleDayFromNow" xml:space="preserve">
<value>明天</value>
Expand Down
2 changes: 1 addition & 1 deletion src/Humanizer/Properties/Resources.zh-Hant.resx
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@
<value>{0} 年後</value>
</data>
<data name="DateHumanize_Now" xml:space="preserve">
<value>今天</value>
<value>現在</value>
</data>
<data name="DateHumanize_SingleDayFromNow" xml:space="preserve">
<value>明天</value>
Expand Down

0 comments on commit e9844d6

Please sign in to comment.