Skip to content

Commit

Permalink
T4 Template Fix / EnglishWordsConverter directly.
Browse files Browse the repository at this point in the history
GitHub Issue Humanizr#169
  • Loading branch information
anoehre committed Apr 10, 2014
1 parent 1cdb63d commit 5378451
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Humanizer/FluentDate/In.SomeTimeFrom.tt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ namespace Humanizer
#>
/// <summary>
/// </summary>
public static class <#= i.ToWords().Dehumanize() #>
public static class <#= EnglishNumberToWordsConverter.Convert(i).Dehumanize() #>
{
/// <summary>
/// <#= i #> seconds from now
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Humanizer.Localisation.NumberToWords
{
internal class EnglishNumberToWordsConverter : INumberToWordsConverter
public class EnglishNumberToWordsConverter : INumberToWordsConverter
{
private static readonly string[] UnitsMap = { "zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten", "eleven", "twelve", "thirteen", "fourteen", "fifteen", "sixteen", "seventeen", "eighteen", "nineteen" };
private static readonly string[] TensMap = { "zero", "ten", "twenty", "thirty", "forty", "fifty", "sixty", "seventy", "eighty", "ninety" };
Expand Down

0 comments on commit 5378451

Please sign in to comment.