You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, congratulations on this project! I really enjoy it.
I'd like to discuss an issue that I'd very much like to work on. But I thought I'd get everyone's opinion on it before forking.
Today, the blog pretty much only supports English as the language used on the page besides the content provided on the posts.
Things like: Read More (on the PostCard component), Home (on the PostPage component), etc.
I see that there is already a slot in the components for using a different language. For instance, in the PostCard component:
There is the lang parameter that is ultimately taken from the blog config options. Today, it is unused, but it would be ideal for this feature. I think it was left there for this purpose exactly.
So, what is missing here is a mapping between languages ISO codes and the text used in the components.
One way of accomplishing this is as follows:
So in each component we needed this feature we would have a mapping of ISO language codes and the corresponding text in each language. For example, in the PostCard component:
And then use it as follows:
So what do you guys think?
The text was updated successfully, but these errors were encountered:
Language support is pretty important, I also want syntax highlighting for different programming languages. It would be nice if some minimal configuration could be settled upon for options like this. For now need to come up with our own hacks I guess...
First of all, congratulations on this project! I really enjoy it.
I'd like to discuss an issue that I'd very much like to work on. But I thought I'd get everyone's opinion on it before forking.
Today, the blog pretty much only supports English as the language used on the page besides the content provided on the posts.
Things like: Read More (on the PostCard component), Home (on the PostPage component), etc.
I see that there is already a slot in the components for using a different language. For instance, in the PostCard component:
There is the
lang
parameter that is ultimately taken from theblog
config options. Today, it is unused, but it would be ideal for this feature. I think it was left there for this purpose exactly.So, what is missing here is a mapping between languages ISO codes and the text used in the components.
One way of accomplishing this is as follows:
So in each component we needed this feature we would have a mapping of ISO language codes and the corresponding text in each language. For example, in the PostCard component:
And then use it as follows:
So what do you guys think?
The text was updated successfully, but these errors were encountered: