Issue: FM Beta: Dashboard multilingual feature issues #602

Closed
opened 2026-10-05 02:55:19 +02:00 by adam · 15 comments
Owner

Describe the bug

I've had a chance to give the new beta version a workout and found a few issues that I've listed below as a group.
You might prefer they be logged as separate issues.

Here's the relevant part of my fontmatter.json file:

"frontMatter.content.i18n": [
    {
      "title": "English",
      "locale": "en"
    },
    {
      "title": "Hindi",
      "locale": "hi",
      "path": "../hi"
    },
    {
      "title": "Bengali",
      "locale": "bn",
      "path": "../bn"
    }
  ],
  "frontMatter.content.pageFolders": [
    {
      "title": "posts",
      "path": "[[workspace]]/src/content/posts/en",
      "filePrefix": "",
      "defaultLocale": "en",
      "contentTypes": [
        "post"
      ]
    },
    {
      "title": "site",
      "path": "[[workspace]]/src/content/site/en",
      "filePrefix": "",
      "defaultLocale": "en",
      "contentTypes": [
        "site"
      ]
    }
  ],
  1. https://frontmatter.codes/frontmatter.schema.json - Missing schema item for "defaultLocale"

image

  1. In the Dashboard, combining filtering of locale with content type returns an empty list if the local is not English.

**To Reproduce + Expected behavior **

  • Selecting Locale: 'English' and Showing: 'All types' and it correctly displays all English documents.
  • Selecting Locale: 'English' and Showing: 'post' and it correctly displays English posts
  • Selecting Locale: 'Hindi' and Showing: 'All types' and it correctly displays all Hindi documents.
  • Selecting Locale: 'Hindi' and Showing: 'post' and it incorrectly displays NO posts.
  1. Locale filter sometimes disappears.

I haven't yet found a reproducible steps for this bug but I've seen it multiple times now. I suspect what's going is that the condition to display this filter option is in some way related to the list of documents found rather than the existence of the "frontMatter.content.i18n" setting.

Desktop (please complete the following information):

  • Win 10
  • Chrome
**Describe the bug** I've had a chance to give the new beta version a workout and found a few issues that I've listed below as a group. You might prefer they be logged as separate issues. Here's the relevant part of my `fontmatter.json` file: ```json "frontMatter.content.i18n": [ { "title": "English", "locale": "en" }, { "title": "Hindi", "locale": "hi", "path": "../hi" }, { "title": "Bengali", "locale": "bn", "path": "../bn" } ], "frontMatter.content.pageFolders": [ { "title": "posts", "path": "[[workspace]]/src/content/posts/en", "filePrefix": "", "defaultLocale": "en", "contentTypes": [ "post" ] }, { "title": "site", "path": "[[workspace]]/src/content/site/en", "filePrefix": "", "defaultLocale": "en", "contentTypes": [ "site" ] } ], ``` 1. `https://frontmatter.codes/frontmatter.schema.json` - Missing schema item for "defaultLocale" ![image](https://github.com/estruyf/vscode-front-matter/assets/301525/e58dc853-8f29-4bb8-a323-cb4a3c085f12) 2. In the Dashboard, combining filtering of locale with content type returns an empty list if the local is not English. **To Reproduce + Expected behavior ** - Selecting Locale: 'English' and Showing: 'All types' and it correctly displays all English documents. - Selecting Locale: 'English' and Showing: 'post' and it correctly displays English posts - Selecting Locale: 'Hindi' and Showing: 'All types' and it correctly displays all Hindi documents. - Selecting Locale: 'Hindi' and Showing: 'post' and it _incorrectly_ displays NO posts. 3. Locale filter sometimes disappears. I haven't yet found a reproducible steps for this bug but I've seen it multiple times now. I suspect what's going is that the condition to display this filter option is in some way related to the list of documents found rather than the existence of the `"frontMatter.content.i18n"` setting. **Desktop (please complete the following information):** - Win 10 - Chrome <!-- github-sync-id:2148259087 -->
adam closed this issue 2026-10-05 02:55:20 +02:00
Author
Owner
  1. It Is not an issue; it is because the feature is in beta and not yet available on the main JSON schema. If you change the schema to: https://beta.frontmatter.codes/frontmatter.schema.json, it fixes it.
  2. I'll take a look into it.
