cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From audre...@apache.org
Subject svn commit: r1816665 [1/2] - in /cordova/site/public: ./ blog/ docs/en/dev/guide/support/ docs/en/dev/reference/cordova-plugin-contacts/ docs/en/dev/reference/cordova-plugin-legacy-whitelist/ news/2017/11/10/ news/2017/11/20/ static/css/ static/css/lib...
Date Thu, 30 Nov 2017 00:36:34 GMT
Author: audreyso
Date: Thu Nov 30 00:36:33 2017
New Revision: 1816665

URL: http://svn.apache.org/viewvc?rev=1816665&view=rev
Log:
Updated docs

Added:
    cordova/site/public/news/2017/11/20/
    cordova/site/public/news/2017/11/20/migrate-from-cordova-globalization-plugin.html
Modified:
    cordova/site/public/blog/index.html
    cordova/site/public/docs/en/dev/guide/support/index.html
    cordova/site/public/docs/en/dev/reference/cordova-plugin-contacts/index.html
    cordova/site/public/docs/en/dev/reference/cordova-plugin-legacy-whitelist/index.html
    cordova/site/public/feed.xml
    cordova/site/public/news/2017/11/10/plugins-release.html
    cordova/site/public/sitemap.xml
    cordova/site/public/static/css/lib/bootstrap.css
    cordova/site/public/static/css/lib/bootstrap.min.css
    cordova/site/public/static/css/lib/syntax.css
    cordova/site/public/static/css/main.css
    cordova/site/public/static/js/index.js
    cordova/site/public/static/js/plugins.js

Modified: cordova/site/public/blog/index.html
URL: http://svn.apache.org/viewvc/cordova/site/public/blog/index.html?rev=1816665&r1=1816664&r2=1816665&view=diff
==============================================================================
--- cordova/site/public/blog/index.html (original)
+++ cordova/site/public/blog/index.html Thu Nov 30 00:36:33 2017
@@ -124,6 +124,81 @@
             
             <li>
                 <header>
+                    <div class="adorner" blogTime="Mon, 20 Nov 2017 00:00:00 +0000"></div>
+                    <h2 class="title">
+                        <a href="/news/2017/11/20/migrate-from-cordova-globalization-plugin.html">Migrating from the Globalization Plugin</a>
+                    </h2>
+                    <div class="details">
+                        <span class="date">20 Nov 2017</span>
+                        - by
+                        <span class="author">
+                            
+                                <a href="https://twitter.com/tweetsbymishra">Vishal Mishra</a>
+                            
+                        </span>
+                        <a class="comment" href="/news/2017/11/20/migrate-from-cordova-globalization-plugin.html#disqus_thread"></a>
+                    </div>
+                </header>
+                <section class="post-excerpt">
+                    <p><h2>Migrating from the Cordova Globalization Plugin</h2>
+
+<p>The Cordova Globalization Plugin was created to obtain information and perform operations based on a user’s locale, language and timezone when most mobile platforms could not make a distinction between these settings. With the new API arrivals in the browser, we can now use the <a href="https://www.ecma-international.org/ecma-402/1.0/">ECMA Internationalization API</a> for achieving this goal on iOS, Android, Windows devices and desktop browsers. Hence, this cordova plugin is not needed any more and will be sunset soon.</p>
+
+<h3>Migrating from the plugin to the Internationalization API</h3>
+
+<p>The cordova globalization plugin defines a global navigator.globalization object which provides various methods to access a user’s locale, language and timezone. To get the preferred language from the browser, the navigator.globalization.getPreferredLanguage method was used as shown below:</p>
+<div class="highlight"><pre><code class="language-js" data-lang="js"><span class="nb">navigator</span><span class="p">.</span><span class="nx">globalization</span><span class="p">.</span><span class="nx">getPreferredLanguage</span><span class="p">(</span><span class="kd">function</span> <span class="p">(</span><span class="nx">language</span><span class="p">)</span> <span class="p">{</span>          
+    <span class="nx">console</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">'language: '</span> <span class="o">+</span> <span class="nx">language</span><span class="p">.</span><span class="nx">value</span> <span class="o">+</span> <span class="s1">'\n'</span><span class="p">);</span>
+<span class="p">},</span> <span class="kd">function</span> <span class="p">()</span> <span class="p">{</span> 
+    <span class="nx">console</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">'Error getting language\n'</span><span class="p">);</span> 
+<span class="p">});</span>
+</code></pre></div>
+<p>The current locale could be found out using:</p>
+<div class="highlight"><pre><code class="language-js" data-lang="js"><span class="nb">navigator</span><span class="p">.</span><span class="nx">globalization</span><span class="p">.</span><span class="nx">getLocaleName</span><span class="p">(</span><span class="kd">function</span> <span class="p">(</span><span class="nx">locale</span><span class="p">)</span> <span class="p">{</span>          
+    <span class="nx">console</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">'locale: '</span> <span class="o">+</span> <span class="nx">locale</span><span class="p">.</span><span class="nx">value</span> <span class="o">+</span> <span class="s1">'\n'</span><span class="p">);</span>
+<span class="p">},</span> <span class="kd">function</span> <span class="p">()</span> <span class="p">{</span>
+    <span class="nx">console</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">'Error getting locale\n'</span><span class="p">);</span> 
+<span class="p">});</span>
+</code></pre></div>
+<p>The <a href="https://www.ecma-international.org/ecma-402/1.0/">ECMA Internationalization API</a> provides the <code>Intl</code> object which provides language sensitive string comparison, number formatting, and date and time formatting. 
+First we should check if the API is supported by the browser:</p>
+<div class="highlight"><pre><code class="language-js" data-lang="js"><span class="k">if</span> <span class="p">(</span><span class="nb">window</span><span class="p">.</span><span class="nx">Intl</span> <span class="o">&amp;&amp;</span> <span class="k">typeof</span> <span class="nb">window</span><span class="p">.</span><span class="nx">Intl</span> <span class="o">===</span> <span class="s1">'object'</span><span class="p">)</span> <span class="p">{</span>
+    <span class="nx">console</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">'API available'</span><span class="p">);</span>
+<span class="p">}</span>
+</code></pre></div>
+<p>The preferred language tag can be found out from the browser by using the <code>navigator</code> object:</p>
+<div class="highlight"><pre><code class="language-js" data-lang="js"><span class="nx">console</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="nb">navigator</span><span class="p">.</span><span class="nx">language</span><span class="p">);</span>
+</code></pre></div>
+<p>The locale name can be found out using the <code>Intl.getCanonicalLocales(locales)</code> method. <code>locales</code> is a string value or an array of string values that has the language tag(s). The locale name can then be obtained as shown below:</p>
+<div class="highlight"><pre><code class="language-js" data-lang="js"><span class="nx">Intl</span><span class="p">.</span><span class="nx">getCanonicalLocales</span><span class="p">(</span><span class="s1">'EN-US'</span><span class="p">);</span> <span class="c1">// ["en-US"]</span>
+<span class="nx">Intl</span><span class="p">.</span><span class="nx">getCanonicalLocales</span><span class="p">([</span><span class="s1">'EN-US'</span><span class="p">,</span> <span class="s1">'Fr'</span><span class="p">]);</span> <span class="c1">// ["en-US", "fr"]</span>
+</code></pre></div>
+<p>Another instance of migrating from the cordova globalization plugin can be seen in this example: the navigator.globalization.dateToString method. This method is used in the cordova plugin as shown below:</p>
+<div class="highlight"><pre><code class="language-js" data-lang="js"><span class="nb">navigator</span><span class="p">.</span><span class="nx">globalization</span><span class="p">.</span><span class="nx">dateToString</span><span class="p">(</span>
+    <span class="k">new</span> <span class="nb">Date</span><span class="p">(),</span>
+    <span class="kd">function</span> <span class="p">(</span><span class="nx">date</span><span class="p">)</span> <span class="p">{</span> 
+        <span class="nx">alert</span><span class="p">(</span><span class="s1">'date: '</span> <span class="o">+</span> <span class="nx">date</span><span class="p">.</span><span class="nx">value</span> <span class="o">+</span> <span class="s1">'\n'</span><span class="p">);</span> 
+    <span class="p">},</span>
+    <span class="kd">function</span> <span class="p">()</span> <span class="p">{</span> 
+        <span class="nx">alert</span><span class="p">(</span><span class="s1">'Error getting dateString\n'</span><span class="p">);</span> 
+    <span class="p">},</span>
+    <span class="p">{</span> <span class="na">formatLength</span><span class="p">:</span> <span class="s1">'short'</span><span class="p">,</span> <span class="na">selector</span><span class="p">:</span> <span class="s1">'date'</span> <span class="p">}</span>
+<span class="p">);</span>
+</code></pre></div>
+<p>Similar results can be obtained using the Internationalization API by using the following code:</p>
+<div class="highlight"><pre><code class="language-js" data-lang="js"><span class="kd">var</span> <span class="nx">date</span> <span class="o">=</span> <span class="k">new</span> <span class="nb">Date</span><span class="p">();</span>
+<span class="nx">console</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="k">new</span> <span class="nx">Intl</span><span class="p">.</span><span class="nx">DateTimeFormat</span><span class="p">().</span><span class="nx">format</span><span class="p">(</span><span class="nx">date</span><span class="p">));</span>
+</code></pre></div>
+<p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl">Here</a> is a good resource to find out more about various methods in the <a href="https://www.ecma-international.org/ecma-402/1.0/">ECMA Internationalization API</a>.</p>
+
+<p>Your feedback is graciously accepted and appreciated!</p>
+</p>
+                    <div><a href="/news/2017/11/20/migrate-from-cordova-globalization-plugin.html">More...</a></div>
+                </section>
+            </li>
+            
+            <li>
+                <header>
                     <div class="adorner" blogTime="Fri, 10 Nov 2017 00:00:00 +0000"></div>
                     <h2 class="title">
                         <a href="/news/2017/11/10/plugins-release.html">Plugins Release</a>
