// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic;
using System.Globalization;
namespace Microsoft.Extensions.Localization
{
///
/// Represents a service that provides localized strings.
///
public interface IStringLocalizer
{
///
/// Gets the string resource with the given name.
///
/// The name of the string resource.
/// The string resource as a .
LocalizedString this[string name] { get; }
///
/// Gets the string resource with the given name and formatted with the supplied arguments.
///
/// The name of the string resource.
/// The values to format the string with.
/// The formatted string resource as a .
LocalizedString this[string name, params object[] arguments] { get; }
///
/// Gets all string resources.
///
///
/// A indicating whether to include strings from parent cultures.
///
/// The strings.
IEnumerable GetAllStrings(bool includeParentCultures);
///
/// Creates a new for a specific .
///
/// The to use.
/// A culture-specific .
IStringLocalizer WithCulture(CultureInfo culture);
}
}