Skip to content

Commit

Permalink
feat: Add notification hint to translation files
Browse files Browse the repository at this point in the history
  • Loading branch information
cutls committed Sep 3, 2024
1 parent 0753952 commit 68fd3e5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@
"max_length_hint": "Unlimit: 0 Posts longer than the set length will be automatically hidden.",
"max_length_unit": "Letters",
"notification": "Desktop notification",
"notification_hint": "Notifications are only displayed when there is a notification column for that account.",
"ttsProvider": {
"title": "TTS Provider",
"hint": "If you want to use Bouyomi-chan, please install Bouyomi-chan and set up HTTP server.",
Expand Down
1 change: 1 addition & 0 deletions locales/ja/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@
"max_length_hint": "0 で制限なし。設定した以上の長さの投稿は自動的に隠されます。",
"max_length_unit": "",
"notification": "デスクトップ通知",
"notification_hint": "通知はそのアカウントの通知カラムがある時のみ表示されます。",
"ttsProvider": {
"title": "TTSのプロバイダ",
"hint": "棒読みちゃん連携を利用する場合はHTTP連携を利用します",
Expand Down
2 changes: 1 addition & 1 deletion renderer/pages/setting.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ function App() {
<SelectForm label={formatMessage({ id: 'settings.settings.timeline.time.title' })} value={timelineConfig.time} onChange={(value) => updateTimeline('time', value)} data={labelValueBuilder('timeline.time', time)} searchable={false} style={{ width: '100%' }} />
<RadioBoolean label={formatMessage({ id: 'settings.settings.timeline.animation' })} value={timelineConfig.animation} onChange={(value) => updateTimeline('animation', value)} />
<NumberForm label={formatMessage({ id: 'settings.settings.timeline.max_length' })} hint={formatMessage({ id: 'settings.settings.timeline.max_length_hint' })} value={timelineConfig.max_length} onChange={(value) => updateTimeline('max_length', value)} min={0} max={100} step={1} unit={formatMessage({ id: 'settings.settings.timeline.max_length_unit' })} />
<RadioBoolean label={formatMessage({ id: 'settings.settings.timeline.notification' })} value={timelineConfig.notification} onChange={(value) => updateTimeline('notification', value)} />
<RadioBoolean label={formatMessage({ id: 'settings.settings.timeline.notification' })} hint={formatMessage({ id: 'settings.settings.timeline.notification_hint' })} value={timelineConfig.notification} onChange={(value) => updateTimeline('notification', value)} />
<RadioForm label={formatMessage({ id: 'settings.settings.timeline.ttsProvider.title' })} hint={formatMessage({ id: 'settings.settings.timeline.ttsProvider.hint' })} value={timelineConfig.ttsProvider} onChange={(value) => updateTimeline('ttsProvider', value)} data={labelValueBuilder('timeline.ttsProvider', ['system', 'bouyomi'])} />
{timelineConfig.ttsProvider === 'bouyomi' && <NumberForm label={formatMessage({ id: 'settings.settings.timeline.ttsPort' })} value={timelineConfig.ttsPort} onChange={(value) => updateTimeline('ttsPort', value)} min={5000} max={65535} step={1} unit="" />}
<Divider />
Expand Down

0 comments on commit 68fd3e5

Please sign in to comment.