@@ -6796,7 +6871,7 @@ window.twttr = (function(d, s, id) {
 <script>
     window.onload = function(){
         setTimeout(function(){
-            var lastPostTime = new Date("Fri, 10 Nov 2017 00:00:00 +0000").getTime();
+            var lastPostTime = new Date("Mon, 20 Nov 2017 00:00:00 +0000").getTime();
           setCookie("visitTime", lastPostTime, 365);
         }, 2000);
     };

Modified: cordova/site/public/docs/en/dev/guide/support/index.html
URL: http://svn.apache.org/viewvc/cordova/site/public/docs/en/dev/guide/support/index.html?rev=1816665&r1=1816664&r2=1816665&view=diff
==============================================================================
--- cordova/site/public/docs/en/dev/guide/support/index.html (original)
+++ cordova/site/public/docs/en/dev/guide/support/index.html Thu Nov 30 00:36:33 2017
@@ -2802,17 +2802,6 @@ the core plugins, additional APIs are av
     </tr>
 
     <tr>
-        <th><a href="../../reference/cordova-plugin-contacts/">Contacts</a></th>
-        <td data-col="android"    class="y"></td>
-        <td data-col="blackberry10" class="y"></td>
-        <td data-col="ios"        class="y"></td>
-        <td data-col="osx"       class="n"></td>
-        <td data-col="ubuntu"        class="p">desktop only</td>
-        <td data-col="win8"       class="p">partially</td>
-        <td data-col="wp8"  class="y"></td>
-    </tr>
-
-    <tr>
         <th><a href="../../reference/cordova-plugin-device/">Device</a></th>
         <td data-col="android"    class="y"></td>
         <td data-col="blackberry10" class="y"></td>
@@ -2846,17 +2835,6 @@ the core plugins, additional APIs are av
     </tr>
 
     <tr>
-        <th><a href="../../reference/cordova-plugin-file-transfer/">File Transfer</a></th>
-        <td data-col="android"    class="y"></td>
-        <td data-col="blackberry10" class="y">Does not support onprogress nor abort</td>
-        <td data-col="ios"        class="y"></td>
-        <td data-col="osx"       class="n"></td>
-        <td data-col="ubuntu"        class="n"></td>
-        <td data-col="win8"       class="y">Does not support onprogress nor abort</td>
-        <td data-col="wp8"  class="y">Does not support onprogress nor abort</td>
-    </tr>
-
-    <tr>
         <th><a href="../../reference/cordova-plugin-geolocation/">Geolocation</a></th>
         <td data-col="android"    class="y"></td>
         <td data-col="blackberry10" class="y"></td>

Modified: cordova/site/public/docs/en/dev/reference/cordova-plugin-contacts/index.html
URL: http://svn.apache.org/viewvc/cordova/site/public/docs/en/dev/reference/cordova-plugin-contacts/index.html?rev=1816665&r1=1816664&r2=1816665&view=diff
==============================================================================
--- cordova/site/public/docs/en/dev/reference/cordova-plugin-contacts/index.html (original)
+++ cordova/site/public/docs/en/dev/reference/cordova-plugin-contacts/index.html Thu Nov 30 00:36:33 2017
@@ -2777,6 +2777,10 @@ contact data.  For more information, ple
 
 <p>Report issues with this plugin on the <a href="https://issues.apache.org/jira/issues/?jql=project%20%3D%20CB%20AND%20status%20in%20%28Open%2C%20%22In%20Progress%22%2C%20Reopened%29%20AND%20resolution%20%3D%20Unresolved%20AND%20component%20%3D%20%22Plugin%20Contacts%22%20ORDER%20BY%20priority%20DESC%2C%20summary%20ASC%2C%20updatedDate%20DESC">Apache Cordova issue tracker</a></p>
 
+<h2>Deprecation Notice</h2>
+
+<p>This plugin is being deprecated. No more work will be done on this plugin by the Cordova development community. You can continue to use this plugin and it should work as-is in the future but any more arising issues will not be fixed by the Cordova community.</p>
+
 <h2>Installation</h2>
 
 <p>This requires cordova 5.0+ ( current stable v1.0.0 )</p>

Modified: cordova/site/public/docs/en/dev/reference/cordova-plugin-legacy-whitelist/index.html
URL: http://svn.apache.org/viewvc/cordova/site/public/docs/en/dev/reference/cordova-plugin-legacy-whitelist/index.html?rev=1816665&r1=1816664&r2=1816665&view=diff
==============================================================================
--- cordova/site/public/docs/en/dev/reference/cordova-plugin-legacy-whitelist/index.html (original)
+++ cordova/site/public/docs/en/dev/reference/cordova-plugin-legacy-whitelist/index.html Thu Nov 30 00:36:33 2017
@@ -2738,8 +2738,12 @@
 
 <h1>cordova-plugin-legacy-whitelist</h1>
 
+<h2>Description</h2>
+
+<h3>Deprecation Notice</h3>
+
 <p>This plugin implements the Cordova 3.6 Whitelist policy for Cordova 4.0.
-Please use cordova-plugin-whitelist instead, as it&#39;s more secure.</p>
+Please use <a href="https://github.com/apache/cordova-plugin-whitelist">cordova-plugin-whitelist</a> instead, as it&#39;s more secure.</p>
 
 <p>Supported on:</p>
 

Modified: cordova/site/public/feed.xml
URL: http://svn.apache.org/viewvc/cordova/site/public/feed.xml?rev=1816665&r1=1816664&r2=1816665&view=diff
==============================================================================
--- cordova/site/public/feed.xml (original)
+++ cordova/site/public/feed.xml Thu Nov 30 00:36:33 2017
@@ -6,11 +6,79 @@
 </description>
     <link>https://cordova.apache.org/</link>
     <atom:link href="https://cordova.apache.org/feed.xml" rel="self" type="application/rss+xml"/>
-    <pubDate>Wed, 15 Nov 2017 19:21:28 +0000</pubDate>
-    <lastBuildDate>Wed, 15 Nov 2017 19:21:28 +0000</lastBuildDate>
+    <pubDate>Thu, 30 Nov 2017 00:16:58 +0000</pubDate>
+    <lastBuildDate>Thu, 30 Nov 2017 00:16:58 +0000</lastBuildDate>
     <generator>Jekyll v2.5.3</generator>
     
       <item>
+        <title>Migrating from the Globalization Plugin</title>
+        <description>&lt;h2&gt;Migrating from the Cordova Globalization Plugin&lt;/h2&gt;
+
+&lt;p&gt;The Cordova Globalization Plugin was created to obtain information and perform operations based on a user’s locale, language and timezone when most mobile platforms could not make a distinction between these settings. With the new API arrivals in the browser, we can now use the &lt;a href=&quot;https://www.ecma-international.org/ecma-402/1.0/&quot;&gt;ECMA Internationalization API&lt;/a&gt; for achieving this goal on iOS, Android, Windows devices and desktop browsers. Hence, this cordova plugin is not needed any more and will be sunset soon.&lt;/p&gt;
+
+&lt;h3&gt;Migrating from the plugin to the Internationalization API&lt;/h3&gt;
+
+&lt;p&gt;The cordova globalization plugin defines a global navigator.globalization object which provides various methods to access a user’s locale, language and timezone. To get the preferred language from the browser, the navigator.globalization.getPreferredLanguage method was used as shown below:&lt;/p&gt;
+&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-js&quot; data-lang=&quot;js&quot;&gt;&lt;span class=&quot;nb&quot;&gt;navigator&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;globalization&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;getPreferredLanguage&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;kd&quot;&gt;function&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;language&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;          
+    &lt;span class=&quot;nx&quot;&gt;console&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;log&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&#39;language: &#39;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;language&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;value&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&#39;\n&#39;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
+&lt;span class=&quot;p&quot;&gt;},&lt;/span&gt; &lt;span class=&quot;kd&quot;&gt;function&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;()&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt; 
+    &lt;span class=&quot;nx&quot;&gt;console&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;log&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&#39;Error getting language\n&#39;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt; 
+&lt;span class=&quot;p&quot;&gt;});&lt;/span&gt;
+&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
+&lt;p&gt;The current locale could be found out using:&lt;/p&gt;
+&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-js&quot; data-lang=&quot;js&quot;&gt;&lt;span class=&quot;nb&quot;&gt;navigator&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;globalization&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;getLocaleName&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;kd&quot;&gt;function&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;locale&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;          
+    &lt;span class=&quot;nx&quot;&gt;console&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;log&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&#39;locale: &#39;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;locale&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;value&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&#39;\n&#39;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
+&lt;span class=&quot;p&quot;&gt;},&lt;/span&gt; &lt;span class=&quot;kd&quot;&gt;function&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;()&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
+    &lt;span class=&quot;nx&quot;&gt;console&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;log&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&#39;Error getting locale\n&#39;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt; 
+&lt;span class=&quot;p&quot;&gt;});&lt;/span&gt;
+&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
+&lt;p&gt;The &lt;a href=&quot;https://www.ecma-international.org/ecma-402/1.0/&quot;&gt;ECMA Internationalization API&lt;/a&gt; provides the &lt;code&gt;Intl&lt;/code&gt; object which provides language sensitive string comparison, number formatting, and date and time formatting. 
+First we should check if the API is supported by the browser:&lt;/p&gt;
+&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-js&quot; data-lang=&quot;js&quot;&gt;&lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;window&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;Intl&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;typeof&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;window&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;Intl&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;===&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&#39;object&#39;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
+    &lt;span class=&quot;nx&quot;&gt;console&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;log&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&#39;API available&#39;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
+&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
+&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
+&lt;p&gt;The preferred language tag can be found out from the browser by using the &lt;code&gt;navigator&lt;/code&gt; object:&lt;/p&gt;
+&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-js&quot; data-lang=&quot;js&quot;&gt;&lt;span class=&quot;nx&quot;&gt;console&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;log&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;navigator&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;language&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
+&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
+&lt;p&gt;The locale name can be found out using the &lt;code&gt;Intl.getCanonicalLocales(locales)&lt;/code&gt; method. &lt;code&gt;locales&lt;/code&gt; is a string value or an array of string values that has the language tag(s). The locale name can then be obtained as shown below:&lt;/p&gt;
+&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-js&quot; data-lang=&quot;js&quot;&gt;&lt;span class=&quot;nx&quot;&gt;Intl&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;getCanonicalLocales&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&#39;EN-US&#39;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;// [&quot;en-US&quot;]&lt;/span&gt;
+&lt;span class=&quot;nx&quot;&gt;Intl&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;getCanonicalLocales&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;([&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&#39;EN-US&#39;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&#39;Fr&#39;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]);&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;// [&quot;en-US&quot;, &quot;fr&quot;]&lt;/span&gt;
+&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
+&lt;p&gt;Another instance of migrating from the cordova globalization plugin can be seen in this example: the navigator.globalization.dateToString method. This method is used in the cordova plugin as shown below:&lt;/p&gt;
+&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-js&quot; data-lang=&quot;js&quot;&gt;&lt;span class=&quot;nb&quot;&gt;navigator&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;globalization&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;dateToString&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;
+    &lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;Date&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(),&lt;/span&gt;
+    &lt;span class=&quot;kd&quot;&gt;function&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;date&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt; 
+        &lt;span class=&quot;nx&quot;&gt;alert&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&#39;date: &#39;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;date&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;value&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&#39;\n&#39;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt; 
+    &lt;span class=&quot;p&quot;&gt;},&lt;/span&gt;
+    &lt;span class=&quot;kd&quot;&gt;function&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;()&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt; 
+        &lt;span class=&quot;nx&quot;&gt;alert&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&#39;Error getting dateString\n&#39;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt; 
+    &lt;span class=&quot;p&quot;&gt;},&lt;/span&gt;
+    &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;formatLength&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&#39;short&#39;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;selector&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&#39;date&#39;&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
+&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
+&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
+&lt;p&gt;Similar results can be obtained using the Internationalization API by using the following code:&lt;/p&gt;
+&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-js&quot; data-lang=&quot;js&quot;&gt;&lt;span class=&quot;kd&quot;&gt;var&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;date&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;Date&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;();&lt;/span&gt;
+&lt;span class=&quot;nx&quot;&gt;console&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;log&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;Intl&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;DateTimeFormat&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;().&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;format&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;date&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;));&lt;/span&gt;
+&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
+&lt;p&gt;&lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl&quot;&gt;Here&lt;/a&gt; is a good resource to find out more about various methods in the &lt;a href=&quot;https://www.ecma-international.org/ecma-402/1.0/&quot;&gt;ECMA Internationalization API&lt;/a&gt;.&lt;/p&gt;
+
+&lt;p&gt;Your feedback is graciously accepted and appreciated!&lt;/p&gt;
+</description>
+        <pubDate>Mon, 20 Nov 2017 00:00:00 +0000</pubDate>
+        <link>https://cordova.apache.org/news/2017/11/20/migrate-from-cordova-globalization-plugin.html</link>
+        <guid isPermaLink="true">https://cordova.apache.org/news/2017/11/20/migrate-from-cordova-globalization-plugin.html</guid>
+        
+        <category>cordova</category>
+        
+        <category>globalization</category>
+        
+        
+        <category>news</category>
+        
+      </item>
+    
+      <item>
         <title>Plugins Release</title>
         <description>&lt;p&gt;The following plugins were updated today:&lt;/p&gt;
 
