How to turn off folders transliteration ? #2048
-
I use Nuxt 3 and its Content module. When I fetch my /content/ folder structure the .md files are returned as-is, while folders are transliterated into latin. Nothing special to provide regarding code, but just in case, here is how I fetch it:
And, for example, one of the folders is called "Базовая грамматика". When I output the navigation via console.log, I can see that title is "Bazovaya Grammatika". I tried googling and even asked ChatGPT, who suggested using But it didn't help. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
That happens because of |
Beta Was this translation helpful? Give feedback.
-
Oh, for files yes, the path is slugified as well. But that happens in URL, not in the navigation. So I got it. I display the itle property that I get from front matter file properties. But how to do the same with...folders? I can control how to display filenames, since I can put anything in frontmatter properties, but how to deal with folders =\ |
Beta Was this translation helpful? Give feedback.
-
The only thing that I've just thought about is to add "group" or "category" property for each file, and group files manually in JS. Like you know, make an associative array Group Name => array of files Each file has group name, so I can create this array |
Beta Was this translation helpful? Give feedback.
-
For folders, you should be able to use the # Базовая грамматика/_dir.yml
title: 'Базовая грамматика' But I don't know why the title field is transliterated by default... |
Beta Was this translation helpful? Give feedback.
For folders, you should be able to use the
_dir.yml
file (see second code group) inside the directory to set the title.But I don't know why the title field is transliterated by default...