Microsoft.AspNetCore.Localization
Determines the culture information for a request via the value of the Accept-Language header.
The maximum number of values in the Accept-Language header to attempt to create a
from for the current request.
Defaults to 3.
Determines the culture information for a request via the value of a cookie.
Represent the default cookie name used to track the user's preferred culture information, which is ".AspNetCore.Culture".
The name of the cookie that contains the user's preferred culture information.
Defaults to .
Creates a string representation of a for placement in a cookie.
The .
The cookie value.
Parses a from the specified cookie value.
Returns null if parsing fails.
The cookie value to parse.
The or null if parsing fails.
Determines the culture information for a request via the configured delegate.
Creates a new using the specified delegate.
The provider delegate.
Represents the feature that provides the current request's culture information.
The of the request.
The that determined the request's culture information.
If the value is null then no provider was used and the request's culture was set to the value of
.
Represents a provider for determining the culture information of an .
Implements the provider to determine the culture of the given request.
The for the request.
The determined .
Returns null if the provider couldn't determine a .
Details about the cultures obtained from .
Creates a new object that has its and
properties set to the same culture value.
The name of the culture to be used for formatting, text, i.e. language.
Creates a new object has its and
properties set to the respective culture values provided.
The name of the culture to be used for formatting.
The name of the ui culture to be used for text, i.e. language.
Creates a new object that has its and
properties set to the same culture value.
The list of cultures to be used for formatting, text, i.e. language.
Creates a new object has its and
properties set to the respective culture values provided.
The list of cultures to be used for formatting.
The list of ui cultures to be used for text, i.e. language.
Gets the list of cultures to be used for formatting.
Gets the list of ui cultures to be used for text, i.e. language;
Determines the culture information for a request via values in the query string.
The key that contains the culture name.
Defaults to "culture".
The key that contains the UI culture name. If not specified or no value is found,
will be used.
Defaults to "ui-culture".
Details about the culture for an .
Creates a new object has its and
properties set to the same value.
The for the request.
Creates a new object has its and
properties set to the same value.
The culture for the request.
Creates a new object has its and
properties set to the respective values provided.
The culture for the request to be used for formatting.
The culture for the request to be used for text, i.e. language.
Creates a new object has its and
properties set to the respective values provided.
The for the request to be used for formatting.
The for the request to be used for text, i.e. language.
Gets the for the request to be used for formatting.
Gets the for the request to be used for text, i.e. language;
Provides the current request's culture information.
Creates a new with the specified .
The .
The .
An abstract base class provider for determining the culture information of an .
The current options for the .
Enables automatic setting of the culture for s based on information
sent by the client in headers and logic provided by the application.
Creates a new .
The representing the next middleware in the pipeline.
The representing the options for the
.
Invokes the logic of the middleware.
The .
A that completes when the middleware has completed processing.
Extension methods for adding the to an application.
Adds the to automatically set culture information for
requests based on information provided by the client.
The .
The .
Adds the to automatically set culture information for
requests based on information provided by the client.
The .
The to configure the middleware with.
The .
Specifies options for the .
Creates a new with default values.
Gets or sets the default culture to use for requests when a supported culture could not be determined by
one of the configured s.
Defaults to and .
Gets or sets a value indicating whether to set a request culture to an parent culture in the case the
culture determined by the configured s is not in the
list but a parent culture is.
Defaults to true;
Note that the parent culture check is done using only the culture name.
If this property is true and the application is configured to support the culture "fr", but not the
culture "fr-FR", and a configured determines a request's culture is
"fr-FR", then the request's culture will be set to the culture "fr", as it is a parent of "fr-FR".
Gets or sets a value indicating whether to set a request UI culture to a parent culture in the case the
UI culture determined by the configured s is not in the
list but a parent culture is.
Defaults to true;
Note that the parent culture check is done using ony the culture name.
If this property is true and the application is configured to support the UI culture "fr", but not
the UI culture "fr-FR", and a configured determines a request's UI
culture is "fr-FR", then the request's UI culture will be set to the culture "fr", as it is a parent of
"fr-FR".
The cultures supported by the application. The will only set
the current request culture to an entry in this list.
Defaults to .
The UI cultures supported by the application. The will only set
the current request culture to an entry in this list.
Defaults to .
An ordered list of providers used to determine a request's culture information. The first provider that
returns a non-null result for a given request will be used.
Defaults to the following: