@panthus/elm-xgettext 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/xgettext.js +8 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,12 +8,12 @@ It also includes a tool similar to
|
|
|
8
8
|
[GNU msgfmt](https://www.gnu.org/software/gettext/manual/html_node/msgfmt-Invocation.html) that converts PO files into
|
|
9
9
|
MO files.
|
|
10
10
|
|
|
11
|
-
This tool only works for translations specified by the panthus/elm-gettext library.
|
|
11
|
+
This tool only works for translations specified by the [panthus/elm-gettext](https://package.elm-lang.org/packages/panthus/elm-gettext/latest/) library.
|
|
12
12
|
|
|
13
13
|
## Usage
|
|
14
14
|
Install with:
|
|
15
15
|
```
|
|
16
|
-
npm i --save-dev elm-xgettext
|
|
16
|
+
npm i --save-dev @panthus/elm-xgettext
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
Create a POT file like this:
|
package/dist/xgettext.js
CHANGED
|
@@ -3395,7 +3395,6 @@ var $elm$core$List$foldr = F3(
|
|
|
3395
3395
|
function (fn, acc, ls) {
|
|
3396
3396
|
return A4($elm$core$List$foldrHelper, fn, acc, 0, ls);
|
|
3397
3397
|
});
|
|
3398
|
-
var $elm$core$String$length = _String_length;
|
|
3399
3398
|
var $elm$core$List$map = F2(
|
|
3400
3399
|
function (f, xs) {
|
|
3401
3400
|
return A3(
|
|
@@ -3527,6 +3526,7 @@ var $author$project$MoEncoder$toTranslationString = function (poEntry) {
|
|
|
3527
3526
|
'\u0000',
|
|
3528
3527
|
$elm$core$Array$toList(poEntry.cs));
|
|
3529
3528
|
};
|
|
3529
|
+
var $elm$bytes$Bytes$width = _Bytes_width;
|
|
3530
3530
|
var $author$project$MoEncoder$encode = function (poEntries) {
|
|
3531
3531
|
var numOfStrings = $elm$core$List$length(poEntries);
|
|
3532
3532
|
var stringTableSize = (numOfStrings * 4) * 2;
|
|
@@ -3558,14 +3558,18 @@ var $author$project$MoEncoder$encode = function (poEntries) {
|
|
|
3558
3558
|
A2(
|
|
3559
3559
|
$elm$core$List$cons,
|
|
3560
3560
|
{
|
|
3561
|
-
ak: $elm$
|
|
3561
|
+
ak: $elm$bytes$Bytes$width(
|
|
3562
|
+
$elm$bytes$Bytes$Encode$encode(
|
|
3563
|
+
$elm$bytes$Bytes$Encode$string(originalString))),
|
|
3562
3564
|
at: $elm$bytes$Bytes$Encode$string(originalString + '\u0000')
|
|
3563
3565
|
},
|
|
3564
3566
|
o),
|
|
3565
3567
|
A2(
|
|
3566
3568
|
$elm$core$List$cons,
|
|
3567
3569
|
{
|
|
3568
|
-
ak: $elm$
|
|
3570
|
+
ak: $elm$bytes$Bytes$width(
|
|
3571
|
+
$elm$bytes$Bytes$Encode$encode(
|
|
3572
|
+
$elm$bytes$Bytes$Encode$string(translationString))),
|
|
3569
3573
|
at: $elm$bytes$Bytes$Encode$string(translationString + '\u0000')
|
|
3570
3574
|
},
|
|
3571
3575
|
t));
|
|
@@ -3940,7 +3944,6 @@ var $danfishgold$base64_bytes$Decode$decoder = function (width) {
|
|
|
3940
3944
|
{an: width, at: ''},
|
|
3941
3945
|
$danfishgold$base64_bytes$Decode$loopHelp);
|
|
3942
3946
|
};
|
|
3943
|
-
var $elm$bytes$Bytes$width = _Bytes_width;
|
|
3944
3947
|
var $danfishgold$base64_bytes$Decode$fromBytes = function (bytes) {
|
|
3945
3948
|
return A2(
|
|
3946
3949
|
$elm$bytes$Bytes$Decode$decode,
|
|
@@ -4545,6 +4548,7 @@ var $stil4m$elm_syntax$ParserFast$ExpectingSymbol = F3(
|
|
|
4545
4548
|
function (a, b, c) {
|
|
4546
4549
|
return {$: 1, a: a, b: b, c: c};
|
|
4547
4550
|
});
|
|
4551
|
+
var $elm$core$String$length = _String_length;
|
|
4548
4552
|
var $stil4m$elm_syntax$ParserFast$symbol = F2(
|
|
4549
4553
|
function (str, res) {
|
|
4550
4554
|
var strLength = $elm$core$String$length(str);
|