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

Localize date strings #230

Open
codehag opened this issue Dec 4, 2020 · 3 comments
Open

Localize date strings #230

codehag opened this issue Dec 4, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@codehag
Copy link
Collaborator

codehag commented Dec 4, 2020

We have date strings for the notes. These are currently in English and it will be a pain to update them manually all the time. We could use intl here but that would require running js (we limit how much js we use, it should really be used for enhancement and this is a readability issue). We could also automatically generate the correct date strings from the _data/stage3.yml file. Open to solutions here.

@codehag codehag added the enhancement New feature or request label Dec 4, 2020
@chicoxyzzy
Copy link
Member

chicoxyzzy commented Dec 4, 2020

If we will pre-generate date strings eventually, it will be awesome if we could also pre-generate syntax highlighting to remove downloading of highligh.js library

@septs
Copy link
Member

septs commented Dec 5, 2020

new Date("iso 8601 string").toLocaleString()

@jasonwilliams
Copy link
Member

I think now we’re on 11ty we can do this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants