Skip to content

Commit 41feead

Browse files
committed
ui.7; show/hide key, sort options; @tomitrescak, @MartinFournier, #133, #192
1 parent 270c020 commit 41feead

File tree

8 files changed

+83
-55
lines changed

8 files changed

+83
-55
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,13 @@ the stable release):
1818
```
1919
meteor add msgfmt:[email protected] # 2016-01-11
2020
meteor add msgfmt:[email protected]
21-
meteor add msgfmt:[email protected].5
21+
meteor add msgfmt:[email protected].7 # 2016-01-11
2222
```
2323

24+
If you don't want the UI translator on production (i.e. no crowd translation),
25+
instead of adding msgfmt:ui, add `msgfmt:ui-dev-only` (no need to specify
26+
version).
27+
2428
## Features
2529

2630
* Super powerful language use via the industry gold standard, MessageFormat

msgfmt:core/lib/mfPkg/messageformat-server.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ mfPkg.langUpdate = function(lang, strings, meta, lastSync) {
121121
this.mfStrings.update({ key: obj.key, lang: obj.lang }, obj);
122122
}
123123
*/
124+
if (!key || !lang) console.log(obj);
124125
this.mfStrings.upsert({ key: obj.key, lang: obj.lang }, obj);
125126

126127
if (updating) {

msgfmt:ui-dev-only/.versions

Lines changed: 63 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,67 @@
11
2-
3-
4-
5-
6-
7-
8-
9-
10-
11-
12-
13-
14-
15-
16-
17-
18-
19-
20-
21-
22-
23-
24-
2+
3+
4+
5+
6+
7+
8+
9+
10+
11+
12+
13+
14+
15+
16+
17+
18+
19+
20+
21+
22+
23+
24+
25+
26+
27+
28+
29+
2530
26-
27-
28-
29-
31+
32+
33+
34+
35+
36+
3037
meteorhacks:[email protected]
31-
32-
33-
38+
39+
40+
41+
42+
3443
35-
36-
37-
38-
39-
40-
41-
42-
43-
44-
45-
46-
47-
48-
49-
50-
51-
52-
44+
45+
46+
nicolaslopezj:[email protected]
47+
48+
49+
50+
51+
52+
53+
54+
55+
56+
57+
58+
59+
60+
61+
62+
63+
64+
65+
66+
67+

msgfmt:ui-dev-only/package.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
Package.describe({
22
name: "msgfmt:ui-dev-only",
3-
version: "2.0.0-preview.2",
3+
version: "2.0.0",
44
summary: "msgfmt-ui that is never deployed",
55
git: "https://github.com/gadicc/meteor-messageformat.git",
66
debugOnly: true
77
});
88

99
Package.onUse(function (api) {
10-
api.use('msgfmt:[email protected].6');
10+
api.use('msgfmt:[email protected].7');
1111
api.imply('msgfmt:ui');
1212
});

msgfmt:ui/.versions

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jag:[email protected]
3131
3232
3333
34-
local-test:msgfmt:[email protected].6
34+
local-test:msgfmt:[email protected].7
3535
3636
3737
@@ -42,7 +42,7 @@ [email protected]
4242
4343
4444
45-
45+
4646
nicolaslopezj:[email protected]
4747
4848

msgfmt:ui/History.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
## vNEXT
22

3+
## 2.0.0-preview.7
4+
5+
* Feature: show/hide and sort by `key` (thanks @tomitrescak, #133,
6+
and @MartinFournier, #192)
7+
8+
* Feature: sort by translated string, case-insensitive sort,
9+
code cleanup and UI hints (thanks @MartinFournier, #192)
10+
311
## 2.0.0-preview.6
412

513
* Bugfix: Fixe duplicated insertions on route-change

msgfmt:ui/package.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package.describe({
22
name: "msgfmt:ui",
3-
version: "2.0.0-preview.6",
3+
version: "2.0.0-preview.7",
44
summary: "messageformat: translation UI",
55
git: "https://github.com/gadicc/meteor-messageformat.git",
66
});

website/.meteor/versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ [email protected]
4949
5050
5151
52-
meteorhacks:[email protected].2
52+
meteorhacks:[email protected].3
5353
5454
5555

0 commit comments

Comments
 (0)