• Modules
    • By category
    • By name
    • Most popular
    • Most downloaded
    • Repository
  • Register
  • Log in
  • Help
    • Start using Ceylon Herd
    • Publish your first module
    • Module publishing guidelines
    • All about Ceylon
    • Keyboard Shortcuts

    • s Focus search module bar
      ? Open this information panel
      j Move selection down
      k Move selection up
      enter Open current selection
Module info
Name
FroMage / ceylon.locale
Ceylon Locale Platform Module
Description

Provides information about locale-specific information including:

  • language,
  • currency,
  • numeric formats, and
  • data/time formats.

A locale is identified by a locale tag, as specified by IETF BCP 47, which contains:

  • a required language code, for example en, es, or ca,
  • an optional script code, for example, Latn, or Cyrl,
  • an optional country or region code, for example, AU, MX, or ES, and
  • optionally, one or more variant values, and
  • optionally, one or more extensions as name/value pairs.

Fields are separated by the character -. For example: en, ca, en-AU, es-MX.

A Locale instance may be obtained for a given tag, by calling locale:

assert (exists au = locale("en-AU"));

The system locale is also available.

The Locale object provides information about the Language, Currency and Formats of the locale it represents, along with information about the names of other languages and currencies in that locale.

Category SDK

The Ceylon SDK

Last Published Aug 21, 2017
Stats Downloads (JVM): 2547
Downloads (JS): 797
Source downloads: 2895
Module links Home
Code repository
Issue tracker
Imported By
Browse
List of published versions
1.3.3 JVM JavaScript JVM: 1.2.x, 1.3.x (latest) JavaScript: Unknown (10/0) Published Aug 21, 2017 Browse
View docs
1.3.2 JVM JavaScript JVM: 1.2.x, 1.3.x (latest) JavaScript: Unknown (10/0) Published Mar 1, 2017 Browse
View docs
1.3.1 JVM JavaScript JVM: 1.2.x, 1.3.x (latest) JavaScript: 1.2.1, 1.2.2, 1.3.x (latest) Published Nov 21, 2016 Browse
View docs
1.3.0 JVM JavaScript JVM: 1.2.x, 1.3.x (latest) JavaScript: 1.2.1, 1.2.2, 1.3.x (latest) Published Sep 15, 2016 Browse
View docs
1.2.2 JVM JavaScript JVM: 1.2.x, 1.3.x (latest) JavaScript: 1.2.1, 1.2.2, 1.3.x (latest) Published Mar 11, 2016 Browse
View docs
1.2.1 JVM JavaScript JVM: 1.2.x, 1.3.x (latest) JavaScript: 1.2.1, 1.2.2, 1.3.x (latest) Published Feb 11, 2016 Browse
View docs
1.2.0 JVM JavaScript JVM: 1.2.x, 1.3.x (latest) JavaScript: 1.2.0 (outdated) Published Oct 28, 2015 Browse
View docs
1.1.0 JVM JavaScript JVM: 1.1.0 (outdated) JavaScript: 1.1.0 (outdated) Published Oct 8, 2014 Browse
View docs
You must be logged in to comment.

Ceylon Herd v1.24 Copyright 2012-2021 Red Hat. About