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

Commit

Permalink
no longer document Language#months as an array moment#25
Browse files Browse the repository at this point in the history
  • Loading branch information
timrwood committed Jul 7, 2013
1 parent ba6a28d commit fd5d15b
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 23 deletions.
10 changes: 5 additions & 5 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<link href='http://fonts.googleapis.com/css?family=Roboto+Slab:300,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="/static/css/style.css?v=2013-07-07T11:47:01-07:00" />
<link rel="stylesheet" href="/static/css/style.css?v=2013-07-07T11:52:44-07:00" />
<title>Moment.js | Documentation</title>
</head>
<body class="is-core is-docs">
Expand Down Expand Up @@ -2284,9 +2284,9 @@ <h3>
globalLang.format(<span class="string">'LLLL'</span>); <span class="comment">// Domingo 15 Julio 2012 11:03</span></code></pre>
<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>
<pre><code class="lang-javascript"><span class="keyword">var</span> fr = moment().lang(<span class="string">'fr'</span>);
fr.lang().months <span class="comment">// ["janvier", "février", "mars", ...]</span>
fr.lang().months(moment([<span class="number">2012</span>, <span class="number">0</span>])) <span class="comment">// "janvier"</span>
fr.lang(<span class="string">'en'</span>);
fr.lang().months <span class="comment">// ["January", "February", "March", ...]</span></code></pre>
fr.lang().months(moment([<span class="number">2012</span>, <span class="number">0</span>])) <span class="comment">// "January"</span></code></pre>
<p>If you need to access the language data for a moment, this is the preferred way to do so.</p>

</div>
Expand Down Expand Up @@ -2646,7 +2646,7 @@ <h3>

<p>If your language uses &#39;am/pm&#39;, <code>Language#meridiem</code> can be ommitted, as those values are the defaults.</p>
<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>
<pre><code class="lang-javascript">moment.lang(<span class="string">'en'</span>, {
<pre><code class="lang-javascript">moment.lang(<span class="string">'zh-cn'</span>, {
meridiem : <span class="function"><span class="keyword">function</span> <span class="params">(hour, minute, isLowercase)</span> {</span>
<span class="keyword">if</span> (hour &lt; <span class="number">9</span>) {
<span class="keyword">return</span> <span class="string">"早上"</span>;
Expand Down Expand Up @@ -3218,7 +3218,7 @@ <h3>
</footer>

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


<script>
Expand Down
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<link href='http://fonts.googleapis.com/css?family=Roboto+Slab:300,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="/static/css/style.css?v=2013-07-07T11:47:01-07:00" />
<link rel="stylesheet" href="/static/css/style.css?v=2013-07-07T11:52:44-07:00" />
<title>Moment.js | Parse, validate, manipulate, and display dates in javascript.</title>
</head>
<body class="is-core is-home">
Expand Down Expand Up @@ -289,9 +289,9 @@ <h2>Internationalization</h2>
</footer>

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

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


<script>
Expand Down
2 changes: 1 addition & 1 deletion source/docs/customization/am-pm.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ If your language uses 'am/pm', `Language#meridiem` can be ommitted, as those val
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.

```javascript
moment.lang('en', {
moment.lang('zh-cn', {
meridiem : function (hour, minute, isLowercase) {
if (hour < 9) {
return "早上";
Expand Down
4 changes: 2 additions & 2 deletions source/docs/i18n/instance-language.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ If you call `moment#lang` with no parameters, you get back the language configur

```javascript
var fr = moment().lang('fr');
fr.lang().months // ["janvier", "février", "mars", ...]
fr.lang().months(moment([2012, 0])) // "janvier"
fr.lang('en');
fr.lang().months // ["January", "February", "March", ...]
fr.lang().months(moment([2012, 0])) // "January"
```

If you need to access the language data for a moment, this is the preferred way to do so.
6 changes: 3 additions & 3 deletions test/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<link href='http://fonts.googleapis.com/css?family=Roboto+Slab:300,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="/static/css/style.css?v=2013-07-07T11:47:01-07:00" />
<link rel="stylesheet" href="/static/css/style.css?v=2013-07-07T11:52:44-07:00" />
<title>Moment.js | Unit Tests</title>
</head>
<body class="is-core is-test">
Expand Down Expand Up @@ -58,9 +58,9 @@ <h2>Unit Tests</h2>
</footer>

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

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


<script>
Expand Down
6 changes: 3 additions & 3 deletions timezone/data/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<link href='http://fonts.googleapis.com/css?family=Roboto+Slab:300,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="/static/css/style.css?v=2013-07-07T11:47:01-07:00" />
<link rel="stylesheet" href="/static/css/style.css?v=2013-07-07T11:52:44-07:00" />
<title>Moment.js | Timezone support for Moment.js</title>
</head>
<body class="is-timezone is-data">
Expand Down Expand Up @@ -923,9 +923,9 @@ <h3>Pacific</h3>
</footer>

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

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


<script>
Expand Down
6 changes: 3 additions & 3 deletions timezone/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<link href='http://fonts.googleapis.com/css?family=Roboto+Slab:300,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="/static/css/style.css?v=2013-07-07T11:47:01-07:00" />
<link rel="stylesheet" href="/static/css/style.css?v=2013-07-07T11:52:44-07:00" />
<title>Moment.js | Timezone support for Moment.js</title>
</head>
<body class="is-timezone is-home">
Expand Down Expand Up @@ -64,9 +64,9 @@ <h3 class="map-label">
</footer>

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

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


<script>
Expand Down
6 changes: 3 additions & 3 deletions timezone/test/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<link href='http://fonts.googleapis.com/css?family=Roboto+Slab:300,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="/static/css/style.css?v=2013-07-07T11:47:01-07:00" />
<link rel="stylesheet" href="/static/css/style.css?v=2013-07-07T11:52:44-07:00" />
<title>Moment.js | Unit Tests</title>
</head>
<body class="is-timezone is-test">
Expand Down Expand Up @@ -58,9 +58,9 @@ <h2>Unit Tests</h2>
</footer>

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

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


<script>
Expand Down

0 comments on commit fd5d15b

Please sign in to comment.