Add IETFTag property to language plugin interface and implementation

This commit is contained in:
Thorsten Sommer 2025-04-12 11:05:06 +02:00
parent ac731f6f78
commit 445fc579ac
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108
2 changed files with 8 additions and 0 deletions

View File

@ -18,4 +18,9 @@ public interface ILanguagePlugin
/// <param name="value">The desired text.</param> /// <param name="value">The desired text.</param>
/// <returns>True if the key exists, false otherwise.</returns> /// <returns>True if the key exists, false otherwise.</returns>
public bool TryGetText(string key, out string value); public bool TryGetText(string key, out string value);
/// <summary>
/// Gets the IETF tag of the language plugin.
/// </summary>
public string IETFTag { get; }
} }

View File

@ -127,4 +127,7 @@ public sealed class PluginLanguage : PluginBase, ILanguagePlugin
message = string.Empty; message = string.Empty;
return true; return true;
} }
/// <inheritdoc />
public string IETFTag => this.langCultureTag;
} }