1. It Is not an issue; it is because the feature is in beta and not yet available on the main JSON schema. If you change the schema to: `https://beta.frontmatter.codes/frontmatter.schema.json`, it fixes it. 2. I'll take a look into it. <!-- github-comment-id:1958851335 -->
Author
Owner

@tohagan can you verify if the latest beta fixed issue 2?

Still looking into 3.

@tohagan can you verify if the latest beta fixed issue 2? Still looking into 3. <!-- github-comment-id:1959014790 -->
Author
Owner

I was able to reproduce it once. Changed the logic of the filter a bit, and should now be kept visible.

I was able to reproduce it once. Changed the logic of the filter a bit, and should now be kept visible. <!-- github-comment-id:1959039872 -->
Author
Owner

The Content types list is now showing a mixture of content type + language, whereas I think it should just be the content type (post/site) since the language should be selected by just the language filter. I will eventually have lots more languages and potentially more content types so this list would get out of hand if it had all combinations.

image

I'm also now not seeing English in the Languages list

image

The Content types list is now showing a mixture of content type + language, whereas I think it should just be the content type (post/site) since the language should be selected by just the language filter. I will eventually have lots more languages and potentially more content types so this list would get out of hand if it had all combinations. ![image](https://github.com/estruyf/vscode-front-matter/assets/301525/fa3c9e59-b655-4341-9623-d6e5d31fd1e4) I'm also now not seeing English in the Languages list ![image](https://github.com/estruyf/vscode-front-matter/assets/301525/b222aaff-a204-4f82-ba8f-4aaed06407a4) <!-- github-comment-id:1960556737 -->
Author
Owner
  1. https://beta.frontmatter.codes/frontmatter.schema.json

Cool ... was just confirming that you'd not missed this schema change.

> 1. https://beta.frontmatter.codes/frontmatter.schema.json Cool ... was just confirming that you'd not missed this schema change. <!-- github-comment-id:1960557917 -->
Author
Owner

@tohagan I'll change the logic in the Type filter. There it doesn't make sense.

Btw, does the English label ever show up in the language dropdown?

@tohagan I'll change the logic in the Type filter. There it doesn't make sense. Btw, does the English label ever show up in the language dropdown? <!-- github-comment-id:1960788701 -->
Author
Owner

Fixed the types filter, now it should only show you posts and site.

Any idea how I can reproduce the locale filter?

Can you do a screen recording of it?

Fixed the types filter, now it should only show you `posts` and `site`. Any idea how I can reproduce the locale filter? Can you do a screen recording of it? <!-- github-comment-id:1960861194 -->
Author
Owner

@tohagan changed the locale retrieval logic a bit for the filter.

@tohagan changed the locale retrieval logic a bit for the filter. <!-- github-comment-id:1960878363 -->
Author
Owner

Yeah that's fixed the Locale list. Well done!

Filtering is now better as I can now filter by Language + Content type for 2 of my 3 languages.
However, when I select English I'm seeing NO documents in the list.
This happens whether or not a Content type is selected.

I've tested this with a couple of different configurations.
For each configuration change, I used ...
(a) the refresh button
image
(b) Restarting VSCode

"frontMatter.content.i18n": [
    {
      "title": "English",
      "locale": "en",
      "path": "."
    },
    {
      "title": "Hindi",
      "locale": "hi",
      "path": "../hi"
    },
    {
      "title": "Bengali",
      "locale": "bn",
      "path": "../bn"
    }
  ],
  "frontMatter.content.pageFolders": [
    {
      "title": "posts",
      "path": "[[workspace]]/src/content/posts/en",
      "filePrefix": "",
      "defaultLocale": "en",
      "contentTypes": [
        "post"
      ]
    },
    {
      "title": "site",
      "path": "[[workspace]]/src/content/site/en",
      "filePrefix": "",
      "defaultLocale": "en",
      "contentTypes": [
        "site"
      ]
    }
  ],

And also this configuration that IMHO is the most logical to use. The other one will just confuse people.

 "frontMatter.content.i18n": [
    {
      "title": "English",
      "locale": "en",
      "path": "en"
    },
    {
      "title": "Hindi",
      "locale": "hi",
      "path": "hi"
    },
    {
      "title": "Bengali",
      "locale": "bn",
      "path": "bn"
    }
  ],
  "frontMatter.content.pageFolders": [
    {
      "title": "posts",
      "path": "[[workspace]]/src/content/posts",
      "filePrefix": "",
      "defaultLocale": "en",
      "contentTypes": [
        "post"
      ]
    },
    {
      "title": "site",
      "path": "[[workspace]]/src/content/site",
      "filePrefix": "",
      "defaultLocale": "en",
      "contentTypes": [
        "site"
      ]
    }
  ],
Yeah that's fixed the Locale list. Well done! Filtering is now better as I can now filter by Language + Content type for 2 of my 3 languages. However, when I select English I'm seeing NO documents in the list. This happens whether or not a Content type is selected. I've tested this with a couple of different configurations. For each configuration change, I used ... (a) the refresh button ![image](https://github.com/estruyf/vscode-front-matter/assets/301525/0ea05b5d-eb84-442f-b3bb-cbfa57776125) (b) Restarting VSCode ```json "frontMatter.content.i18n": [ { "title": "English", "locale": "en", "path": "." }, { "title": "Hindi", "locale": "hi", "path": "../hi" }, { "title": "Bengali", "locale": "bn", "path": "../bn" } ], "frontMatter.content.pageFolders": [ { "title": "posts", "path": "[[workspace]]/src/content/posts/en", "filePrefix": "", "defaultLocale": "en", "contentTypes": [ "post" ] }, { "title": "site", "path": "[[workspace]]/src/content/site/en", "filePrefix": "", "defaultLocale": "en", "contentTypes": [ "site" ] } ], ``` And also this configuration that IMHO is the most logical to use. The other one will just confuse people. ```json "frontMatter.content.i18n": [ { "title": "English", "locale": "en", "path": "en" }, { "title": "Hindi", "locale": "hi", "path": "hi" }, { "title": "Bengali", "locale": "bn", "path": "bn" } ], "frontMatter.content.pageFolders": [ { "title": "posts", "path": "[[workspace]]/src/content/posts", "filePrefix": "", "defaultLocale": "en", "contentTypes": [ "post" ] }, { "title": "site", "path": "[[workspace]]/src/content/site", "filePrefix": "", "defaultLocale": "en", "contentTypes": [ "site" ] } ], ``` <!-- github-comment-id:1961993035 -->
Author
Owner

In the LHS panel, the group headings should show Content Type + Locale but currently only show Content Type:

image

In the LHS panel, the group headings should show Content Type + Locale but currently only show Content Type: ![image](https://github.com/estruyf/vscode-front-matter/assets/301525/01816886-2474-4441-a8e9-11ada9e22379) <!-- github-comment-id:1962001127 -->
Author
Owner

If you'd like to do a joint Zoom session to speed up your testing/fixing cycle. I'd be available today.
Your time zone is 9 hours behind me. I have Zoom Pro if needed. Check my profile for email address.

If you'd like to do a joint Zoom session to speed up your testing/fixing cycle. I'd be available today. Your time zone is 9 hours behind me. I have Zoom Pro if needed. Check my profile for email address. <!-- github-comment-id:1962004955 -->
Author
Owner

Sent you an email so check Spam if you can't see it.

Sent you an email so check Spam if you can't see it. <!-- github-comment-id:1962297197 -->
Author
Owner

Thanks, @tohagan; I believe I had enough with the provided configuration. Found the issue on my Windows device, it was related to the file path matching.

Implemented a fix and tested it on my Windows device, now the multilingual content is shown correctly, filters are working and content creation as well.

Thanks, @tohagan; I believe I had enough with the provided configuration. Found the issue on my Windows device, it was related to the file path matching. Implemented a fix and tested it on my Windows device, now the multilingual content is shown correctly, filters are working and content creation as well. <!-- github-comment-id:1962355874 -->
Author
Owner

I think all issues are now fixed. Thank you @estruyf .
Greatly appreciated and I think this will be a valued addition for many users.

I think all issues are now fixed. Thank you @estruyf . Greatly appreciated and I think this will be a valued addition for many users. <!-- github-comment-id:1963846354 -->
Author
Owner

Thanks @tohagan for testing and also for becoming a sponsor 🙏

Thanks @tohagan for testing and also for becoming a sponsor 🙏 <!-- github-comment-id:1963965159 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/vscode-front-matter#602