-
-
Notifications
You must be signed in to change notification settings - Fork 63
Internationalization #33
Comments
directories:[
{
id: "zh",
dirname: "_zh",
path: "/zh/",
itemLayout: "Post",
itemPermalink: "/zh/:year/:month/:day/:slug",
},
{
id: "en",
dirname: "_en",
path: "/en/",
itemLayout: "Post",
itemPermalink: "/en/:year/:month/:day/:slug",
}
] Would this configuration meet your needs? |
@newsbielt703 For Example,the date formatting needs to be localized,the default is in English,which is so unreadable for non-native English speakers. |
@songzhi This plugin doesn't provide date formatting. Probably, you've mixed up blog theme and blog plugin. Btw, blog theme has supported for custom date. |
What if I want to set a baseLang? I mean We don't want Can the |
As a workaround, I can fliter the results by using computed options in my layout components, but I still want this feature to support mitulanguage. |
Hi @Mister-Hope ,
sorry I don't get it. the path is configurable, such as
Besides, there're some configurable options such as |
Nevertheless, making |
Excuse me, I think that will cause the en page contains zh tags which I don't want. As I said, I can filter the auto-generated result, but I still think that excluding it directly will be better |
Oops, I modified the wrong line.
That's what I meant. |
But that will make the original markdown links wrong. It means all the |
That's why I suggest the dirname change to accept a glob list, or adding a Or maybe you can add the same locales logic from I think the first one can be an enhance, while the second one is a prefect solution when the project has muti languages. |
No it won't, please look carefully at the documentation and the config I offered
Therefore, the links are not totally rendered by the folder and file name structure as you mentioned. |
However, I'll carefully consider the |
First, how can I config Besides, as I explained, my project are docs which it's pages are containing lot's of another pages' links. It's heavily depending on the file structure. So I don't think it's a good idea to make my local source file structure and the render results structure different. And I think that costs to much for just a category page and a tag page for each of my language in my website. Let me explain it more carefully with this example, I have The first thing you want me to do is to change them to The main effect is that it will render two en docs, one in base, another in Second, I have a folder helding assets for muti language in doc root folder, I have to rewrite every assets path to make them correct. Third, I have to careful, and remember any time that when I am working on en docs, my path is uncorrect. I have to check every path intelligense my editor gave to me. I really don't think it's a good idea that when I am writing a docs base on file structures, while they are naviagting to each other, my render structure is different from my source file structure. Beside the render results contain |
When can we have it? I really don't want to change my file structure? |
Feature request
What problem does this feature solve?
How can I configure internationalization for routes generated by
@vuepress/plugin-blog
?What does the proposed API look like?
How should this be implemented in your opinion?
Are you willing to work on this yourself?
No
The text was updated successfully, but these errors were encountered: