Skip to content

Commit

Permalink
Merge pull request #48 from hmlendea/remove-thai
Browse files Browse the repository at this point in the history
Removed the `Thai` transliterator
  • Loading branch information
hmlendea authored May 28, 2023
2 parents 2b29fa0 + 62d682c commit 1be0ff3
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 57 deletions.
1 change: 0 additions & 1 deletion TransliterationAPI/Service/Entities/Language.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ public sealed class Language : IEquatable<Language>
public static Language Sinhala => new Language("si", "Sinhala", nameof(UshuaiaTransliterator));
public static Language Tamil => new Language("ta", "Tamil", nameof(UshuaiaTransliterator));
public static Language Telugu => new Language("te", "Telugu", nameof(UshuaiaTransliterator));
public static Language Thai => new Language("th", "Thai", nameof(ThailitTransliterator));
public static Language Udmurt => new Language("udm", "Udmurt", nameof(TranslitterationDotComTransliterator));
public static Language Ukrainian => new Language("uk", "Ukrainian", nameof(CyrillicTransliterator));
public static Language WesternArmenian => new Language("hyw", "Western Armenian", nameof(TranslitterationDotComTransliterator));
Expand Down
1 change: 0 additions & 1 deletion TransliterationAPI/Service/TransliterationService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ async Task<string> GetTransliteratedText(string text, string languageCode)
Language language = Language.FromCode(languageCode);

if (language.Transliterator.Equals(nameof(PodolakTransliterator)) ||
language.Transliterator.Equals(nameof(ThailitTransliterator)) ||
language.Transliterator.Equals(nameof(TranslitterationDotComTransliterator)) ||
language.Transliterator.Equals(nameof(UshuaiaTransliterator)))
{
Expand Down

This file was deleted.

1 change: 0 additions & 1 deletion TransliterationAPI/ServiceCollectionExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ static IServiceCollection AddTransliteratorServices(this IServiceCollection serv
.AddScoped<MarathiTransliterator>()
.AddScoped<PinyinTransliterator>()
.AddScoped<PodolakTransliterator>()
.AddScoped<ThailitTransliterator>()
.AddScoped<TranslitterationDotComTransliterator>()
.AddScoped<UshuaiaTransliterator>();
}
Expand Down

0 comments on commit 1be0ff3

Please sign in to comment.