@@ -901,64 +969,6 @@ cordova platform update android@6.3.0
         
         <category>news</category>
         
-        <category>releases</category>
-        
-        
-        <category>announcements</category>
-        
-      </item>
-    
-      <item>
-        <title>Cordova iOS 4.5.1</title>
-        <description>&lt;p&gt;We are happy to announce a minor version of &lt;code&gt;Cordova iOS 4.5.1&lt;/code&gt; has been released!&lt;/p&gt;
-
-&lt;p&gt;This version provides updates for the latest iOS 11 and Xcode 9. You can now create builds for this new version and properly deploy to either the emulator or device.&lt;/p&gt;
-
-&lt;p&gt;Things to note:&lt;/p&gt;
-
-&lt;ul&gt;
-&lt;li&gt;For iPhone X&amp;#39;s new screen size, you must use Launch Storyboards to take full advantage of it&lt;/li&gt;
-&lt;li&gt;Current Splash Screen images will result in letterboxing&lt;/li&gt;
-&lt;/ul&gt;
-
-&lt;p&gt;Apple has also made some changes that could effect your current apps, specifically around the viewport. Here are a few resources that could help with your transition to iOS 11:&lt;/p&gt;
-
-&lt;ol&gt;
-&lt;li&gt;&lt;a href=&quot;https://webkit.org/blog/7929/designing-websites-for-iphone-x/&quot;&gt;Designing Websites for iPhone X&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://ayogo.com/blog/ios11-viewport/&quot;&gt;Understanding the WebView Viewport in iOS 11&lt;/a&gt;&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;http://stephenradford.me/removing-the-white-bars-in-safari-on-iphone-x/&quot;&gt;Removing the White Bars in Safari on iPhone X&lt;/a&gt;&lt;/li&gt;
-&lt;/ol&gt;
-
-&lt;p&gt;We are also aware that there are specific issues related to the Status Bar plugin. The team is working to resolve these for the next release of the plugin.&lt;/p&gt;
-
-&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; When updating &lt;strong&gt;iOS&lt;/strong&gt;, make sure to save your plugins as current unsaved plugins may not be reinstalled otherwise. Run the following command in your project to save your currently installed plugins into &lt;code&gt;config.xml&lt;/code&gt;:&lt;/p&gt;
-&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-&quot; data-lang=&quot;&quot;&gt;cordova plugin save
-&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
-&lt;p&gt;To upgrade:&lt;/p&gt;
-&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-&quot; data-lang=&quot;&quot;&gt;npm install -g cordova
-cd my_project
-cordova platform rm ios
-cordova platform add ios@4.5.1
-&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
-&lt;p&gt;To add it explicitly:&lt;/p&gt;
-&lt;div class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-&quot; data-lang=&quot;&quot;&gt;cordova platform add ios@4.5.1
-&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
-&lt;!--more--&gt;
-
-&lt;h2&gt;What&amp;#39;s new in iOS&lt;/h2&gt;
-
-&lt;ul&gt;
-&lt;li&gt;&lt;a href=&quot;https://issues.apache.org/jira/browse/CB-13310&quot;&gt;CB-13310&lt;/a&gt; Updated checked-in node_modules&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://issues.apache.org/jira/browse/CB-13191&quot;&gt;CB-13191&lt;/a&gt; (ios) Support marketing icon (#337)&lt;/li&gt;
-&lt;li&gt;&lt;a href=&quot;https://issues.apache.org/jira/browse/CB-12888&quot;&gt;CB-12888&lt;/a&gt; - cordova emulate &lt;strong&gt;iOS&lt;/strong&gt; doesn&amp;#39;t work in &lt;strong&gt;iOS&lt;/strong&gt; 11&lt;/li&gt;
-&lt;/ul&gt;
-</description>
-        <pubDate>Mon, 25 Sep 2017 00:00:00 +0000</pubDate>
-        <link>https://cordova.apache.org/announcements/2017/09/25/ios-release.html</link>
-        <guid isPermaLink="true">https://cordova.apache.org/announcements/2017/09/25/ios-release.html</guid>
-        
-        <category>news</category>
-        
         <category>releases</category>
         
         

