Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Use correct case for PO file header MIME-Version #1074

Merged
merged 1 commit into from Jun 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/create-react-app/src/locales/en/messages.po
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
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
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
Expand Up @@ -6,7 +6,7 @@ msgstr ""
"Report-Msgid-Bugs-To: Daniel Krejčí <fredy.c@seznam.cz>\n"
"Last-Translator: Tomáš Ehrlich <tomas.ehrlich@gmail.com>\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
@@ -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
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
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
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