Skip to content

Commit

Permalink
fix: use correct case for PO file header MIME-Version (#1074)
Browse files Browse the repository at this point in the history
  • Loading branch information
datafoo authored Jun 4, 2021
1 parent a529aca commit f31afc5
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion examples/create-react-app/src/locales/en/messages.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"POT-Creation-Date: 2020-10-20 12:51+0200\n"
"Mime-Version: 1.0\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: @lingui/cli\n"
Expand Down
2 changes: 1 addition & 1 deletion examples/js/src/locale/cs/messages.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"POT-Creation-Date: 2018-09-09 19:21+0200\n"
"Mime-Version: 1.0\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: @lingui/cli\n"
Expand Down
2 changes: 1 addition & 1 deletion examples/js/src/locale/en/messages.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"POT-Creation-Date: 2018-09-09 19:21+0200\n"
"Mime-Version: 1.0\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: @lingui/cli\n"
Expand Down
2 changes: 1 addition & 1 deletion examples/next-js/locale/cs/messages.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"POT-Creation-Date: 2020-04-04 12:09+0200\n"
"Mime-Version: 1.0\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: @lingui/cli\n"
Expand Down
2 changes: 1 addition & 1 deletion examples/next-js/locale/en/messages.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"POT-Creation-Date: 2020-04-04 13:38+0200\n"
"Mime-Version: 1.0\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: @lingui/cli\n"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ exports[`po-gettext format should convert ICU plural messages to gettext plurals
msgid ""
msgstr ""
"POT-Creation-Date: 2018-08-27 10:00+0000\\n"
"Mime-Version: 1.0\\n"
"MIME-Version: 1.0\\n"
"Content-Type: text/plain; charset=utf-8\\n"
"Content-Transfer-Encoding: 8bit\\n"
"X-Generator: @lingui/cli\\n"
Expand Down Expand Up @@ -220,7 +220,7 @@ exports[`po-gettext format should write catalog in pofile format 1`] = `
msgid ""
msgstr ""
"POT-Creation-Date: 2018-08-27 10:00+0000\\n"
"Mime-Version: 1.0\\n"
"MIME-Version: 1.0\\n"
"Content-Type: text/plain; charset=utf-8\\n"
"Content-Transfer-Encoding: 8bit\\n"
"X-Generator: @lingui/cli\\n"
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/api/formats/__snapshots__/po.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ exports[`pofile format should write catalog in pofile format 1`] = `
msgid ""
msgstr ""
"POT-Creation-Date: 2018-08-27 10:00+0000\\n"
"Mime-Version: 1.0\\n"
"MIME-Version: 1.0\\n"
"Content-Type: text/plain; charset=utf-8\\n"
"Content-Transfer-Encoding: 8bit\\n"
"X-Generator: @lingui/cli\\n"
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/api/formats/fixtures/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ msgstr ""
"Report-Msgid-Bugs-To: Daniel Krejčí <[email protected]>\n"
"Last-Translator: Tomáš Ehrlich <[email protected]>\n"
"Language-Team: jsLingui\n"
"Mime-Version: 1.0\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: en\n"
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/api/formats/fixtures/messages_plural.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"POT-Creation-Date: 2018-08-27 10:00+0000\n"
"Mime-Version: 1.0\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: @lingui/cli\n"
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/api/formats/po-gettext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type POItemType = InstanceType<typeof PO.Item>
function getCreateHeaders(language = "no") {
return {
"POT-Creation-Date": formatDate(new Date(), "yyyy-MM-dd HH:mmxxxx"),
"Mime-Version": "1.0",
"MIME-Version": "1.0",
"Content-Type": "text/plain; charset=utf-8",
"Content-Transfer-Encoding": "8bit",
"X-Generator": "@lingui/cli",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/api/formats/po.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ describe("pofile format", () => {
msgid ""
msgstr ""
"POT-Creation-Date: ${formatDate(new Date(), "yyyy-MM-dd HH:mmxxxx")}\\n"
"Mime-Version: 1.0\\n"
"MIME-Version: 1.0\\n"
"Content-Type: text/plain; charset=utf-8\\n"
"Content-Transfer-Encoding: 8bit\\n"
"X-Generator: @lingui/cli\\n"
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/api/formats/po.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { CatalogFormatter } from "."

const getCreateHeaders = (language = "no") => ({
"POT-Creation-Date": formatDate(new Date(), "yyyy-MM-dd HH:mmxxxx"),
"Mime-Version": "1.0",
"MIME-Version": "1.0",
"Content-Type": "text/plain; charset=utf-8",
"Content-Transfer-Encoding": "8bit",
"X-Generator": "@lingui/cli",
Expand Down

1 comment on commit f31afc5

@vercel
Copy link

@vercel vercel bot commented on f31afc5 Jun 4, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.