Skip to content

Commit

Permalink
Added content type display in search results (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
Olaren15 committed May 18, 2024
1 parent a065761 commit b6154c6
Show file tree
Hide file tree
Showing 5 changed files with 413 additions and 39 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
namespace EasyTranslate.DalamudPlugin.Localisation;

using System;
using Domain.Entities;
using Resources;

public static class ContentTypeTranslations
{
public static string LocalisedName(this ContentType contentType)
{
return contentType switch
{
ContentType.Achievement => Strings.Achievement,
ContentType.Action => Strings.Action,
ContentType.Emote => Strings.Emote,
ContentType.Fate => Strings.Fate,
ContentType.Instance => Strings.Instance,
ContentType.Item => Strings.Item,
ContentType.LeveQuest => Strings.LeveQuest,
ContentType.Minion => Strings.Minion,
ContentType.Mount => Strings.Mount,
ContentType.Npc => Strings.Npc,
ContentType.Orchestrion => Strings.Orchestrion,
ContentType.Place => Strings.Place,
ContentType.Quest => Strings.Quest,
ContentType.Status => Strings.Status,
ContentType.Title => Strings.Title,
ContentType.Trait => Strings.Trait,
ContentType.Weather => Strings.Weather,
_ => throw new ArgumentOutOfRangeException(nameof(contentType), contentType, null),
};
}
}
Loading

0 comments on commit b6154c6

Please sign in to comment.