You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-13
Original file line number
Diff line number
Diff line change
@@ -329,25 +329,25 @@ You must also load any portion of the CLDR data you plan to use in your library
329
329
330
330
1: Unresolved processing is **only available** after loading `cldr/unresolved.js` extension module.
331
331
332
-
-**`cldr = new Cldr( locale )`**
332
+
-**`new Cldr( locale )`**
333
333
334
334
Create a new instance of Cldr.
335
335
336
336
[Read more...](doc/api/core/constructor.md)
337
337
338
-
-**`cldr.attributes`**
338
+
-**`.attributes`**
339
339
340
340
Attributes is an Object created during instance initialization (construction), and are used internally by `.get()` to replace dynamic parts of an item path.
341
341
342
342
[Read more...](doc/api/core/attributes.md)
343
343
344
-
-**`cldr.get( path )`**
344
+
-**`.get( path )`**
345
345
346
346
Get the item data given its path, or `undefined` if missing.
347
347
348
348
[Read more...](doc/api/core/get.md)
349
349
350
-
-**`cldr.main( path )`**
350
+
-**`.main( path )`**
351
351
352
352
It's an alias for `.get([ "main/{languageId}", ... ])`.
353
353
@@ -373,19 +373,19 @@ You must also load any portion of the CLDR data you plan to use in your library
373
373
374
374
[Read more...](doc/api/event/global_off.md)
375
375
376
-
-**`cldr.on( event, listener )`**
376
+
-**`.on( event, listener )`**
377
377
378
378
Add a listener function to the specified event for this instance.
379
379
380
380
[Read more...](doc/api/event/on.md)
381
381
382
-
-**`cldr.once( event, listener )`**
382
+
-**`.once( event, listener )`**
383
383
384
384
Add a listener function to the specified event for this instance. It will be automatically removed after it's first execution.
385
385
386
386
[Read more...](doc/api/event/once.md)
387
387
388
-
-**`cldr.off( event, listener )`**
388
+
-**`.off( event, listener )`**
389
389
390
390
Remove a listener function from the specified event for this instance.
391
391
@@ -401,39 +401,39 @@ You must also load any portion of the CLDR data you plan to use in your library
401
401
402
402
### cldr/supplemental.js
403
403
404
-
-**`cldr.supplemental( path )`**
404
+
-**`.supplemental( path )`**
405
405
406
406
It's an alias for `.get([ "supplemental", ... ])`.
407
407
408
408
[Read more...](doc/api/supplemental.md)
409
409
410
-
-**`cldr.supplemental.timeData.allowed()`**
410
+
-**`.supplemental.timeData.allowed()`**
411
411
412
412
Helper function. Return the supplemental timeData allowed of locale's territory.
Overload (extend) `.get()` to get the item data or lookup by following [locale inheritance](http://www.unicode.org/reports/tr35/#Locale_Inheritance), set a local resolved cache if it's found (for subsequent faster access), or return `undefined`.
Copy file name to clipboardExpand all lines: doc/api/core/attributes.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
## cldr.attributes
1
+
## .attributes
2
2
3
3
Attributes is an Object created during instance initialization (construction), and are used internally by `.get()` to replace dynamic parts of an item path.
Copy file name to clipboardExpand all lines: doc/api/unresolved/get.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
## cldr.get( path )
1
+
## .get( path )
2
2
3
3
Overload (extend) `.get()` to get the item data or lookup by following [locale inheritance](http://www.unicode.org/reports/tr35/#Locale_Inheritance), set a local resolved cache if it's found (for subsequent faster access), or return `undefined`.
0 commit comments