gettext-universal 1.0.12 → 1.0.13

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/package.json +1 -1
  2. package/src/scanner.js +5 -0
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  },
5
5
  "name": "gettext-universal",
6
6
  "type": "module",
7
- "version": "1.0.12",
7
+ "version": "1.0.13",
8
8
  "main": "index.js",
9
9
  "scripts": {
10
10
  "gettext-universal": "node bin/gettext-universal.js",
package/src/scanner.js CHANGED
@@ -120,6 +120,11 @@ export default class Scanner {
120
120
 
121
121
  let translationsCount = 0
122
122
 
123
+ await fp.write("msgid \"\"\n")
124
+ await fp.write("msgstr \"\"\n")
125
+ await fp.write("\"Content-Type: text/plain; charset=UTF-8\\n\"\n")
126
+ await fp.write("\n") // Empty line after header
127
+
123
128
  for (const translationKey in this.translations) {
124
129
  const translation = this.translations[translationKey]
125
130