@tanda/translation-io 0.3.6 → 0.3.7

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.
Files changed (2) hide show
  1. package/lib/extract.js +2 -4
  2. package/package.json +1 -1
package/lib/extract.js CHANGED
@@ -43,11 +43,9 @@ const normalizeMessage = config.stripNewlines() ? message => message.replace(/\n
43
43
  const normalize = (json, format) => {
44
44
  switch (format) {
45
45
  case 'minimal':
46
- return Object.keys((0, _sarcastic.default)(json, MINIMAL_FORMAT)).map(key => ({
46
+ return Object.entries((0, _sarcastic.default)(json, MINIMAL_FORMAT)).map(([key, value]) => ({
47
47
  id: normalizeId(key),
48
- // when in `minimal` format, the name of the key in the source is
49
- // the default message
50
- defaultMessage: normalizeMessage(key)
48
+ defaultMessage: normalizeMessage(value)
51
49
  }));
52
50
 
53
51
  case 'lingui':
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanda/translation-io",
3
- "version": "0.3.6",
3
+ "version": "0.3.7",
4
4
  "author": "David Buchan-Swanson <david.buchanswanson@gmail.com>",
5
5
  "license": "MIT",
6
6
  "bin": {