谁知道如何在旅途中音译链接?我有一个网站正在 gatsby 上开发.我正在为那里的一篇帖子创建一个类别,将其写在FrontMatter中.有些类别可以用西里尔文写成.
---
title: "Yet Another Post"
date: "2021-07-25"
slug: "yet-another-post"
tags: ["animals", "Chicago", "zoos"]
categories: ["GatsbyJS", "Gatsby Develop", "Сайт с нуля"]
featuredImage: "./third.jpg"
---
然后在您的Gatsby-node.js中,我将为该类别创建一个页面(我使用烤肉串大小写,因为URL是由类别名称形成的)
createPage({
path: `blog/category/${_.kebabCase(category)}`,
component: require.resolve("./src/templates/categories.js"),
结果,链接到"Сайтснуля"(英文的"从零开始")类别的页面的链接将看起来像www.domain.ru/blog/category/сайт-с-нуля
,我希望有音译的链接,例如www.domain.ru/blog/category/sait-s-nulya
.有可能吗?