Skip to content
This repository was archived by the owner on Mar 26, 2024. It is now read-only.

Commit fd5d15b

Browse files
committed
no longer document Language#months as an array moment#25
1 parent ba6a28d commit fd5d15b

File tree

8 files changed

+23
-23
lines changed

8 files changed

+23
-23
lines changed

docs/index.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="utf-8" />
55
<link href='http://fonts.googleapis.com/css?family=Roboto+Slab:300,700' rel='stylesheet' type='text/css'>
6-
<link rel="stylesheet" href="/static/css/style.css?v=2013-07-07T11:47:01-07:00" />
6+
<link rel="stylesheet" href="/static/css/style.css?v=2013-07-07T11:52:44-07:00" />
77
<title>Moment.js | Documentation</title>
88
</head>
99
<body class="is-core is-docs">
@@ -2284,9 +2284,9 @@ <h3>
22842284
globalLang.format(<span class="string">'LLLL'</span>); <span class="comment">// Domingo 15 Julio 2012 11:03</span></code></pre>
22852285
<p>If you call <code>moment#lang</code> with no parameters, you get back the language configuration that would be used for that moment.</p>
22862286
<pre><code class="lang-javascript"><span class="keyword">var</span> fr = moment().lang(<span class="string">'fr'</span>);
2287-
fr.lang().months <span class="comment">// ["janvier", "février", "mars", ...]</span>
2287+
fr.lang().months(moment([<span class="number">2012</span>, <span class="number">0</span>])) <span class="comment">// "janvier"</span>
22882288
fr.lang(<span class="string">'en'</span>);
2289-
fr.lang().months <span class="comment">// ["January", "February", "March", ...]</span></code></pre>
2289+
fr.lang().months(moment([<span class="number">2012</span>, <span class="number">0</span>])) <span class="comment">// "January"</span></code></pre>
22902290
<p>If you need to access the language data for a moment, this is the preferred way to do so.</p>
22912291

22922292
</div>
@@ -2646,7 +2646,7 @@ <h3>
26462646

