MCPcopy Create free account
hub / github.com/microsoft/SandDance / locale

Function locale

docs/app/js/sanddance-app.js:108763–108768  ·  view source on GitHub ↗

* Gets or sets the locale instance to use for formatting and parsing * string values. The locale object should be provided by the * vega-format library, and include methods such as format, timeFormat, * utcFormat, timeParse, and utcParse. * @param {object} _ - The locale instance to use.

(_)

Source from the content-addressed store, hash-verified

108761 * @return {object|Dataflow} - If no arguments are provided, returns
108762 * the current locale instance. Otherwise returns this Dataflow instance.
108763 */ locale (_) {
108764 if (arguments.length) {
108765 this._locale = _;
108766 return this;
108767 } else return this._locale;
108768 },
108769 /**
108770 * Get or set the logger instance used to log messages. If no arguments are
108771 * provided, returns the current logger instance. Otherwise, sets the logger

Callers

nothing calls this directly

Calls 5

numberFormatLocaleFunction · 0.70
timeFormatLocaleFunction · 0.70
timeFormatDefaultLocaleFunction · 0.70
createLocaleFunction · 0.70

Tested by

no test coverage detected