Skip to content

Commit d9db8de

Browse files
committed
I18nize RSS generator
1 parent 3520526 commit d9db8de

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/utils/rss.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ const getAllFiles = function (dirPath, arrayOfFiles) {
2424

2525
exports.generateRssFeed = function () {
2626
const feed = new Feed({
27-
title: 'React Blog',
27+
title: 'React Blog (JA)',
2828
description:
29-
'This blog is the official source for the updates from the React team. Anything important, including release notes or deprecation notices, will be posted here first.',
30-
feed_url: 'https://react.dev/rss.xml',
31-
site_url: 'https://react.dev/',
32-
language: 'en',
33-
favicon: 'https://react.dev/favicon.ico',
29+
'React チームからの公式な更新のお知らせが掲載されるブログです。リリースノートや非推奨化のお知らせなどの重要なことはすべて、まずこちらに掲載されます。',
30+
feed_url: 'https://ja.react.dev/rss.xml',
31+
site_url: 'https://ja.react.dev/',
32+
language: 'ja',
33+
favicon: 'https://ja.react.dev/favicon.ico',
3434
pubDate: new Date(),
3535
generator: 'react.dev rss module',
3636
});
@@ -72,7 +72,7 @@ exports.generateRssFeed = function () {
7272
title: data.title,
7373
author: data.author || '',
7474
date: new Date(data.date),
75-
url: `https://react.dev/blog/${slug}`,
75+
url: `https://ja.react.dev/blog/${slug}`,
7676
description: data.description,
7777
});
7878
}

0 commit comments

Comments
 (0)