Interface GlobalizeStatic

Index

Properties

Methods

Properties

public cultureSelector: string

public cultures: GlobalizeCultures

Methods

public addCultureInfo(cultureName: string, baseCultureName: string, info: Object)

Parameters

  • cultureName: string
  • baseCultureName: string
  • info: Object

public addCultureInfo(cultureName: string, info: Object)

Parameters

  • cultureName: string
  • info: Object

public addCultureInfo(info: Object)

Parameters

  • info: Object

public culture(): GlobalizeCulture

Returns

GlobalizeCulture

public culture(cultureSelector: string): GlobalizeCulture

Parameters

  • cultureSelector: string

Returns

GlobalizeCulture

public culture(cultureSelector: Array<string>): GlobalizeCulture

Parameters

  • cultureSelector: Array<string>

Returns

GlobalizeCulture

public findClosestCulture(cultureSelector: string): GlobalizeStatic

Parameters

  • cultureSelector: string

Returns

GlobalizeStatic

public format(value: number, format: string, cultureSelector?: string): string

Parameters

  • value: number
  • format: string
  • cultureSelector?: string optional

Returns

string

public format(value: Date, format: string, cultureSelector?: string): string

Parameters

  • value: Date
  • format: string
  • cultureSelector?: string optional

Returns

string

public init(cultureSelector: string): GlobalizeStatic

Parameters

  • cultureSelector: string

Returns

GlobalizeStatic

public localize(key: string, cultureSelector?: string): string

Parameters

  • key: string
  • cultureSelector?: string optional

Returns

string

public parseDate(value: string, format?: string, cultureSelector?: string): Date

Parameters

  • value: string
  • format?: string optional
  • cultureSelector?: string optional

Returns

Date

public parseDate(value: string, formats?: Array<string>, cultureSelector?: string): Date

Parameters

  • value: string
  • formats?: Array<string> optional
  • cultureSelector?: string optional

Returns

Date

public parseFloat(value: string, radix?: number, cultureSelector?: string): number

Parameters

  • value: string
  • radix?: number optional
  • cultureSelector?: string optional

Returns

number

public parseInt(value: string, radix?: number, cultureSelector?: string): number

Parameters

  • value: string
  • radix?: number optional
  • cultureSelector?: string optional

Returns

number