eallion / memos.top

✍ A static page rendered with the Memos API.
https://memos.top
Other
208 stars 93 forks source link

Is it possible to change the language? #8

Closed simplelifelfk closed 1 year ago

simplelifelfk commented 1 year ago

Good morning! Loving the tool...

Is it possible to change the language for the metadata on a post? I was able to translate, it appears to show the time since a post was created.

image
eallion commented 1 year ago

Yes, it's easy. You can modify in this file:

https://github.com/eallion/memos.top/blob/main/assets/js/moment.twitter.js

This is a twitter plugin for moment.js at hijonathan/moment.twitter

https://github.com/hijonathan/moment.twitter

The Chinese word 来自 in file https://github.com/eallion/memos.top/blob/main/assets/js/main.js#L201

simplelifelfk commented 1 year ago

Ah! I spent some time with it last night. It didn't change immediately...but this morning, I was able to see my metadata for time in English. Thank you! Fantastic code!

eallion commented 1 year ago

You are welcome!