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

Moved Finnish to its own "namespace" #9

Open
wants to merge 8 commits into
base: master
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
2 changes: 1 addition & 1 deletion src/Strings.Abbreviations.Tests/StringsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public void ImhoNormalTest()
[Fact]
public void EosTest()
{
var str = Strings.EOS();
var str = Strings.FI.EOS();
Assert.Equal("En osaa sanoa", str);
}

Expand Down
6 changes: 5 additions & 1 deletion src/Strings.Abbreviations/Strings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,17 @@ public static class Strings

public static string BRB(bool titleCase = false) => !titleCase ? Brb : Brb_TitleCase;
public static string IMHO(bool titleCase = false) => !titleCase ? Imho : Imho_TitleCase;
public static string EOS() => Eos; // No title case in Finnish
public static string LMAO(bool titleCase = false) => !titleCase ? Lmao : Lmao_TitleCase;
public static string ROTFL(bool titleCase = false) => !titleCase ? Rotfl : Rotfl_TitleCase;
public static string AMA(bool titleCase = false) => !titleCase ? Ama : Ama_TitleCase;
public static string YOLO(bool titleCase = false) => !titleCase ? Yolo : Yolo_TitleCase;

public static decimal GetCompressionRatio(string abbr, string phrase)
=> Scientific.CalculateCompressionRatio(abbr, phrase);

public static class FI
{
public static string EOS() => Eos; // No title case in Finnish
}
}
}