Modified: cordova/site/public/news/2017/11/10/plugins-release.html
URL: http://svn.apache.org/viewvc/cordova/site/public/news/2017/11/10/plugins-release.html?rev=1816665&r1=1816664&r2=1816665&view=diff
==============================================================================
--- cordova/site/public/news/2017/11/10/plugins-release.html (original)
+++ cordova/site/public/news/2017/11/10/plugins-release.html Thu Nov 30 00:36:33 2017
@@ -427,6 +427,26 @@ cordova plugin add cordova-plugin-camera
             </div>
             <div class="col-sm-6">
                 
+                    <a href="/news/2017/11/20/migrate-from-cordova-globalization-plugin.html">Next</a>
+                    <br>
+                    <br>
+                    <a class="title" href="/news/2017/11/20/migrate-from-cordova-globalization-plugin.html">Migrating from the Globalization Plugin</a>
+                    <div class="date"> 20 Nov 2017 - By Vishal Mishra </div>
+                    <p class="content">
+                        <!--
+                            NOTE:
+                                the markdownify filter is used here
+                                because posts are rendered in sequence;
+                                that is, the next post's content isn't
+                                yet rendered at the time that this post
+                                is being rendered, so page.next.excerpt
+                                is still in Markdown and not HTML
+
+                            Reference: https://github.com/jekyll/jekyll/issues/2860
+                        -->
+                        Migrating from the Cordova Globalization Plugin The Cordova Globalization Plugin was created...
+                    </p>
+                
             </div>
         </div>
     </footer>

