public static EcmaValue NumberingSystem([This] EcmaValue thisValue) { Locale locale = thisValue.GetUnderlyingObject <Locale>(); BcpLanguageTag tag = BcpLanguageTag.Parse(locale.LocaleString); return(tag.UExtensions["nu"]); }
public static EcmaValue Region([This] EcmaValue thisValue) { Locale locale = thisValue.GetUnderlyingObject <Locale>(); BcpLanguageTag tag = BcpLanguageTag.Parse(locale.LocaleString); return(tag.Region == "" ? default : tag.Region); }
public static EcmaValue Numeric([This] EcmaValue thisValue) { Locale locale = thisValue.GetUnderlyingObject <Locale>(); BcpLanguageTag tag = BcpLanguageTag.Parse(locale.LocaleString); return(tag.UExtensions["kn"] == "" || tag.UExtensions["kn"] == "true"); }
public static EcmaValue Language([This] EcmaValue thisValue) { Locale locale = thisValue.GetUnderlyingObject <Locale>(); BcpLanguageTag tag = BcpLanguageTag.Parse(locale.LocaleString); return(tag.Language); }
public Locale Maximize() { return(new Locale(BcpLanguageTag.Parse(this.LocaleString).Maximize())); }