26472647
<p>If your language uses &#39;am/pm&#39;, <code>Language#meridiem</code> can be ommitted, as those values are the defaults.</p>
26482648
<p>If your language needs any different computation for am/pm, <code>Language#meridiem</code> should be a callback function that returns the correct string based on hour, minute, and upper/lowercase.</p>
2649-
<pre><code class="lang-javascript">moment.lang(<span class="string">'en'</span>, {
2649+
<pre><code class="lang-javascript">moment.lang(<span class="string">'zh-cn'</span>, {
26502650
meridiem : <span class="function"><span class="keyword">function</span> <span class="params">(hour, minute, isLowercase)</span> {</span>
26512651
<span class="keyword">if</span> (hour &lt; <span class="number">9</span>) {
26522652
<span class="keyword">return</span> <span class="string">"早上"</span>;
@@ -3218,7 +3218,7 @@ <h3>
32183218
</footer>
32193219

32203220
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
3221-
<script src="/static/js/global.min.js?v=2013-07-07T11:47:01-07:00"></script>
3221+
<script src="/static/js/global.min.js?v=2013-07-07T11:52:44-07:00"></script>
32223222

32233223

32243224
<script>

index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="utf-8" />
55
<link href='http://fonts.googleapis.com/css?family=Roboto+Slab:300,700' rel='stylesheet' type='text/css'>
6-
<link rel="stylesheet" href="/static/css/style.css?v=2013-07-07T11:47:01-07:00" />
6+
<link rel="stylesheet" href="/static/css/style.css?v=2013-07-07T11:52:44-07:00" />
77
<title>Moment.js | Parse, validate, manipulate, and display dates in javascript.</title>
88
</head>
99
<body class="is-core is-home">
@@ -289,9 +289,9 @@ <h2>Internationalization</h2>
289289
</footer>
290290

291291
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
292-
<script src="/static/js/global.min.js?v=2013-07-07T11:47:01-07:00"></script>
292+
<script src="/static/js/global.min.js?v=2013-07-07T11:52:44-07:00"></script>
293293

294-
<script src="/static/js/core-home.js?v=2013-07-07T11:47:01-07:00"></script>
294+
<script src="/static/js/core-home.js?v=2013-07-07T11:52:44-07:00"></script>
295295

296296

297297
<script>

source/docs/customization/am-pm.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ If your language uses 'am/pm', `Language#meridiem` can be ommitted, as those val
33
If your language needs any different computation for am/pm, `Language#meridiem` should be a callback function that returns the correct string based on hour, minute, and upper/lowercase.
44

55
```javascript
6-
moment.lang('en', {
6+
moment.lang('zh-cn', {
77
meridiem : function (hour, minute, isLowercase) {
88
if (hour < 9) {
99
return "早上";

source/docs/i18n/instance-language.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ If you call `moment#lang` with no parameters, you get back the language configur
2424

2525
```javascript
2626
var fr = moment().lang('fr');
27-
fr.lang().months // ["janvier", "février", "mars", ...]
27+
fr.lang().months(moment([2012, 0])) // "janvier"
2828
fr.lang('en');
29-
fr.lang().months // ["January", "February", "March", ...]
29+
fr.lang().months(moment([2012, 0])) // "January"
3030
```
3131

3232
If you need to access the language data for a moment, this is the preferred way to do so.

test/index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="utf-8" />
55
<link href='http://fonts.googleapis.com/css?family=Roboto+Slab:300,700' rel='stylesheet' type='text/css'>
6-
<link rel="stylesheet" href="/static/css/style.css?v=2013-07-07T11:47:01-07:00" />
6+
<link rel="stylesheet" href="/static/css/style.css?v=2013-07-07T11:52:44-07:00" />
77
<title>Moment.js | Unit Tests</title>
88
</head>
99
<body class="is-core is-test">
@@ -58,9 +58,9 @@ <h2>Unit Tests</h2>
5858
</footer>
5959

6060
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
61-
<script src="/static/js/global.min.js?v=2013-07-07T11:47:01-07:00"></script>
61+
<script src="/static/js/global.min.js?v=2013-07-07T11:52:44-07:00"></script>
6262

63-
<script src="/static/js/core-test.js?v=2013-07-07T11:47:01-07:00"></script>
63+
<script src="/static/js/core-test.js?v=2013-07-07T11:52:44-07:00"></script>
6464

6565

6666
<script>

timezone/data/index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="utf-8" />
55
<link href='http://fonts.googleapis.com/css?family=Roboto+Slab:300,700' rel='stylesheet' type='text/css'>
6-
<link rel="stylesheet" href="/static/css/style.css?v=2013-07-07T11:47:01-07:00" />
6+
<link rel="stylesheet" href="/static/css/style.css?v=2013-07-07T11:52:44-07:00" />
77
<title>Moment.js | Timezone support for Moment.js</title>
88
</head>
99
<body class="is-timezone is-data">
@@ -923,9 +923,9 @@ <h3>Pacific</h3>
923923
</footer>
924924

925925
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
926-
<script src="/static/js/global.min.js?v=2013-07-07T11:47:01-07:00"></script>
926+
<script src="/static/js/global.min.js?v=2013-07-07T11:52:44-07:00"></script>
927927

928-
<script src="/static/js/timezone-data.js?v=2013-07-07T11:47:01-07:00"></script>
928+
<script src="/static/js/timezone-data.js?v=2013-07-07T11:52:44-07:00"></script>
929929

930930

931931
<script>

timezone/index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="utf-8" />
55
<link href='http://fonts.googleapis.com/css?family=Roboto+Slab:300,700' rel='stylesheet' type='text/css'>
6-
<link rel="stylesheet" href="/static/css/style.css?v=2013-07-07T11:47:01-07:00" />
6+
<link rel="stylesheet" href="/static/css/style.css?v=2013-07-07T11:52:44-07:00" />
77
<title>Moment.js | Timezone support for Moment.js</title>
88
</head>
99
<body class="is-timezone is-home">
@@ -64,9 +64,9 @@ <h3 class="map-label">
6464
</footer>
6565

6666
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
67-
<script src="/static/js/global.min.js?v=2013-07-07T11:47:01-07:00"></script>
67+
<script src="/static/js/global.min.js?v=2013-07-07T11:52:44-07:00"></script>
6868

69-
<script src="/static/js/timezone-home.js?v=2013-07-07T11:47:01-07:00"></script>
69+
<script src="/static/js/timezone-home.js?v=2013-07-07T11:52:44-07:00"></script>
7070

7171

7272
<script>

timezone/test/index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="utf-8" />
55
<link href='http://fonts.googleapis.com/css?family=Roboto+Slab:300,700' rel='stylesheet' type='text/css'>
6-
<link rel="stylesheet" href="/static/css/style.css?v=2013-07-07T11:47:01-07:00" />
6+
<link rel="stylesheet" href="/static/css/style.css?v=2013-07-07T11:52:44-07:00" />
77
<title>Moment.js | Unit Tests</title>
88
</head>
99
<body class="is-timezone is-test">
@@ -58,9 +58,9 @@ <h2>Unit Tests</h2>
5858
</footer>
5959

6060
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
61-
<script src="/static/js/global.min.js?v=2013-07-07T11:47:01-07:00"></script>
61+
<script src="/static/js/global.min.js?v=2013-07-07T11:52:44-07:00"></script>
6262

63-
<script src="/static/js/timezone-test.js?v=2013-07-07T11:47:01-07:00"></script>
63+
<script src="/static/js/timezone-test.js?v=2013-07-07T11:52:44-07:00"></script>
6464

6565

6666
<script>

0 commit comments

Comments
 (0)