Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Set en_US_POSIX locale for date formatters #289

Merged
merged 2 commits into from
Jun 1, 2021
Merged

Set en_US_POSIX locale for date formatters #289

merged 2 commits into from
Jun 1, 2021

Conversation

mattt
Copy link
Contributor

@mattt mattt commented Jun 1, 2021

Related to #287

The issue described in the linked PR is that, when running swift-doc from a non-English locale, there's a mismatch in the English text in the footer and the formatted date string. Rather than making this configurable, this PR explicitly sets the locale for date formatter instances to en_US_POSIX.

We can explore a complete localization strategy in a separate issue.

@mattt mattt merged commit 9c2fc48 into master Jun 1, 2021
@mattt mattt deleted the en-us-locale branch June 1, 2021 17:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant