From 2c5feaa7af2a6fc53e4d70e74b90ac3a8cafd58d Mon Sep 17 00:00:00 2001 From: Neko Ayaka Date: Sat, 6 Jul 2024 23:52:54 +0800 Subject: [PATCH] fix(git-changelog): initial dev commits not handled Signed-off-by: Neko Ayaka --- .../src/plugins/nolebase/index.ts | 16 ++++++++++++++++ .../src/client/components/Changelog.vue | 14 +++++++++----- .../src/client/components/Contributors.vue | 4 ++-- 3 files changed, 27 insertions(+), 7 deletions(-) diff --git a/packages/unconfig-vitepress/src/plugins/nolebase/index.ts b/packages/unconfig-vitepress/src/plugins/nolebase/index.ts index e5a54778..44554b5e 100644 --- a/packages/unconfig-vitepress/src/plugins/nolebase/index.ts +++ b/packages/unconfig-vitepress/src/plugins/nolebase/index.ts @@ -99,6 +99,22 @@ const defaultOptions: NolebasePluginPresetOptions = { enable: true, options: { mapContributors: [], + locales: { + 'ru-RU': { + changelog: { + title: 'История изменений', + noData: 'Нет изменений', + lastEdited: 'Последнее редактирование: {{daysAgo}}', + lastEditedDateFnsLocaleName: 'ru', + viewFullHistory: 'Показать историю', + committedOn: ' от {{date}}', + }, + contributors: { + title: 'Авторы', + noData: 'Нет информации', + }, + }, + }, }, }, graphView: { diff --git a/packages/vitepress-plugin-git-changelog/src/client/components/Changelog.vue b/packages/vitepress-plugin-git-changelog/src/client/components/Changelog.vue index bbb13201..582fc41d 100644 --- a/packages/vitepress-plugin-git-changelog/src/client/components/Changelog.vue +++ b/packages/vitepress-plugin-git-changelog/src/client/components/Changelog.vue @@ -1,5 +1,5 @@