ILanguageFallbacks interface

namespace: Serenity.Abstractions   assemblySerenity.Net.Core

Abstraction for local text registry that can return language fallbacks

public interface ILanguageFallbacks

Members

name description
GetLanguageFallbacks() Gets the explicitly registered language fallbacks
SetLanguageFallback(…) Sets the language fallback of the specified language. When a text is not found in one language, LocalTextRegistry checks its language fallback for a translation. Some implicit language fallback definitions exist even if none set. For example, "en" is language fallback ID of "en-US" and "en-UK", "tr" is language fallback ID of "tr-TR". Also, invariant language ID ("") is an implicit fallback of all languages.

See Also