aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/documentation/lux/locale.lux
blob: f61a229d2d3d5017f9e46764233eef11a4a5406f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
(.module:
  [library
   [lux {"-" [char]}
    ["$" documentation {"+" [documentation:]}]
    [data
     [text
      ["%" format {"+" [format]}]]
     [collection
      ["." list]]]]]
  ["." / "_"
   ["#." language]
   ["#." territory]]
  [\\library
   ["." /]])

(documentation: /.Locale
  "A description of a locale; with territory, (optional) language, and (optional) text-encoding.")

(documentation: /.locale
  ""
  [(locale language territory encoding)])

(.def: .public documentation
  (.List $.Module)
  ($.module /._
            ""
            [..Locale
             ..locale
             ($.default /.code)
             ($.default /.hash)
             ($.default /.equivalence)]
            [/language.documentation
             /territory.documentation]))