diff --git a/scripts/fetch-language-data.sh b/scripts/fetch-language-data.sh index ed610b6..7f8736c 100755 --- a/scripts/fetch-language-data.sh +++ b/scripts/fetch-language-data.sh @@ -18,14 +18,10 @@ then ( git clone "$UPSTREAM" "$CLONEDIR" fi -if [ -d "$BASEDIR"/node_modules/browserify ] -then - echo "browserify already installed" -else ( - echo "Installing browserify" - cd "$BASEDIR"; - npm install --no-save browserify -) fi +# This re-installs it every time, but guarantees we have the right version +echo "Installing browserify" +cd "$BASEDIR"; +npm install --no-save browserify@v16.5.2 echo "Transforming language-data" diff --git a/scripts/transform.js b/scripts/transform.js index 700237c..9ab1a69 100644 --- a/scripts/transform.js +++ b/scripts/transform.js @@ -1,16 +1,18 @@ -var through = require( 'through' ); +const through = require( 'through' ); module.exports = function () { - var data, end, write; - data = '( function ( $ ) {\n\t$.uls = $.uls || {};\n\t$.uls.data = '; - write = function ( buf ) { + let data = '( function ( $ ) {\n\t$.uls = $.uls || {};\n\t$.uls.data = '; + + const write = function ( buf ) { data += buf; return data; }; - end = function () { + + const end = function () { data += '\n} ( jQuery ) );'; this.queue( data ); - return this.queue( null ); + this.queue( null ); }; + return through( write, end ); }; diff --git a/src/jquery.uls.data.js b/src/jquery.uls.data.js index 3de2df0..953534f 100644 --- a/src/jquery.uls.data.js +++ b/src/jquery.uls.data.js @@ -643,6 +643,20 @@ module.exports=( function ( $ ) { ], "Mìng-dĕ̤ng-ngṳ̄" ], + "cdo-latn": [ + "Latn", + [ + "AS" + ], + "Mìng-dĕ̤ng-ngṳ̄ Bàng-uâ-cê" + ], + "cdo-hani": [ + "Hani", + [ + "AS" + ], + "閩東語漢字" + ], "ce": [ "Cyrl", [ @@ -1800,6 +1814,13 @@ module.exports=( function ( $ ) { ], "Kabɩyɛ" ], + "kcg": [ + "Latn", + [ + "AF" + ], + "Tyap" + ], "kea": [ "Latn", [ @@ -4226,6 +4247,9 @@ module.exports=( function ( $ ) { "zh-yue": [ "yue" ], + "zh-cdo": [ + "cdo" + ], "zu": [ "Latn", [ @@ -4291,6 +4315,7 @@ module.exports=( function ( $ ) { "Cyrl" ], "CJK": [ + "Hani", "Hans", "Hant", "Kana", @@ -5335,7 +5360,6 @@ module.exports=( function ( $ ) { "MY": [ "ms", "en", - "zh-hant", "zh", "ta", "jv", @@ -5378,6 +5402,7 @@ module.exports=( function ( $ ) { "ig", "yo", "ha-arab", + "kcg", "ar", "ff" ],