diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..ac23615 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,42 @@ +## 1.0.1 (July 28, 2017) + +### Bug fixes + +* Do not break on CSV with additional columns +* Fix placeholders in formatted elements + +## 1.0.0 (April 03, 2017) + +### Features + +* Core library is now available as an elm-package +* Added documentation + +## 0.6.0 (March 29, 2017) + +### Features + +* Add support for PO file import and export +* Add elm-code writer to make adding new formats easier + +## 0.5.4 (March 27, 2017) + +### Bug fixes + +* Improve handling of comments containing new lines and hyphens + +## 0.5.3 (March 27, 2017) + +### Bug fixes + +* Fix export for Translations in submodules + +## 0.5.2 (March 27, 2017) + +### Bug fixes + +* Fix copy phase flags + +## 0.5.1 (March 27, 2017) + +* First public release \ No newline at end of file diff --git a/dist/elm.js b/dist/elm.js index 653fe72..330a6e3 100644 --- a/dist/elm.js +++ b/dist/elm.js @@ -6212,6 +6212,15 @@ var _elm_community$list_extra$List_Extra$findIndex = function (p) { A2(_elm_community$list_extra$List_Extra$findIndices, p, _p60)); }; }; +var _elm_community$list_extra$List_Extra$splitWhen = F2( + function (predicate, list) { + return A2( + _elm_lang$core$Maybe$map, + function (i) { + return A2(_elm_community$list_extra$List_Extra$splitAt, i, list); + }, + A2(_elm_community$list_extra$List_Extra$findIndex, predicate, list)); + }); var _elm_community$list_extra$List_Extra$elemIndices = function (x) { return _elm_community$list_extra$List_Extra$findIndices( F2( @@ -6667,6 +6676,105 @@ var _elm_lang$core$Bitwise$xor = _elm_lang$core$Native_Bitwise.xor; var _elm_lang$core$Bitwise$or = _elm_lang$core$Native_Bitwise.or; var _elm_lang$core$Bitwise$and = _elm_lang$core$Native_Bitwise.and; +var _elm_community$string_extra$String_Extra$accentRegex = function () { + var matches = { + ctor: '::', + _0: {ctor: '_Tuple2', _0: '[à-æ]', _1: 'a'}, + _1: { + ctor: '::', + _0: {ctor: '_Tuple2', _0: '[À-Æ]', _1: 'A'}, + _1: { + ctor: '::', + _0: {ctor: '_Tuple2', _0: 'ç', _1: 'c'}, + _1: { + ctor: '::', + _0: {ctor: '_Tuple2', _0: 'Ç', _1: 'C'}, + _1: { + ctor: '::', + _0: {ctor: '_Tuple2', _0: '[è-ë]', _1: 'e'}, + _1: { + ctor: '::', + _0: {ctor: '_Tuple2', _0: '[È-Ë]', _1: 'E'}, + _1: { + ctor: '::', + _0: {ctor: '_Tuple2', _0: '[ì-ï]', _1: 'i'}, + _1: { + ctor: '::', + _0: {ctor: '_Tuple2', _0: '[Ì-Ï]', _1: 'I'}, + _1: { + ctor: '::', + _0: {ctor: '_Tuple2', _0: 'ñ', _1: 'n'}, + _1: { + ctor: '::', + _0: {ctor: '_Tuple2', _0: 'Ñ', _1: 'N'}, + _1: { + ctor: '::', + _0: {ctor: '_Tuple2', _0: '[ò-ö]', _1: 'o'}, + _1: { + ctor: '::', + _0: {ctor: '_Tuple2', _0: '[Ò-Ö]', _1: 'O'}, + _1: { + ctor: '::', + _0: {ctor: '_Tuple2', _0: '[ù-ü]', _1: 'u'}, + _1: { + ctor: '::', + _0: {ctor: '_Tuple2', _0: '[Ù-Ü]', _1: 'U'}, + _1: { + ctor: '::', + _0: {ctor: '_Tuple2', _0: 'ý', _1: 'y'}, + _1: { + ctor: '::', + _0: {ctor: '_Tuple2', _0: 'ÿ', _1: 'y'}, + _1: { + ctor: '::', + _0: {ctor: '_Tuple2', _0: 'Ý', _1: 'Y'}, + _1: {ctor: '[]'} + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + }; + return A2( + _elm_lang$core$List$map, + function (_p0) { + var _p1 = _p0; + return { + ctor: '_Tuple2', + _0: _elm_lang$core$Regex$regex(_p1._0), + _1: _p1._1 + }; + }, + matches); +}(); +var _elm_community$string_extra$String_Extra$removeAccents = function (string) { + if (_elm_lang$core$String$isEmpty(string)) { + return string; + } else { + var do_regex_to_remove_acents = function (_p2) { + var _p3 = _p2; + return A3( + _elm_lang$core$Regex$replace, + _elm_lang$core$Regex$All, + _p3._0, + function (_p4) { + return _p3._1; + }); + }; + return A3(_elm_lang$core$List$foldl, do_regex_to_remove_acents, string, _elm_community$string_extra$String_Extra$accentRegex); + } +}; var _elm_community$string_extra$String_Extra$nonEmpty = function (string) { return _elm_lang$core$String$isEmpty(string) ? _elm_lang$core$Maybe$Nothing : _elm_lang$core$Maybe$Just(string); }; @@ -6680,53 +6788,53 @@ var _elm_community$string_extra$String_Extra$toCodePoints = function (string) { function (codeUnits, accumulated) { combineAndReverse: while (true) { - var _p0 = codeUnits; - if (_p0.ctor === '[]') { + var _p5 = codeUnits; + if (_p5.ctor === '[]') { return accumulated; } else { - var _p4 = _p0._0; - var _p3 = _p0._1; - if ((_elm_lang$core$Native_Utils.cmp(_p4, 0) > -1) && (_elm_lang$core$Native_Utils.cmp(_p4, 55295) < 1)) { - var _v1 = _p3, - _v2 = {ctor: '::', _0: _p4, _1: accumulated}; - codeUnits = _v1; - accumulated = _v2; + var _p9 = _p5._0; + var _p8 = _p5._1; + if ((_elm_lang$core$Native_Utils.cmp(_p9, 0) > -1) && (_elm_lang$core$Native_Utils.cmp(_p9, 55295) < 1)) { + var _v3 = _p8, + _v4 = {ctor: '::', _0: _p9, _1: accumulated}; + codeUnits = _v3; + accumulated = _v4; continue combineAndReverse; } else { - if ((_elm_lang$core$Native_Utils.cmp(_p4, 55296) > -1) && (_elm_lang$core$Native_Utils.cmp(_p4, 56319) < 1)) { - var _p1 = _p3; - if (_p1.ctor === '[]') { + if ((_elm_lang$core$Native_Utils.cmp(_p9, 55296) > -1) && (_elm_lang$core$Native_Utils.cmp(_p9, 56319) < 1)) { + var _p6 = _p8; + if (_p6.ctor === '[]') { return {ctor: '::', _0: _elm_community$string_extra$String_Extra$replacementCodePoint, _1: accumulated}; } else { - var _p2 = _p1._0; - if ((_elm_lang$core$Native_Utils.cmp(_p2, 56320) > -1) && (_elm_lang$core$Native_Utils.cmp(_p2, 57343) < 1)) { - var codePoint = (65536 + ((_p4 - 55296) * 1024)) + (_p2 - 56320); - var _v4 = _p1._1, - _v5 = {ctor: '::', _0: codePoint, _1: accumulated}; - codeUnits = _v4; - accumulated = _v5; - continue combineAndReverse; - } else { - var _v6 = _p3, - _v7 = {ctor: '::', _0: _elm_community$string_extra$String_Extra$replacementCodePoint, _1: accumulated}; + var _p7 = _p6._0; + if ((_elm_lang$core$Native_Utils.cmp(_p7, 56320) > -1) && (_elm_lang$core$Native_Utils.cmp(_p7, 57343) < 1)) { + var codePoint = (65536 + ((_p9 - 55296) * 1024)) + (_p7 - 56320); + var _v6 = _p6._1, + _v7 = {ctor: '::', _0: codePoint, _1: accumulated}; codeUnits = _v6; accumulated = _v7; continue combineAndReverse; + } else { + var _v8 = _p8, + _v9 = {ctor: '::', _0: _elm_community$string_extra$String_Extra$replacementCodePoint, _1: accumulated}; + codeUnits = _v8; + accumulated = _v9; + continue combineAndReverse; } } } else { - if ((_elm_lang$core$Native_Utils.cmp(_p4, 57344) > -1) && (_elm_lang$core$Native_Utils.cmp(_p4, 65535) < 1)) { - var _v8 = _p3, - _v9 = {ctor: '::', _0: _p4, _1: accumulated}; - codeUnits = _v8; - accumulated = _v9; - continue combineAndReverse; - } else { - var _v10 = _p3, - _v11 = {ctor: '::', _0: _elm_community$string_extra$String_Extra$replacementCodePoint, _1: accumulated}; + if ((_elm_lang$core$Native_Utils.cmp(_p9, 57344) > -1) && (_elm_lang$core$Native_Utils.cmp(_p9, 65535) < 1)) { + var _v10 = _p8, + _v11 = {ctor: '::', _0: _p9, _1: accumulated}; codeUnits = _v10; accumulated = _v11; continue combineAndReverse; + } else { + var _v12 = _p8, + _v13 = {ctor: '::', _0: _elm_community$string_extra$String_Extra$replacementCodePoint, _1: accumulated}; + codeUnits = _v12; + accumulated = _v13; + continue combineAndReverse; } } } @@ -6744,45 +6852,45 @@ var _elm_community$string_extra$String_Extra$fromCodePoints = function (allCodeP function (codePoints, accumulated) { splitAndReverse: while (true) { - var _p5 = codePoints; - if (_p5.ctor === '[]') { + var _p10 = codePoints; + if (_p10.ctor === '[]') { return accumulated; } else { - var _p7 = _p5._1; - var _p6 = _p5._0; - if ((_elm_lang$core$Native_Utils.cmp(_p6, 0) > -1) && (_elm_lang$core$Native_Utils.cmp(_p6, 55295) < 1)) { - var _v13 = _p7, - _v14 = {ctor: '::', _0: _p6, _1: accumulated}; - codePoints = _v13; - accumulated = _v14; + var _p12 = _p10._1; + var _p11 = _p10._0; + if ((_elm_lang$core$Native_Utils.cmp(_p11, 0) > -1) && (_elm_lang$core$Native_Utils.cmp(_p11, 55295) < 1)) { + var _v15 = _p12, + _v16 = {ctor: '::', _0: _p11, _1: accumulated}; + codePoints = _v15; + accumulated = _v16; continue splitAndReverse; } else { - if ((_elm_lang$core$Native_Utils.cmp(_p6, 65536) > -1) && (_elm_lang$core$Native_Utils.cmp(_p6, 1114111) < 1)) { - var subtracted = _p6 - 65536; + if ((_elm_lang$core$Native_Utils.cmp(_p11, 65536) > -1) && (_elm_lang$core$Native_Utils.cmp(_p11, 1114111) < 1)) { + var subtracted = _p11 - 65536; var leading = (subtracted >> 10) + 55296; var trailing = (subtracted & 1023) + 56320; - var _v15 = _p7, - _v16 = { + var _v17 = _p12, + _v18 = { ctor: '::', _0: trailing, _1: {ctor: '::', _0: leading, _1: accumulated} }; - codePoints = _v15; - accumulated = _v16; + codePoints = _v17; + accumulated = _v18; continue splitAndReverse; } else { - if ((_elm_lang$core$Native_Utils.cmp(_p6, 57344) > -1) && (_elm_lang$core$Native_Utils.cmp(_p6, 65535) < 1)) { - var _v17 = _p7, - _v18 = {ctor: '::', _0: _p6, _1: accumulated}; - codePoints = _v17; - accumulated = _v18; - continue splitAndReverse; - } else { - var _v19 = _p7, - _v20 = {ctor: '::', _0: _elm_community$string_extra$String_Extra$replacementCodePoint, _1: accumulated}; + if ((_elm_lang$core$Native_Utils.cmp(_p11, 57344) > -1) && (_elm_lang$core$Native_Utils.cmp(_p11, 65535) < 1)) { + var _v19 = _p12, + _v20 = {ctor: '::', _0: _p11, _1: accumulated}; codePoints = _v19; accumulated = _v20; continue splitAndReverse; + } else { + var _v21 = _p12, + _v22 = {ctor: '::', _0: _elm_community$string_extra$String_Extra$replacementCodePoint, _1: accumulated}; + codePoints = _v21; + accumulated = _v22; + continue splitAndReverse; } } } @@ -6818,7 +6926,7 @@ var _elm_community$string_extra$String_Extra$rightOfBack = F2( '', A2( _elm_lang$core$Maybe$map, - function (_p8) { + function (_p13) { return A3( _elm_lang$core$Basics$flip, _elm_lang$core$String$dropLeft, @@ -6829,7 +6937,7 @@ var _elm_community$string_extra$String_Extra$rightOfBack = F2( return x + y; }), _elm_lang$core$String$length(pattern), - _p8)); + _p13)); }, _elm_lang$core$List$head( _elm_lang$core$List$reverse( @@ -6839,17 +6947,17 @@ var _elm_community$string_extra$String_Extra$firstResultHelp = F2( function ($default, list) { firstResultHelp: while (true) { - var _p9 = list; - if (_p9.ctor === '[]') { + var _p14 = list; + if (_p14.ctor === '[]') { return $default; } else { - if (_p9._0.ctor === 'Just') { - return _p9._0._0; + if (_p14._0.ctor === 'Just') { + return _p14._0._0; } else { - var _v22 = $default, - _v23 = _p9._1; - $default = _v22; - list = _v23; + var _v24 = $default, + _v25 = _p14._1; + $default = _v24; + list = _v25; continue firstResultHelp; } } @@ -6865,11 +6973,11 @@ var _elm_community$string_extra$String_Extra$leftOf = F2( '', A2( _elm_lang$core$List$map, - function (_p10) { + function (_p15) { return _elm_community$string_extra$String_Extra$firstResult( function (_) { return _.submatches; - }(_p10)); + }(_p15)); }, A3( _elm_lang$core$Regex$find, @@ -6888,11 +6996,11 @@ var _elm_community$string_extra$String_Extra$rightOf = F2( '', A2( _elm_lang$core$List$map, - function (_p11) { + function (_p16) { return _elm_community$string_extra$String_Extra$firstResult( function (_) { return _.submatches; - }(_p11)); + }(_p16)); }, A3( _elm_lang$core$Regex$find, @@ -6923,79 +7031,79 @@ var _elm_community$string_extra$String_Extra$toSentenceHelper = F3( function (lastPart, sentence, list) { toSentenceHelper: while (true) { - var _p12 = list; - if (_p12.ctor === '[]') { + var _p17 = list; + if (_p17.ctor === '[]') { return sentence; } else { - if (_p12._1.ctor === '[]') { + if (_p17._1.ctor === '[]') { return A2( _elm_lang$core$Basics_ops['++'], sentence, - A2(_elm_lang$core$Basics_ops['++'], lastPart, _p12._0)); + A2(_elm_lang$core$Basics_ops['++'], lastPart, _p17._0)); } else { - var _v25 = lastPart, - _v26 = A2( + var _v27 = lastPart, + _v28 = A2( _elm_lang$core$Basics_ops['++'], sentence, - A2(_elm_lang$core$Basics_ops['++'], ', ', _p12._0)), - _v27 = _p12._1; - lastPart = _v25; - sentence = _v26; - list = _v27; + A2(_elm_lang$core$Basics_ops['++'], ', ', _p17._0)), + _v29 = _p17._1; + lastPart = _v27; + sentence = _v28; + list = _v29; continue toSentenceHelper; } } } }); var _elm_community$string_extra$String_Extra$toSentenceBaseCase = function (list) { - var _p13 = list; - _v28_2: + var _p18 = list; + _v30_2: do { - if (_p13.ctor === '::') { - if (_p13._1.ctor === '[]') { - return _p13._0; + if (_p18.ctor === '::') { + if (_p18._1.ctor === '[]') { + return _p18._0; } else { - if (_p13._1._1.ctor === '[]') { + if (_p18._1._1.ctor === '[]') { return A2( _elm_lang$core$Basics_ops['++'], - _p13._0, - A2(_elm_lang$core$Basics_ops['++'], ' and ', _p13._1._0)); + _p18._0, + A2(_elm_lang$core$Basics_ops['++'], ' and ', _p18._1._0)); } else { - break _v28_2; + break _v30_2; } } } else { - break _v28_2; + break _v30_2; } } while(false); return ''; }; var _elm_community$string_extra$String_Extra$toSentenceOxford = function (list) { - var _p14 = list; - if (((_p14.ctor === '::') && (_p14._1.ctor === '::')) && (_p14._1._1.ctor === '::')) { + var _p19 = list; + if (((_p19.ctor === '::') && (_p19._1.ctor === '::')) && (_p19._1._1.ctor === '::')) { return A3( _elm_community$string_extra$String_Extra$toSentenceHelper, ', and ', A2( _elm_lang$core$Basics_ops['++'], - _p14._0, - A2(_elm_lang$core$Basics_ops['++'], ', ', _p14._1._0)), - {ctor: '::', _0: _p14._1._1._0, _1: _p14._1._1._1}); + _p19._0, + A2(_elm_lang$core$Basics_ops['++'], ', ', _p19._1._0)), + {ctor: '::', _0: _p19._1._1._0, _1: _p19._1._1._1}); } else { return _elm_community$string_extra$String_Extra$toSentenceBaseCase(list); } }; var _elm_community$string_extra$String_Extra$toSentence = function (list) { - var _p15 = list; - if (((_p15.ctor === '::') && (_p15._1.ctor === '::')) && (_p15._1._1.ctor === '::')) { + var _p20 = list; + if (((_p20.ctor === '::') && (_p20._1.ctor === '::')) && (_p20._1._1.ctor === '::')) { return A3( _elm_community$string_extra$String_Extra$toSentenceHelper, ' and ', A2( _elm_lang$core$Basics_ops['++'], - _p15._0, - A2(_elm_lang$core$Basics_ops['++'], ', ', _p15._1._0)), - {ctor: '::', _0: _p15._1._1._0, _1: _p15._1._1._1}); + _p20._0, + A2(_elm_lang$core$Basics_ops['++'], ', ', _p20._1._0)), + {ctor: '::', _0: _p20._1._1._0, _1: _p20._1._1._1}); } else { return _elm_community$string_extra$String_Extra$toSentenceBaseCase(list); } @@ -7037,25 +7145,25 @@ var _elm_community$string_extra$String_Extra$unindent = function (multilineSting function (count, line) { countLeadingWhitespace: while (true) { - var _p16 = _elm_lang$core$String$uncons(line); - if (_p16.ctor === 'Nothing') { + var _p21 = _elm_lang$core$String$uncons(line); + if (_p21.ctor === 'Nothing') { return count; } else { - var _p18 = _p16._0._1; - var _p17 = _p16._0._0; - switch (_p17.valueOf()) { + var _p23 = _p21._0._1; + var _p22 = _p21._0._0; + switch (_p22.valueOf()) { case ' ': - var _v33 = count + 1, - _v34 = _p18; - count = _v33; - line = _v34; - continue countLeadingWhitespace; - case '\t': var _v35 = count + 1, - _v36 = _p18; + _v36 = _p23; count = _v35; line = _v36; continue countLeadingWhitespace; + case '\t': + var _v37 = count + 1, + _v38 = _p23; + count = _v37; + line = _v38; + continue countLeadingWhitespace; default: return count; } @@ -7093,13 +7201,13 @@ var _elm_community$string_extra$String_Extra$dasherize = function (string) { _elm_lang$core$Regex$replace, _elm_lang$core$Regex$All, _elm_lang$core$Regex$regex('([A-Z])'), - function (_p19) { + function (_p24) { return A2( _elm_lang$core$String$append, '-', function (_) { return _.match; - }(_p19)); + }(_p24)); }, _elm_lang$core$String$trim(string)))); }; @@ -7114,7 +7222,7 @@ var _elm_community$string_extra$String_Extra$underscored = function (string) { _elm_lang$core$Regex$replace, _elm_lang$core$Regex$All, _elm_lang$core$Regex$regex('([a-z\\d])([A-Z]+)'), - function (_p20) { + function (_p25) { return A2( _elm_lang$core$String$join, '_', @@ -7123,7 +7231,7 @@ var _elm_community$string_extra$String_Extra$underscored = function (string) { _elm_lang$core$Basics$identity, function (_) { return _.submatches; - }(_p20))); + }(_p25))); }, _elm_lang$core$String$trim(string)))); }; @@ -7157,11 +7265,11 @@ var _elm_community$string_extra$String_Extra$camelize = function (string) { _elm_lang$core$Regex$replace, _elm_lang$core$Regex$All, _elm_lang$core$Regex$regex('[-_\\s]+(.)?'), - function (_p21) { - var _p22 = _p21; - var _p23 = _p22.submatches; - if ((_p23.ctor === '::') && (_p23._0.ctor === 'Just')) { - return _elm_lang$core$String$toUpper(_p23._0._0); + function (_p26) { + var _p27 = _p26; + var _p28 = _p27.submatches; + if ((_p28.ctor === '::') && (_p28._0.ctor === 'Just')) { + return _elm_lang$core$String$toUpper(_p28._0._0); } else { return ''; } @@ -7248,20 +7356,20 @@ var _elm_community$string_extra$String_Extra$breaker = F3( function (width, string, acc) { breaker: while (true) { - var _p24 = string; - if (_p24 === '') { + var _p29 = string; + if (_p29 === '') { return _elm_lang$core$List$reverse(acc); } else { - var _v40 = width, - _v41 = A2(_elm_lang$core$String$dropLeft, width, string), - _v42 = { + var _v42 = width, + _v43 = A2(_elm_lang$core$String$dropLeft, width, string), + _v44 = { ctor: '::', _0: A3(_elm_lang$core$String$slice, 0, width, string), _1: acc }; - width = _v40; - string = _v41; - acc = _v42; + width = _v42; + string = _v43; + acc = _v44; continue breaker; } } @@ -7314,7 +7422,7 @@ var _elm_community$string_extra$String_Extra$replace = F3( _elm_lang$core$Regex$All, _elm_lang$core$Regex$regex( _elm_lang$core$Regex$escape(search)), - function (_p25) { + function (_p30) { return substitution; }, string); @@ -7326,12 +7434,12 @@ var _elm_community$string_extra$String_Extra$changeCase = F2( '', A2( _elm_lang$core$Maybe$map, - function (_p26) { - var _p27 = _p26; + function (_p31) { + var _p32 = _p31; return A2( _elm_lang$core$String$cons, - mutator(_p27._0), - _p27._1); + mutator(_p32._0), + _p32._1); }, _elm_lang$core$String$uncons(word))); }); @@ -7343,21 +7451,21 @@ var _elm_community$string_extra$String_Extra$toTitleCase = function (ws) { _elm_lang$core$Regex$replace, _elm_lang$core$Regex$All, _elm_lang$core$Regex$regex('\\w+'), - function (_p28) { + function (_p33) { return _elm_community$string_extra$String_Extra$toSentenceCase( function (_) { return _.match; - }(_p28)); + }(_p33)); }); return A4( _elm_lang$core$Regex$replace, _elm_lang$core$Regex$All, _elm_lang$core$Regex$regex('^([a-z])|\\s+([a-z])'), - function (_p29) { + function (_p34) { return uppercaseMatch( function (_) { return _.match; - }(_p29)); + }(_p34)); }, ws); }; @@ -7388,13 +7496,13 @@ var _elm_community$string_extra$String_Extra$humanize = function (string) { _elm_lang$core$Regex$replace, _elm_lang$core$Regex$All, _elm_lang$core$Regex$regex('[A-Z]'), - function (_p30) { + function (_p35) { return A2( _elm_lang$core$String$append, '-', function (_) { return _.match; - }(_p30)); + }(_p35)); }, string))))); }; @@ -9351,6 +9459,10 @@ var _periodic$elm_csv$Csv$parse = function (_p2) { _periodic$elm_csv$Csv$addTrailingLineSep(_p2)))); }; +var _iosphere$elm_i18n$CSV_Import$withoutEmptyStrings = _elm_lang$core$List$filter( + function (_p0) { + return !_elm_lang$core$String$isEmpty(_p0); + }); var _iosphere$elm_i18n$CSV_Import$staticElement = F4( function (modulename, key, comment, value) { return _iosphere$elm_i18n$Localized$ElementStatic( @@ -9372,20 +9484,17 @@ var _iosphere$elm_i18n$CSV_Import$formatElement = F5( return _elm_lang$core$Native_Utils.eq( A2(_elm_lang$core$Basics_ops['%'], index, 2), 0) ? _iosphere$elm_i18n$Localized$FormatComponentPlaceholder( - _elm_lang$core$String$trim(submatch)) : _iosphere$elm_i18n$Localized$FormatComponentStatic(candidate); + _elm_lang$core$String$trim(submatch)) : _iosphere$elm_i18n$Localized$FormatComponentStatic(submatch); }), - A2( - _elm_lang$core$List$filter, - function (_p0) { - return !_elm_lang$core$String$isEmpty(_p0); - }, + _iosphere$elm_i18n$CSV_Import$withoutEmptyStrings( A2(_elm_lang$core$String$split, '}}', candidate))) : { ctor: '::', _0: _iosphere$elm_i18n$Localized$FormatComponentStatic(candidate), _1: {ctor: '[]'} }; }, - A2(_elm_lang$core$String$split, '{{', value))); + _iosphere$elm_i18n$CSV_Import$withoutEmptyStrings( + A2(_elm_lang$core$String$split, '{{', value)))); return _iosphere$elm_i18n$Localized$ElementFormat( { meta: {moduleName: modulename, key: key, comment: comment}, @@ -9409,7 +9518,7 @@ var _iosphere$elm_i18n$CSV_Import$code = F5( }); var _iosphere$elm_i18n$CSV_Import$fromLine = function (columns) { var _p2 = columns; - if ((((((_p2.ctor === '::') && (_p2._1.ctor === '::')) && (_p2._1._1.ctor === '::')) && (_p2._1._1._1.ctor === '::')) && (_p2._1._1._1._1.ctor === '::')) && (_p2._1._1._1._1._1.ctor === '[]')) { + if (((((_p2.ctor === '::') && (_p2._1.ctor === '::')) && (_p2._1._1.ctor === '::')) && (_p2._1._1._1.ctor === '::')) && (_p2._1._1._1._1.ctor === '::')) { return _elm_lang$core$Maybe$Just( A5(_iosphere$elm_i18n$CSV_Import$code, _p2._0, _p2._1._0, _p2._1._1._0, _p2._1._1._1._0, _p2._1._1._1._1._0)); } else { @@ -9418,7 +9527,7 @@ var _iosphere$elm_i18n$CSV_Import$fromLine = function (columns) { }; var _iosphere$elm_i18n$CSV_Import$moduleNameForLine = function (columns) { var _p3 = columns; - if ((((((_p3.ctor === '::') && (_p3._1.ctor === '::')) && (_p3._1._1.ctor === '::')) && (_p3._1._1._1.ctor === '::')) && (_p3._1._1._1._1.ctor === '::')) && (_p3._1._1._1._1._1.ctor === '[]')) { + if (((((_p3.ctor === '::') && (_p3._1.ctor === '::')) && (_p3._1._1.ctor === '::')) && (_p3._1._1._1.ctor === '::')) && (_p3._1._1._1._1.ctor === '::')) { return _elm_lang$core$Maybe$Just(_p3._0); } else { return _elm_lang$core$Maybe$Nothing; diff --git a/package.json b/package.json index 38325bb..b71d78a 100644 --- a/package.json +++ b/package.json @@ -1,42 +1,51 @@ { - "name": "elm-i18n", - "version": "1.0.0", - "description": "Generate localized versions of your elm-app, import and export strings (PO/CSV)", - "keywords": ["elm", "translate", "i18n", "internationalization", "internationalisation", "translation", "tool"], - "main": "index.js", - "dependencies": { - "elm-test": "^0.18.7", - "fs-extra": "^2.1.2", - "glob": "^7.1.1", - "prompt": "^1.0.0", - "symlink-or-copy": "^1.1.8", - "yargs": "^7.0.2" - }, - "devDependencies": { - "eslint-config-google": "^0.7.1", - "eslint": "^3.16.1" - }, - "repository": { - "type": "git", - "url": "https://github.com/iosphere/elm-i18n.git" - }, - "scripts": { - "preversion": "make test && make lint-js", - "version": "make dist && git add -A dist", - "postversion": "git push && git push --tags" - }, - "author": [{ - "name": "iosphere GmbH", - "url": "https://iosphere.de" - }, - { - "name": "Felix Lamouroux", - "url": "https://github.com/felixLam" - } - ], - "license": "MIT", - "bin": { - "elm-i18n-generator": "extractor.js", - "elm-i18n-switch": "index.js" + "name": "elm-i18n", + "version": "1.0.1", + "description": "Generate localized versions of your elm-app, import and export strings (PO/CSV)", + "keywords": [ + "elm", + "translate", + "i18n", + "internationalization", + "internationalisation", + "translation", + "tool" + ], + "main": "index.js", + "dependencies": { + "elm-test": "^0.18.7", + "fs-extra": "^2.1.2", + "glob": "^7.1.1", + "prompt": "^1.0.0", + "symlink-or-copy": "^1.1.8", + "yargs": "^7.0.2" + }, + "devDependencies": { + "eslint-config-google": "^0.7.1", + "eslint": "^3.16.1" + }, + "repository": { + "type": "git", + "url": "https://github.com/iosphere/elm-i18n.git" + }, + "scripts": { + "preversion": "make test && make lint-js", + "version": "make dist && git add -A dist", + "postversion": "git push && git push --tags" + }, + "author": { + "name": "iosphere GmbH", + "url": "https://iosphere.de" + }, + "contributors": [ + { + "name": "Felix Lamouroux", + "url": "https://github.com/felixLam" } + ], + "license": "MIT", + "bin": { + "elm-i18n-generator": "extractor.js", + "elm-i18n-switch": "index.js" + } }