Files
TREK/shared/src/i18n/ja/vacay.ts
T
Maurice 7528706d00 feat(vacay): half vacation days (#552) (#1631)
* feat(vacay): support half vacation days (#552)

Log a vacation day as a half day (0.5) as well as a full day and count it
as such against the entitlement. A "Half day" mode joins the calendar
toolbar on desktop and mobile; half days render as a diagonal half-fill in
the day cell, and the used/remaining totals carry the fraction.

Closes #552

* refactor(vacay): half-day as a per-person toggle with a corner badge

The diagonal half-fill collided with the two-person split — one person's
half day looked like two people off. Drop the diagonal: the cell fill keeps
showing who is off, a half day gets a small corner ½ badge, and a hover
tooltip lists who is off on that date and how much (only when a half day is
present). Logging moves from a third mode to a Half-day toggle that applies
to the selected person, on desktop and mobile.

* feat(vacay): mark half days with an orange corner dot

Swap the ½ badge for a small orange dot in the bottom-right corner, mirroring
the blue trip dot — quieter in the grid, and the hover tooltip still spells
out who is on a half day.

* fix(vacay): make the fraction migration idempotent

The crosswalk test replays the migration tail (rewind + re-run), which expects
every later migration to be idempotent. Guard the vacay_entries ADD COLUMN
behind a pragma_table_info check so the second run is a no-op. Also only set
dayVisual's `half` flag when true, so full days keep their exact
{ background, numColor } shape for the mobile day-model unit test.

* style(vacay): nudge the mobile day dots slightly inward

The blue trip dot and orange half-day dot sat right in the cell corner on
mobile; move both a touch toward the centre so they read cleaner.
2026-07-20 23:38:47 +02:00

97 lines
4.5 KiB
TypeScript

import type { TranslationStrings } from '../types';
const vacay: TranslationStrings = {
'vacay.subtitle': '休暇日数の計画と管理',
'vacay.settings': '設定',
'vacay.year': '年',
'vacay.addYear': '翌年を追加',
'vacay.addPrevYear': '前年を追加',
'vacay.removeYear': '年を削除',
'vacay.removeYearConfirm': '{year}年を削除しますか?',
'vacay.removeYearHint': 'この年の休暇データと会社休日はすべて完全に削除されます。',
'vacay.remove': '削除',
'vacay.persons': '人物',
'vacay.noPersons': '人物が追加されていません',
'vacay.addPerson': '人物を追加',
'vacay.editPerson': '人物を編集',
'vacay.removePerson': '人物を削除',
'vacay.removePersonConfirm': '{name}を削除しますか?',
'vacay.removePersonHint': 'この人物のすべての休暇データが完全に削除されます。',
'vacay.personName': '名前',
'vacay.personNamePlaceholder': '名前を入力',
'vacay.color': '色',
'vacay.add': '追加',
'vacay.legend': '凡例',
'vacay.publicHoliday': '祝日',
'vacay.companyHoliday': '会社休日',
'vacay.weekend': '週末',
'vacay.modeVacation': '休暇',
'vacay.modeCompany': '会社休日',
'vacay.modeHalf': '半休',
'vacay.modeHalfHint': '半休を登録',
'vacay.fullDay': '全休',
'vacay.entitlement': '付与日数',
'vacay.entitlementDays': '日',
'vacay.used': '使用済み',
'vacay.remaining': '残り',
'vacay.carriedOver': '{year}年から繰越',
'vacay.blockWeekends': '週末を除外',
'vacay.blockWeekendsHint': '週末に休暇を登録できないようにします',
'vacay.weekendDays': '週末',
'vacay.mon': '月',
'vacay.tue': '火',
'vacay.wed': '水',
'vacay.thu': '木',
'vacay.fri': '金',
'vacay.sat': '土',
'vacay.sun': '日',
'vacay.publicHolidays': '祝日',
'vacay.publicHolidaysHint': 'カレンダーに祝日を表示',
'vacay.selectCountry': '国を選択',
'vacay.selectRegion': '地域を選択(任意)',
'vacay.addCalendar': 'カレンダーを追加',
'vacay.calendarLabel': 'ラベル(任意)',
'vacay.calendarColor': '色',
'vacay.noCalendars': '祝日カレンダーはまだありません',
'vacay.companyHolidays': '会社休日',
'vacay.companyHolidaysHint': '会社全体の休日を設定できます',
'vacay.companyHolidaysNoDeduct': '会社休日は休暇日数に含まれません。',
'vacay.weekStart': '週の開始',
'vacay.weekStartHint': 'カレンダーの週を月曜始まりにするか日曜始まりにするかを選択します',
'vacay.carryOver': '繰越',
'vacay.carryOverHint': '残りの休暇日数を翌年に自動で繰り越します',
'vacay.sharing': '共有',
'vacay.sharingHint': '他のTREKユーザーと休暇計画を共有',
'vacay.owner': '所有者',
'vacay.shareEmailPlaceholder': 'TREKユーザーのメール',
'vacay.shareSuccess': '計画を共有しました',
'vacay.shareError': '共有できませんでした',
'vacay.dissolve': '統合を解除',
'vacay.dissolveHint': 'カレンダーを分離します。データは保持されます。',
'vacay.dissolveAction': '解除',
'vacay.dissolved': 'カレンダーを分離しました',
'vacay.fusedWith': '統合相手',
'vacay.you': 'あなた',
'vacay.noData': 'データなし',
'vacay.changeColor': '色を変更',
'vacay.inviteUser': 'ユーザーを招待',
'vacay.inviteHint': '別のTREKユーザーを招待して、休暇カレンダーを共有します。',
'vacay.selectUser': 'ユーザーを選択',
'vacay.sendInvite': '招待を送信',
'vacay.inviteSent': '招待を送信しました',
'vacay.inviteError': '招待を送信できませんでした',
'vacay.pending': '保留中',
'vacay.noUsersAvailable': '利用可能なユーザーがいません',
'vacay.accept': '承認',
'vacay.decline': '拒否',
'vacay.acceptFusion': '承認して統合',
'vacay.inviteTitle': '統合の招待',
'vacay.inviteWantsToFuse': 'が休暇カレンダーの共有を希望しています。',
'vacay.fuseInfo1': '双方が1つの共有カレンダーですべての休暇を確認できます。',
'vacay.fuseInfo2': '双方が互いの予定を作成・編集できます。',
'vacay.fuseInfo3': '双方が予定の削除や付与日数の変更を行えます。',
'vacay.fuseInfo4': '祝日や会社休日などの設定は共有されます。',
'vacay.fuseInfo5': '統合はいつでも解除できます。データは保持されます。',
};
export default vacay;