fixed comment into code
This commit is contained in:
@@ -2,21 +2,21 @@ using System.ComponentModel;
|
||||
|
||||
namespace CursorLang.Services;
|
||||
|
||||
/// <summary>Язык интерфейса для выбора в настройках.</summary>
|
||||
/// <param name="Code">Код культуры: «ru», «en».</param>
|
||||
/// <param name="DisplayName">Название на самом этом языке.</param>
|
||||
/// <summary>An interface language to choose from in the settings.</summary>
|
||||
/// <param name="Code">The culture code: "ru", "en".</param>
|
||||
/// <param name="DisplayName">The name in that very language.</param>
|
||||
public sealed record LanguageOption(string Code, string DisplayName)
|
||||
{
|
||||
// Средства доступности берут имя элемента списка отсюда
|
||||
// Accessibility tools take the name of the list item from here
|
||||
public override string ToString() => DisplayName;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Даёт строки интерфейса и умеет менять язык без перезапуска.
|
||||
/// Provides the interface strings and can change the language without a restart.
|
||||
/// </summary>
|
||||
public interface ILocalizationService : INotifyPropertyChanged
|
||||
{
|
||||
/// <summary>Строка по ключу ресурса. Привязки обновляются при смене языка.</summary>
|
||||
/// <summary>The string for a resource key. Bindings update when the language changes.</summary>
|
||||
string this[string key] { get; }
|
||||
|
||||
IReadOnlyList<LanguageOption> AvailableLanguages { get; }
|
||||
|
||||
Reference in New Issue
Block a user