Skip to content

Fix: Pass language to markdown-pdf puppeteer#172

Merged
yzane merged 1 commit intoyzane:masterfrom
martilidad:master
Feb 16, 2020
Merged

Fix: Pass language to markdown-pdf puppeteer#172
yzane merged 1 commit intoyzane:masterfrom
martilidad:master

Conversation

@martilidad
Copy link
Copy Markdown
Contributor

this fixes #95

@martilidad martilidad requested a review from yzane January 20, 2020 22:35
@yzane yzane added this to the 1.4.2 milestone Feb 11, 2020
@yzane yzane merged commit b814f8c into yzane:master Feb 16, 2020
@yzane
Copy link
Copy Markdown
Owner

yzane commented Feb 16, 2020

Thanks for your PR!

@fuhrmanator
Copy link
Copy Markdown

fuhrmanator commented Feb 6, 2022

Apart from the typo with vscode.env.langauage (maybe I'm wrong about that), vscode.env.language seems to only be configurable to en but not en-CA or en-AU. https://code.visualstudio.com/docs/getstarted/locales

I'm in Quebec, which can be both English and French, so if I set my locale to French in VSCode, I get a date that looks great: 06/02/2022 (dd/mm/yyyy) which is consistent with fr and also en-CA (but I can't see how to set the latter in VScode).

How does @martilidad specify a VSCode local of en-AU (as in the example of #95)?

@martilidad
Copy link
Copy Markdown
Contributor Author

martilidad commented Feb 6, 2022

This was a dirty fix at the time, because I just wanted to export a markdown with the correct date format myself and just quickly pushed a commit here to try to help. It seems that vscode may have changed something about how to set languages/how it stores the user language.

The easiest fix would be to have a separate plugin setting for the format and/or language passed to the pupetteer. (e.g. markdown-pdf.export-locale)
This is probably an easy first issue @fuhrmanator .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Date Format

4 participants