Click or drag to resize
CultureInfoExtensionsGetRegionNeutralCulture Method
Computes and returns the region-neutral parent culture of the input culture. If the input culture is already neutral, it is returned. Otherwise, the parent culture hierarchy is traversed until a region-neutral culture is found.

Namespace: Sdl.LanguagePlatform.Core
Assembly: Sdl.LanguagePlatform.Core (in Sdl.LanguagePlatform.Core.dll) Version: 1.6.0.0 (1.7.3164.0)
Syntax
public static CultureInfo GetRegionNeutralCulture(
	CultureInfo culture
)

Parameters

culture
Type: System.GlobalizationCultureInfo
The input culture

Return Value

Type: CultureInfo
The region-neutral parent culture of the input culture
Remarks
A region-neutral culture is not necessarily one "without dashes". For example, the region-neutral parent culture of zh-CN (Chinese, PRC) is zh-CHS or zh-Hans (Simplified Chinese). The exact result may depend on the operating system version and the .Net version.
See Also
Community
Edit

Be the first to Edit the community content of this topic.
Comments