Skip to content

Commit

Permalink
i18n things and type fixes for slot type helper functions
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad committed Jan 9, 2025
1 parent 00cd8a8 commit aa3a1b6
Show file tree
Hide file tree
Showing 9 changed files with 633 additions and 335 deletions.
48 changes: 45 additions & 3 deletions public/locale/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,14 @@
"ROUNDS_TYPE__NORMAL": "Brief Update",
"ROUNDS_TYPE__TELEMEDICINE": "Tele-medicine Log",
"ROUNDS_TYPE__VENTILATOR": "Detailed Update",
"SCHEDULE_AVAILABILITY_TYPE_DESCRIPTION__appointment": "Patients can be booked for slots in this session",
"SCHEDULE_AVAILABILITY_TYPE_DESCRIPTION__closed": "Inidcates the practitioner is not available for in this session's time",
"SCHEDULE_AVAILABILITY_TYPE_DESCRIPTION__open": "Indicates the practitioner is available in this session",
"SCHEDULE_AVAILABILITY_TYPE__appointment": "Appointment",
"SCHEDULE_AVAILABILITY_TYPE__closed": "Closed",
"SCHEDULE_AVAILABILITY_TYPE__open": "Open",
"SCHEDULE_EXCEPTION_TYPE__MODIFY_SCHEDULE": "Modify Schedule",
"SCHEDULE_EXCEPTION_TYPE__UNAVAILABLE": "Unavailable",
"SCHEDULE_SLOT_TYPE__appointment": "Appointment",
"SCHEDULE_SLOT_TYPE__closed": "Closed",
"SCHEDULE_SLOT_TYPE__open": "Open",
"SLEEP__EXCESSIVE": "Excessive",
"SLEEP__NO_SLEEP": "No sleep",
"SLEEP__SATISFACTORY": "Satisfactory",
Expand Down Expand Up @@ -314,6 +317,7 @@
"active_files": "Active Files",
"active_prescriptions": "Active Prescriptions",
"add": "Add",
"add_another_session": "Add another session",
"add_as": "Add as",
"add_attachments": "Add Attachments",
"add_beds": "Add Bed(s)",
Expand Down Expand Up @@ -647,6 +651,8 @@
"create_position_preset_description": "Creates a new position preset in Care from the current position of the camera for the given name",
"create_preset_prerequisite": "To create presets for this bed, you'll need to link the camera to the bed first.",
"create_resource_request": "Create Request",
"create_schedule_template": "Create Schedule Template",
"create_template": "Create Template",
"created": "Created",
"created_by": "Created By",
"created_date": "Created Date",
Expand Down Expand Up @@ -882,6 +888,7 @@
"encounter_suggestion_edit_disallowed": "Not allowed to switch to this option in edit consultation",
"encounters": "Encounters",
"end_datetime": "End Date/Time",
"end_time": "End Time",
"enter_aadhaar_number": "Enter a 12-digit Aadhaar ID",
"enter_aadhaar_otp": "Enter OTP sent to the registered mobile with Aadhaar",
"enter_abha_address": "Enter ABHA Address",
Expand Down Expand Up @@ -1304,6 +1311,7 @@
"notification_permission_denied": "Notification permission denied",
"notification_permission_granted": "Notification permission granted",
"notify": "Notify",
"number_min_error": "Must be greater than {{min}}",
"number_of_aged_dependents": "Number of Aged Dependents (Above 60)",
"number_of_beds": "Number of beds",
"number_of_beds_out_of_range_error": "Number of beds cannot be greater than 100",
Expand Down Expand Up @@ -1541,6 +1549,8 @@
"reject": "Reject",
"rejected": "Rejected",
"reload": "Reload",
"remarks": "Remarks",
"remarks_placeholder": "Enter remarks",
"remove": "Remove",
"remove_user": "Remove User",
"rename": "Rename",
Expand Down Expand Up @@ -1610,12 +1620,37 @@
"save": "Save",
"save_and_continue": "Save and Continue",
"save_investigation": "Save Investigation",
"saving": "Saving...",
"scan_asset_qr": "Scan Asset QR!",
"schedule": "Schedule",
"schedule_appointment": "Schedule Appointment",
"schedule_availability_deleted_successfully": "Schedule availability deleted successfully",
"schedule_availability_updated_successfully": "Schedule availability updated successfully",
"schedule_calendar": "Schedule Calendar",
"schedule_end_time": "End Time",
"schedule_for": "Scheduled for",
"schedule_information": "Schedule Information",
"schedule_remarks": "Remarks",
"schedule_remarks_placeholder": "Any additional notes about this session",
"schedule_session_time": "Session Time",
"schedule_session_title": "Session Title",
"schedule_session_type": "Session Type",
"schedule_sessions": "Sessions",
"schedule_sessions_min_error": "Add at least one session",
"schedule_slot_size": "Slot Size",
"schedule_slot_size_label": "Slot size (mins.)",
"schedule_slots_allocation_callout": "Allocating <strong>{{slots}} slots</strong> in this session provides approximately <strong>{{token_duration}} mins.</strong> for each patient.",
"schedule_start_time": "Start Time",
"schedule_template": "Schedule Template",
"schedule_template_name": "Template Name",
"schedule_template_name_placeholder": "Regular OP Day",
"schedule_tokens_per_slot": "Patients per Slot",
"schedule_valid_from_till_range": "Valid from <strong>{{from_date}}</strong> till <strong>{{to_date}}</strong>",
"schedule_weekdays": "Weekdays",
"schedule_weekdays_description": "Select the weekdays applicable for the template",
"schedule_weekdays_min_error": "Select at least one weekday",
"scheduled": "Scheduled",
"scheduled_for": "Schedule for:",
"scribe__reviewing_field": "Reviewing field {{currentField}} / {{totalFields}}",
"scribe_error": "Could not autofill fields",
"search": "Search",
Expand Down Expand Up @@ -1671,6 +1706,9 @@
"serviced_on": "Serviced on",
"session_expired": "Session Expired",
"session_expired_msg": "It appears that your session has expired. This could be due to inactivity. Please login again to continue.",
"session_title": "Session Title",
"session_title_placeholder": "IP Rounds",
"session_type": "Session Type",
"set_average_weekly_working_hours_for": "Set Average weekly working hours for",
"set_home_facility": "Set as home facility",
"set_your_local_language": "Set your local language",
Expand Down Expand Up @@ -1716,6 +1754,7 @@
"start_datetime": "Start Date/Time",
"start_dosage": "Start Dosage",
"start_review": "Start Review",
"start_time": "Start Time",
"state": "State",
"status": "Status",
"stop": "Stop",
Expand Down Expand Up @@ -1875,7 +1914,9 @@
"vacant": "Vacant",
"vaccinated": "Vaccinated",
"vaccine_name": "Vaccine name",
"valid_from": "Valid From",
"valid_otp_found": "Valid OTP found, Navigating to Appointments",
"valid_to": "Valid Till",
"vehicle_preference": "Vehicle preference",
"vendor_name": "Vendor Name",
"ventilator_interface": "Respiratory Support Type",
Expand Down Expand Up @@ -1927,6 +1968,7 @@
"ward": "Ward",
"warranty_amc_expiry": "Warranty / AMC Expiry",
"we_ve_sent_you_a_code_to": "We've sent you a code to",
"weekly_schedule": "Weekly Schedule",
"weekly_working_hours_error": "Average weekly working hours must be a number between 0 and 168",
"what_facility_assign_the_patient_to": "What facility would you like to assign the patient to",
"whatsapp_number": "Whatsapp Number",
Expand Down
8 changes: 5 additions & 3 deletions src/CAREUI/display/Callout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function Callout({
return (
<div
className={cn(
"flex h-min gap-2 rounded-md px-2 py-1.5 text-sm/tight",
"flex items-center h-min gap-2 rounded-md px-2 py-2 text-sm/tight",
{
primary: "bg-primary-100/50 text-primary-800",
secondary: "bg-gray-50 text-gray-700",
Expand All @@ -29,7 +29,7 @@ export default function Callout({
>
<div
className={cn(
"h-min rounded-full border bg-white px-2 py-0.5",
"h-min rounded-full border bg-white px-2",
{
primary: "border-primary-200",
secondary: "border-secondary-300",
Expand All @@ -41,7 +41,9 @@ export default function Callout({
>
<span className="font-medium">{props.badge}</span>
</div>
<span className="font-medium">{props.children}</span>
<div className="flex-1">
<span className="font-medium">{props.children}</span>
</div>
</div>
);
}
Loading

0 comments on commit aa3a1b6

Please sign in to comment.