mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-04 22:47:21 +00:00
Moved all extension methods into extension blocks (#1155)
This commit is contained in:
1 parent
acc7d09fa2
commit
c0a75f39ac
138 files changed
+5884
-4954
No files matched your search
@@ -6,19 +6,22 @@ public static class ReadWebContentStepsExtensions
|
||||
{
|
||||
private static string TB(string fallbackEN) => I18N.I.T(fallbackEN, typeof(ReadWebContentStepsExtensions).Namespace, nameof(ReadWebContentStepsExtensions));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the text representation of a given ReadWebContentSteps enum value.
|
||||
/// </summary>
|
||||
/// <param name="step">The ReadWebContentSteps enum value.</param>
|
||||
/// <returns>>The text representation of the process step.</returns>
|
||||
public static string GetText(this ReadWebContentSteps step) => step switch
|
||||
extension(ReadWebContentSteps step)
|
||||
{
|
||||
ReadWebContentSteps.START => TB("Start"),
|
||||
ReadWebContentSteps.LOADING => TB("Loading"),
|
||||
ReadWebContentSteps.PARSING => TB("Parsing"),
|
||||
ReadWebContentSteps.CLEANING => TB("Cleaning"),
|
||||
ReadWebContentSteps.DONE => TB("Done"),
|
||||
/// <summary>
|
||||
/// Gets the text representation of a given ReadWebContentSteps enum value.
|
||||
/// </summary>
|
||||
/// <returns>>The text representation of the process step.</returns>
|
||||
public string GetText() => 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")
|
||||
};
|
||||
_ => TB("n/a")
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user