Added: cordova/site/public/news/2017/11/20/migrate-from-cordova-globalization-plugin.html
URL: http://svn.apache.org/viewvc/cordova/site/public/news/2017/11/20/migrate-from-cordova-globalization-plugin.html?rev=1816665&view=auto
==============================================================================
--- cordova/site/public/news/2017/11/20/migrate-from-cordova-globalization-plugin.html (added)
+++ cordova/site/public/news/2017/11/20/migrate-from-cordova-globalization-plugin.html Thu Nov 30 00:36:33 2017
@@ -0,0 +1,326 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+    <meta charset="utf-8">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+    <meta name="format-detection" content="telephone=no">
+    <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width" />
+    <meta name="description" content="Migrating from the Cordova Globalization PluginThe Cordova Globalization Plugin was created to obtain information and perform operations based on a user’s lo...">
+
+    <title>
+        
+            
+                Migrating from the Globalization Plugin - Apache Cordova
+            
+        
+    </title>
+
+    <link rel="SHORTCUT ICON" href="/favicon.ico"/>
+
+    
+
+    
+    
+
+    <link rel="canonical" href="https://cordova.apache.org/news/2017/11/20/migrate-from-cordova-globalization-plugin.html">
+
+    <!-- CSS -->
+    <link rel="stylesheet" type="text/css" href="/static/css/main.css">
+    <link rel="stylesheet" type="text/css" href="/static/css/lib/syntax.css">
+    <!-- Algolia Search CSS -->
+    <link rel="stylesheet" href="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.css" />
+
+    <!-- Fonts -->
+    <!-- For attribution information, see www/attributions.html -->
+    <link href='https://fonts.googleapis.com/css?family=Raleway:700,400,300,700italic,400italic,300italic' rel='stylesheet' type='text/css'>
+
+    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
+    <!--[if lt IE 9]>
+        <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
+        <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
+    <![endif]-->
+    <script type="text/javascript">
+        var disqus_developer = 1; // this would set it to developer mode
+    </script>
+
+    <!-- JS -->
+    <script defer type="text/javascript" src="/static/js/lib/jquery-2.1.1.min.js"></script>
+    <script defer type="text/javascript" src="/static/js/lib/bootstrap.min.js"></script>
+    <script defer type="text/javascript" src="/static/js/lib/ZeroClipboard.js"></script>
+
+    <script>
+    (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+    (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+    m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+    })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
+    ga('create', 'UA-64283057-3', 'auto');
+    ga('send', 'pageview');
+</script>
+
+</head>
+
+<body>
+    <header>
+    <a class="scroll-point pt-top" name="top"></a>
+    <nav class="navbar navbar-inverse navbar-fixed-top">
+        <div class="container-fluid">
+            <div class="navbar-header">
+                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
+                    <span class="sr-only">Toggle navigation</span>
+                    <span class="icon-bar"></span>
+                    <span class="icon-bar"></span>
+                    <span class="icon-bar"></span>
+                </button>
+                <a class="navbar-brand" href="/"><img id="logo_top" src="/static/img/cordova-logo-newbrand.svg"/></a>
+            </div>
+            <div id="navbar" class="navbar-collapse collapse">
+                <div class="nav_bar_center">
+                    <ul class="nav navbar-nav">
+                        <li >
+                            <a href="/docs/en/latest/">Documentation</a>
+                        </li>
+                        <li >
+                            <a href="/plugins">Plugins</a>
+                        </li>
+                        <li class="active">
+                            <a href="/blog" id="blog_button">Blog<span class="badge" id="new_blog_count"></span></a>
+                        </li>
+                        <li >
+                            <a href="/contribute">Contribute</a>
+                        </li>
+                        <li>
+                            <a href="/#getstarted">Get Started</a>
+                        </li>
+                        <li>
+                            <form class="navbar-form navbar-right" id="header-search-form" role="search">
+                                <div class="input-group">
+                                    
+                                        
+                                    
+                                    <input id="header-search-field" type="text" placeholder="Search '7.x' docs..." class="form-control hidden-xs" autocomplete="off">
+                                </div>
+                            </form>
+                        </li>
+                    </ul>
+                </div>
+            </div><!--/.navbar-collapse -->
+        </div>
+    </nav>
+    <div id="_fixed_navbar_spacer" style="padding-top:50px"></div>
+</header>
+
+<div class="page container">
+    <div class="blog">
+    <h1 class="blogHeader">
+    Blog
+    <span class="rss">
+        <img src="/static/img/subscribe.png"><a href="/feed.xml">RSS Feed</a>
+    </span>
+</h1>
+
+<div class="post">
+    <header>
+        <div class="title">Migrating from the Globalization Plugin</div>
+        <div class="author">By:
+            
+              <a href="https://twitter.com/tweetsbymishra">Vishal Mishra</a>
+            
+        </div>
+        <div class="date">20 Nov 2017</div>
+    </header>
+    <section>
+        <div>
+            <h2>Migrating from the Cordova Globalization Plugin</h2>
+
+<p>The Cordova Globalization Plugin was created to obtain information and perform operations based on a user’s locale, language and timezone when most mobile platforms could not make a distinction between these settings. With the new API arrivals in the browser, we can now use the <a href="https://www.ecma-international.org/ecma-402/1.0/">ECMA Internationalization API</a> for achieving this goal on iOS, Android, Windows devices and desktop browsers. Hence, this cordova plugin is not needed any more and will be sunset soon.</p>
+
+<h3>Migrating from the plugin to the Internationalization API</h3>
+
+<p>The cordova globalization plugin defines a global navigator.globalization object which provides various methods to access a user’s locale, language and timezone. To get the preferred language from the browser, the navigator.globalization.getPreferredLanguage method was used as shown below:</p>
+<div class="highlight"><pre><code class="language-js" data-lang="js"><span class="nb">navigator</span><span class="p">.</span><span class="nx">globalization</span><span class="p">.</span><span class="nx">getPreferredLanguage</span><span class="p">(</span><span class="kd">function</span> <span class="p">(</span><span class="nx">language</span><span class="p">)</span> <span class="p">{</span>          
+    <span class="nx">console</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">'language: '</span> <span class="o">+</span> <span class="nx">language</span><span class="p">.</span><span class="nx">value</span> <span class="o">+</span> <span class="s1">'\n'</span><span class="p">);</span>
+<span class="p">},</span> <span class="kd">function</span> <span class="p">()</span> <span class="p">{</span> 
+    <span class="nx">console</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">'Error getting language\n'</span><span class="p">);</span> 
+<span class="p">});</span>
+</code></pre></div>
+<p>The current locale could be found out using:</p>
+<div class="highlight"><pre><code class="language-js" data-lang="js"><span class="nb">navigator</span><span class="p">.</span><span class="nx">globalization</span><span class="p">.</span><span class="nx">getLocaleName</span><span class="p">(</span><span class="kd">function</span> <span class="p">(</span><span class="nx">locale</span><span class="p">)</span> <span class="p">{</span>          
+    <span class="nx">console</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">'locale: '</span> <span class="o">+</span> <span class="nx">locale</span><span class="p">.</span><span class="nx">value</span> <span class="o">+</span> <span class="s1">'\n'</span><span class="p">);</span>
+<span class="p">},</span> <span class="kd">function</span> <span class="p">()</span> <span class="p">{</span>
+    <span class="nx">console</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">'Error getting locale\n'</span><span class="p">);</span> 
+<span class="p">});</span>
+</code></pre></div>
+<p>The <a href="https://www.ecma-international.org/ecma-402/1.0/">ECMA Internationalization API</a> provides the <code>Intl</code> object which provides language sensitive string comparison, number formatting, and date and time formatting. 
+First we should check if the API is supported by the browser:</p>
+<div class="highlight"><pre><code class="language-js" data-lang="js"><span class="k">if</span> <span class="p">(</span><span class="nb">window</span><span class="p">.</span><span class="nx">Intl</span> <span class="o">&amp;&amp;</span> <span class="k">typeof</span> <span class="nb">window</span><span class="p">.</span><span class="nx">Intl</span> <span class="o">===</span> <span class="s1">'object'</span><span class="p">)</span> <span class="p">{</span>
+    <span class="nx">console</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="s1">'API available'</span><span class="p">);</span>
+<span class="p">}</span>
+</code></pre></div>
+<p>The preferred language tag can be found out from the browser by using the <code>navigator</code> object:</p>
+<div class="highlight"><pre><code class="language-js" data-lang="js"><span class="nx">console</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="nb">navigator</span><span class="p">.</span><span class="nx">language</span><span class="p">);</span>
+</code></pre></div>
+<p>The locale name can be found out using the <code>Intl.getCanonicalLocales(locales)</code> method. <code>locales</code> is a string value or an array of string values that has the language tag(s). The locale name can then be obtained as shown below:</p>
+<div class="highlight"><pre><code class="language-js" data-lang="js"><span class="nx">Intl</span><span class="p">.</span><span class="nx">getCanonicalLocales</span><span class="p">(</span><span class="s1">'EN-US'</span><span class="p">);</span> <span class="c1">// ["en-US"]</span>
+<span class="nx">Intl</span><span class="p">.</span><span class="nx">getCanonicalLocales</span><span class="p">([</span><span class="s1">'EN-US'</span><span class="p">,</span> <span class="s1">'Fr'</span><span class="p">]);</span> <span class="c1">// ["en-US", "fr"]</span>
+</code></pre></div>
+<p>Another instance of migrating from the cordova globalization plugin can be seen in this example: the navigator.globalization.dateToString method. This method is used in the cordova plugin as shown below:</p>
+<div class="highlight"><pre><code class="language-js" data-lang="js"><span class="nb">navigator</span><span class="p">.</span><span class="nx">globalization</span><span class="p">.</span><span class="nx">dateToString</span><span class="p">(</span>
+    <span class="k">new</span> <span class="nb">Date</span><span class="p">(),</span>
+    <span class="kd">function</span> <span class="p">(</span><span class="nx">date</span><span class="p">)</span> <span class="p">{</span> 
+        <span class="nx">alert</span><span class="p">(</span><span class="s1">'date: '</span> <span class="o">+</span> <span class="nx">date</span><span class="p">.</span><span class="nx">value</span> <span class="o">+</span> <span class="s1">'\n'</span><span class="p">);</span> 
+    <span class="p">},</span>
+    <span class="kd">function</span> <span class="p">()</span> <span class="p">{</span> 
+        <span class="nx">alert</span><span class="p">(</span><span class="s1">'Error getting dateString\n'</span><span class="p">);</span> 
+    <span class="p">},</span>
+    <span class="p">{</span> <span class="na">formatLength</span><span class="p">:</span> <span class="s1">'short'</span><span class="p">,</span> <span class="na">selector</span><span class="p">:</span> <span class="s1">'date'</span> <span class="p">}</span>
+<span class="p">);</span>
+</code></pre></div>
+<p>Similar results can be obtained using the Internationalization API by using the following code:</p>
+<div class="highlight"><pre><code class="language-js" data-lang="js"><span class="kd">var</span> <span class="nx">date</span> <span class="o">=</span> <span class="k">new</span> <span class="nb">Date</span><span class="p">();</span>
+<span class="nx">console</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="k">new</span> <span class="nx">Intl</span><span class="p">.</span><span class="nx">DateTimeFormat</span><span class="p">().</span><span class="nx">format</span><span class="p">(</span><span class="nx">date</span><span class="p">));</span>
+</code></pre></div>
+<p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl">Here</a> is a good resource to find out more about various methods in the <a href="https://www.ecma-international.org/ecma-402/1.0/">ECMA Internationalization API</a>.</p>
+
+<p>Your feedback is graciously accepted and appreciated!</p>
+
+        </div>
+    </section>
+    <footer>
+        <div class="row">
+            <div class="col-sm-6">
+                
+                    <a href="/news/2017/11/10/plugins-release.html">Previous</a>
+                    <br>
+                    <br>
+                    <a class="title" href="/news/2017/11/10/plugins-release.html">Plugins Release</a>
+                    <div class="date"> 10 Nov 2017 - By Steve Gill </div>
+                    <p class="content">
+                        The following plugins were updated today: cordova-plugin-battery-status@1.2.5 cordova-plugin-camera@3.0.0 cordova-plugin-contacts@3.0.0 cordova-plugin-device@1.1.7 cordova-plugin-dialogs@1.3.4 cordova-plugin-file-transfer@1.7.0...
+                    </p>
+                
+            </div>
+            <div class="col-sm-6">
+                
+            </div>
+        </div>
+    </footer>
+    <div class="disqus">
+        <div id="disqus_thread"></div>
+<script type="text/javascript">
+    /* * * CONFIGURATION VARIABLES * * */
+    var disqus_shortname = 'cordovablogs';
+
+    /* * * DON'T EDIT BELOW THIS LINE * * */
+    (function() {
+        var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
+        dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
+        (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
+    })();
+</script>
+<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
+
+    </div>
+</div>
+
+</div>
+
+</div>
+
+<div class="blue-divider"></div>
+<footer>
+    <div class="container">
+        <div class="row">
+    <div class="col-sm-9">
+        <h1>More Resources</h1>
+        <div class="row">
+            <div class="col-sm-4">
+                <h2>General</h2>
+                <ul class="nav">
+                    <li>
+                        <a target="_blank" href="https://projects.apache.org/project.html?cordova">Apache Project Page</a>
+                    </li>
+                    <li>
+                        <a href="http://www.apache.org/dyn/closer.cgi/cordova">Source Distribution</a>
+                    </li>
+                    <li>
+                        <a target="_blank" href="http://www.apache.org/licenses/LICENSE-2.0">License</a>
+                    </li>
+                    <li>
+                        <a href="/artwork">Artwork</a>
+                    </li>
+                </ul>
+            </div>
+            <div class="col-sm-4">
+                <h2>Development</h2>
+                <ul class="nav">
+                    <li><a target="_blank" href="https://github.com/apache?utf8=%E2%9C%93&amp;q=cordova-">Source Code</a></li>
+                    <li><a target="_blank" href="https://issues.apache.org/jira/browse/CB/">Issue Tracker</a></li>
+                    <li><a target="_blank" href="http://stackoverflow.com/questions/tagged/cordova">Stack Overflow</a></li>
+                    <li><a href="/contact">Mailing List</a></li>
+                    <li><a href="/contribute/nightly_builds.html">Nightly builds</a></li>
+                </ul>
+            </div>
+            <div class="col-sm-4">
+                <h2>Apache Software Foundation</h2>
+                <ul class="nav">
+                    <li>
+                        <a target="_blank" href="http://www.apache.org/">About ASF</a>
+                    </li>
+                    <li>
+                        <a target="_blank" href="http://www.apache.org/foundation/sponsorship.html">Become a Sponsor</a>
+                    </li>
+                    <li>
+                        <a target="_blank" href="http://www.apache.org/foundation/thanks.html">Thanks</a>
+                    </li>
+                    <li>
+                        <a target="_blank" href="http://www.apache.org/security/">Security</a>
+                    </li>
+                </ul>
+            </div>
+        </div>
+    </div>
+    <div class="col-sm-3">
+        <h1>Contribute</h1>
+        <p style="padding-top:20px"><strong>Help Cordova move forward!</strong></p>
+        <p>Report bugs, improve the docs, or contribute to the code.</p>
+        <a href="/contribute" class="btn btn-lg btn-primary">
+            Learn More
+        </a>
+        <p style="padding-top:20px"> <a href="https://twitter.com/apachecordova" class="twitter-follow-button" data-show-count="false">Follow @apachecordova</a></p>
+        <script async defer src="https://slack-cordova-io.herokuapp.com/slackin.js"></script>
+    </div>
+</div>
+<p class="copyright_text">
+    Copyright &copy; 2012, 2013, 2015 The Apache Software Foundation, Licensed under the <a target="_blank" href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.<br/>
+    Apache and the Apache feather logos are <a target="_blank" href="http://www.apache.org/foundation/marks/list/">trademarks</a> of The Apache Software Foundation.
+    <br/>
+    "Raleway" font used under license. For details see the <a href="/attributions/">attributions page</a>.
+</p>
+
+    </div>
+</footer>
+
+
+    <script defer type="text/javascript" src="/static/js/index.js"></script>
+    <script defer type="text/javascript" src="/static/js/twitter.js"></script>
+    
+    
+
+
+
+    
+
+
+<script type="text/javascript" src="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.js"></script>
+<script type="text/javascript">
+    docsearch({
+        apiKey: '0a916ab198bd93d031aa70611271e42e',
+        indexName: 'cordova',
+        inputSelector: '#header-search-field',
+        algoliaOptions: { 'facetFilters': ["version:  7.x", "language: en"] }
+    });
+</script>
+
+</body>
+</html>

Modified: cordova/site/public/sitemap.xml
URL: http://svn.apache.org/viewvc/cordova/site/public/sitemap.xml?rev=1816665&r1=1816664&r2=1816665&view=diff
==============================================================================
--- cordova/site/public/sitemap.xml (original)
+++ cordova/site/public/sitemap.xml Thu Nov 30 00:36:33 2017
@@ -4,6 +4,11 @@
 <!-- posts -->
 
 <url>
+    <loc>https://cordova.apache.org/news/2017/11/20/migrate-from-cordova-globalization-plugin.html</loc>
+</url>
+
+
+<url>
     <loc>https://cordova.apache.org/news/2017/11/10/plugins-release.html</loc>
 </url>
 

Modified: cordova/site/public/static/css/lib/bootstrap.css
URL: http://svn.apache.org/viewvc/cordova/site/public/static/css/lib/bootstrap.css?rev=1816665&r1=1816664&r2=1816665&view=diff
==============================================================================
--- cordova/site/public/static/css/lib/bootstrap.css (original)
+++ cordova/site/public/static/css/lib/bootstrap.css Thu Nov 30 00:36:33 2017
@@ -1,5 +1,3 @@
----
----
 /* Customized Theme for Cordova */
 
 /*!
@@ -258,8 +256,8 @@ th {
 }
 @font-face {
   font-family: 'Glyphicons Halflings';
-  src: url('{{ site.baseurl }}/static/fonts/glyphicons-halflings-regular.eot');
-  src: url('{{ site.baseurl }}/static/fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('{{ site.baseurl }}/static/fonts/glyphicons-halflings-regular.woff2') format('woff2'), url('{{ site.baseurl }}/static/fonts/glyphicons-halflings-regular.woff') format('woff'), url('{{ site.baseurl }}/static/fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('{{ site.baseurl }}/static/fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');
+  src: url('/static/fonts/glyphicons-halflings-regular.eot');
+  src: url('/static/fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('/static/fonts/glyphicons-halflings-regular.woff2') format('woff2'), url('/static/fonts/glyphicons-halflings-regular.woff') format('woff'), url('/static/fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('/static/fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');
 }
 .glyphicon {
   position: relative;

Modified: cordova/site/public/static/css/lib/bootstrap.min.css
URL: http://svn.apache.org/viewvc/cordova/site/public/static/css/lib/bootstrap.min.css?rev=1816665&r1=1816664&r2=1816665&view=diff
==============================================================================
--- cordova/site/public/static/css/lib/bootstrap.min.css (original)
+++ cordova/site/public/static/css/lib/bootstrap.min.css Thu Nov 30 00:36:33 2017
@@ -1,5 +1,3 @@
----
----
 /*!
  * Bootstrap v3.3.2 (http://getbootstrap.com)
  * Copyright 2011-2015 Twitter, Inc.

Modified: cordova/site/public/static/css/lib/syntax.css
URL: http://svn.apache.org/viewvc/cordova/site/public/static/css/lib/syntax.css?rev=1816665&r1=1816664&r2=1816665&view=diff
==============================================================================
--- cordova/site/public/static/css/lib/syntax.css (original)
+++ cordova/site/public/static/css/lib/syntax.css Thu Nov 30 00:36:33 2017
@@ -1,5 +1,3 @@
----
----
 /*
 The MIT License (MIT)
 Copyright (c) 2008 Tom Preston-Werner

Modified: cordova/site/public/static/css/main.css
URL: http://svn.apache.org/viewvc/cordova/site/public/static/css/main.css?rev=1816665&r1=1816664&r2=1816665&view=diff
==============================================================================
--- cordova/site/public/static/css/main.css (original)
+++ cordova/site/public/static/css/main.css Thu Nov 30 00:36:33 2017
@@ -1,5 +1,3 @@
----
----
 /* Customized Theme for Cordova */
 /*!
  * Bootstrap v3.3.5 (http://getbootstrap.com)
@@ -240,8 +238,8 @@ th {
 
 @font-face {
   font-family: 'Glyphicons Halflings';
-  src: url("{{ site.baseurl }}/static/fonts/glyphicons-halflings-regular.eot");
-  src: url("{{ site.baseurl }}/static/fonts/glyphicons-halflings-regular.eot?#iefix") format("embedded-opentype"), url("{{ site.baseurl }}/static/fonts/glyphicons-halflings-regular.woff2") format("woff2"), url("{{ site.baseurl }}/static/fonts/glyphicons-halflings-regular.woff") format("woff"), url("{{ site.baseurl }}/static/fonts/glyphicons-halflings-regular.ttf") format("truetype"), url("{{ site.baseurl }}/static/fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular") format("svg"); }
+  src: url("/static/fonts/glyphicons-halflings-regular.eot");
+  src: url("/static/fonts/glyphicons-halflings-regular.eot?#iefix") format("embedded-opentype"), url("/static/fonts/glyphicons-halflings-regular.woff2") format("woff2"), url("/static/fonts/glyphicons-halflings-regular.woff") format("woff"), url("/static/fonts/glyphicons-halflings-regular.ttf") format("truetype"), url("/static/fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular") format("svg"); }
 
 .glyphicon {
   position: relative;
@@ -6803,7 +6801,7 @@ html {
   min-height: 500px;
   height: 70%;
   background-color: rgba(0, 0, 0, 0.8);
-  background-image: url("{{ site.baseurl }}/static/img/wisplight.jpg");
+  background-image: url("/static/img/wisplight.jpg");
   background-size: cover;
   position: relative;
   color: white; }
@@ -6918,13 +6916,13 @@ html {
     background-size: 135px 45px; } }
 
 #sprite_shared_code {
-  background: url("{{ site.baseurl }}/static/img/value-prop-sprite.svg") 0px 0; }
+  background: url("/static/img/value-prop-sprite.svg") 0px 0; }
 
 #sprite_offline {
-  background: url("{{ site.baseurl }}/static/img/value-prop-sprite.svg") 50% 0; }
+  background: url("/static/img/value-prop-sprite.svg") 50% 0; }
 
 #sprite_apis {
-  background: url("{{ site.baseurl }}/static/img/value-prop-sprite.svg") 100% 0; }
+  background: url("/static/img/value-prop-sprite.svg") 100% 0; }
 
 .navbar-brand {
   padding: 0;
@@ -7436,7 +7434,7 @@ hr.results-divider-line {
   display: inline-block; }
 
 .results-supported-platforms > li > div {
-  background-image: url("{{ site.baseurl }}/static/img/platform-logos-all-sprite.svg");
+  background-image: url("/static/img/platform-logos-all-sprite.svg");
   width: 50px;
   height: 50px;
   display: inline-block;
@@ -7508,7 +7506,7 @@ hr.results-divider-line {
     height: 30px;
     background-color: #ffffff; }
   .docs mark.logo {
-    background-image: url("{{ site.baseurl }}/static/img/platform-logos-all-sprite.svg");
+    background-image: url("/static/img/platform-logos-all-sprite.svg");
     width: 35px;
     background-size: 385px 35px; }
   .docs mark.android {
@@ -7785,7 +7783,7 @@ html[lang="ru"] .docs #old-home ul li {
 .contribute-help .report-bug-icon {
   height: 1em;
   width: 1em;
-  background-image: url("{{ site.baseurl }}/static/img/bug_icon.svg");
+  background-image: url("/static/img/bug_icon.svg");
   background-size: 2em 1em;
   display: inline-block; }
 
@@ -7820,7 +7818,7 @@ html[lang="ru"] .docs #old-home ul li {
   -moz-transition: background 0.25s linear;
   transition: background 0.25s linear;
   width: 36px;
-  background: url("{{ site.baseurl }}/static/img/sprite.png") no-repeat;
+  background: url("/static/img/sprite.png") no-repeat;
   background-position: 3px -127px;
   background-color: #4cc2e4;
   height: 36px; }
@@ -7930,7 +7928,7 @@ html[lang="ru"] .docs #old-home ul li {
 
 .artwork .button {
   display: block;
-  background: url("{{ site.baseurl }}/static/img/sprite.png") no-repeat;
+  background: url("/static/img/sprite.png") no-repeat;
   background-color: #4cc2e4;
   background-position: 100% -171px;
   width: 310px;

Modified: cordova/site/public/static/js/index.js
URL: http://svn.apache.org/viewvc/cordova/site/public/static/js/index.js?rev=1816665&r1=1816664&r2=1816665&view=diff
==============================================================================
--- cordova/site/public/static/js/index.js (original)
+++ cordova/site/public/static/js/index.js Thu Nov 30 00:36:33 2017
@@ -77,6 +77,7 @@ function checkNotification() {
     var dates = [];
     if (lastVisit != "") {
         
+        dates.push('Mon, 20 Nov 2017 00:00:00 +0000');
         dates.push('Fri, 10 Nov 2017 00:00:00 +0000');
         dates.push('Thu, 09 Nov 2017 00:00:00 +0000');
         dates.push('Tue, 31 Oct 2017 00:00:00 +0000');



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message