ILanguageFallbacks.SetLanguageFallback method

namespace: Serenity.Abstractions   assemblySerenity.Net.Core

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.

public void SetLanguageFallback(string languageID, string fallbackID)
parameter description
languageID Language identifier. (e.g. en-US)
fallbackID language fallback identifier. (e.g. en)

See Also