using AIStudio.Tools.PluginSystem;
namespace AIStudio.Components;
public static class ReadWebContentStepsExtensions
{
private static string TB(string fallbackEN) => I18N.I.T(fallbackEN, typeof(ReadWebContentStepsExtensions).Namespace, nameof(ReadWebContentStepsExtensions));
///
/// Gets the text representation of a given ReadWebContentSteps enum value.
///
/// The ReadWebContentSteps enum value.
/// >The text representation of the process step.
public static string GetText(this ReadWebContentSteps step) => step switch
{
ReadWebContentSteps.START => TB("Start"),
ReadWebContentSteps.LOADING => TB("Loading"),
ReadWebContentSteps.PARSING => TB("Parsing"),
ReadWebContentSteps.CLEANING => TB("Cleaning"),
ReadWebContentSteps.DONE => TB("Done"),
_ => TB("n/a")
};
}