diff options
| author | かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com> | 2025-12-30 15:59:18 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-30 15:59:18 +0900 |
| commit | 97d485bdd279b1756b99937edcac6866673aa1c7 (patch) | |
| tree | 57dc564a1adc41252932434ec124b4e76b70fd85 /packages/frontend/src/widgets/WidgetRss.vue | |
| parent | fix(frontend): follow-up of #17033 (#17047) (diff) | |
| download | misskey-97d485bdd279b1756b99937edcac6866673aa1c7.tar.gz misskey-97d485bdd279b1756b99937edcac6866673aa1c7.tar.bz2 misskey-97d485bdd279b1756b99937edcac6866673aa1c7.zip | |
enhance(frontend): ウィジェットの設定項目の多言語対応 (#17032)
* enhance(frontend): ウィジェットの設定項目の多言語対応
* Update Changelog
* refactor: move options locale key to root for optimizing artifacts for locale inlining
* fix
* fix
* ✌️
---------
Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
Diffstat (limited to 'packages/frontend/src/widgets/WidgetRss.vue')
| -rw-r--r-- | packages/frontend/src/widgets/WidgetRss.vue | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/frontend/src/widgets/WidgetRss.vue b/packages/frontend/src/widgets/WidgetRss.vue index 5fa9e833b8..2495c5a6e9 100644 --- a/packages/frontend/src/widgets/WidgetRss.vue +++ b/packages/frontend/src/widgets/WidgetRss.vue @@ -25,6 +25,7 @@ import * as Misskey from 'misskey-js'; import { url as base } from '@@/js/config.js'; import { useInterval } from '@@/js/use-interval.js'; import { useWidgetPropsManager } from './widget.js'; +import { i18n } from '@/i18n.js'; import type { WidgetComponentEmits, WidgetComponentExpose, WidgetComponentProps } from './widget.js'; import type { FormWithDefault, GetFormResultType } from '@/utility/form.js'; import MkContainer from '@/components/MkContainer.vue'; @@ -34,19 +35,23 @@ const name = 'rss'; const widgetPropsDef = { url: { type: 'string', + label: i18n.ts._widgetOptions._rss.url, default: 'http://feeds.afpbb.com/rss/afpbb/afpbbnews', manualSave: true, }, refreshIntervalSec: { type: 'number', + label: i18n.ts._widgetOptions._rss.refreshIntervalSec, default: 60, }, maxEntries: { type: 'number', + label: i18n.ts._widgetOptions._rss.maxEntries, default: 15, }, showHeader: { type: 'boolean', + label: i18n.ts._widgetOptions.showHeader, default: true, }, } satisfies FormWithDefault; |