@doodad-js/locale

5.1.0-beta.1 • Public • Published

Locales provider.

NPM Version

Installation

$ npm install @doodad-js/locale

Features

  • Provides GNU-C's locales data as objects.
  • Doesn't currently support LC_COLLATE, but it will eventually.
  • Test a character for an Unicode character class.

Quick Start

    "use strict";

	require('@doodad-js/core').createRoot()
		.then(root => {
			return root.Doodad.Modules.load([
				{
					module: '@doodad-js/locale'
				}
			]);
		})
		.then(root => {
			const locale = root.Doodad.Tools.Locale;
			return locale.load('fr_FR');
		}).then(loc => {
			console.log(loc);
		}).catch(err => {
			console.error(err);
		});

Other available packages

  • @doodad-js/core: Object-oriented programming framework (release)
  • @doodad-js/cluster: Cluster manager (alpha)
  • @doodad-js/dates: Dates formatting (beta)
  • @doodad-js/http: Http server (alpha)
  • @doodad-js/http_jsonrpc: JSON-RPC over http server (alpha)
  • @doodad-js/io: I/O module (alpha)
  • @doodad-js/ipc: IPC/RPC server (alpha)
  • @doodad-js/json: JSON parser (alpha)
  • @doodad-js/loader: Scripts loader (beta)
  • @doodad-js/locale: Locales (beta)
  • @doodad-js/make: Make tools for doodad (alpha)
  • @doodad-js/mime: Mime types (beta)
  • @doodad-js/minifiers: Javascript minifier used by doodad (alpha)
  • @doodad-js/safeeval: SafeEval (beta)
  • @doodad-js/server: Servers base module (alpha)
  • @doodad-js/templates: HTML page templates (alpha)
  • @doodad-js/terminal: Terminal (alpha)
  • @doodad-js/test: Test application
  • @doodad-js/unicode: Unicode Tools (beta)
  • @doodad-js/widgets: Widgets base module (alpha)
  • @doodad-js/xml: XML Parser (beta)

License

Apache-2.0

This package includes data from the GNU C Library, licensed under the "GNU Lesser General Public License".

This package also includes data from Moment.js, licensed under MIT.

Package Sidebar

Install

npm i @doodad-js/locale

Weekly Downloads

5

Version

5.1.0-beta.1

License

Apache-2.0

Unpacked Size

81.4 MB

Total Files

1344

Last publish

Collaborators

  • doodadjs