PromptCultureModels.MapToNearestLanguage(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Use Recognizers-Text to normalize various potential Locale strings to a standard.
public static string MapToNearestLanguage (string cultureCode);
static member MapToNearestLanguage : string -> string
Public Shared Function MapToNearestLanguage (cultureCode As String) As String
Parameters
- cultureCode
- String
Represents locale. Examples: "en-US, en-us, EN".
Returns
Normalized locale.
Remarks
This is mostly a copy/paste from https://github.com/microsoft/Recognizers-Text/blob/master/.NET/Microsoft.Recognizers.Text/Culture.cs#L66 This doesn't directly use Recognizers-Text's MapToNearestLanguage because if they add language support before we do, it will break our prompts.