Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ export async function generateMetadata({
const t = await getI18n();

return {
title: t("people.employee_details"),
title: t("people.details.title"),
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ export async function generateMetadata({
const t = await getI18n();

return {
title: t("policies.policy_details"),
title: t("policies.dashboard.sub_pages.edit_policy"),
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export async function generateMetadata({
const t = await getI18n();

return {
title: t("policies.policy_details"),
title: t("policies.overview.title"),
};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,6 @@ export async function generateMetadata({
const t = await getI18n();

return {
title: t("risk.risk_comments"),
title: t("risk.comments"),
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ export async function generateMetadata({
const t = await getI18n();

return {
title: t("risk.register"),
title: t("risk.register.title"),
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ export async function generateMetadata({
const t = await getI18n();

return {
title: t("settings.members"),
title: t("settings.team.members.title"),
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export default async function VendorPage({ searchParams, params }: PageProps) {
<CardHeader>
<CardTitle>
<div className="flex items-center justify-between gap-2">
{t("vendor.tasks.title")}
{t("vendors.tasks.title")}
</div>
</CardTitle>
</CardHeader>
Expand Down Expand Up @@ -182,6 +182,6 @@ export async function generateMetadata({
const t = await getI18n();

return {
title: t("vendors.vendor_overview"),
title: t("vendors.title"),
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ export function UpdateTaskOverviewForm({

const updateTask = useAction(updateTaskAction, {
onSuccess: () => {
toast.success(t("risk.form.update_risk_success"));
toast.success(t("risk.tasks.form.update_success"));
setOpen(null);
},
onError: () => {
toast.error(t("risk.form.update_risk_error"));
toast.error(t("risk.tasks.form.update_error"));
},
});

Expand Down Expand Up @@ -92,7 +92,7 @@ export function UpdateTaskOverviewForm({
name="description"
render={({ field }) => (
<FormItem>
<FormLabel>Description</FormLabel>
<FormLabel>{t("risk.tasks.form.description")}</FormLabel>
<FormControl>
<Textarea
{...field}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export function UpdateRiskForm({
name="description"
render={({ field }) => (
<FormItem>
<FormLabel>Description</FormLabel>
<FormLabel>{t("risk.form.risk_description")}</FormLabel>
<FormControl>
<Textarea
{...field}
Expand Down
4 changes: 2 additions & 2 deletions apps/app/src/components/forms/policies/policy-overview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,12 @@ export function UpdatePolicyOverview({
name="status"
render={({ field }) => (
<FormItem>
<FormLabel>{t("risk.form.risk_status")}</FormLabel>
<FormLabel>{t("policies.overview.form.status")}</FormLabel>
<FormControl>
<Select value={field.value} onValueChange={field.onChange}>
<SelectTrigger>
<SelectValue
placeholder={t("risk.form.risk_status_placeholder")}
placeholder={t("policies.overview.form.status_placeholder")}
>
{field.value && (
<StatusPolicies status={field.value as StatusType} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export function UpdatePolicyForm({
<Textarea
{...field}
className="mt-3 min-h-[80px]"
placeholder={t("risk.form.risk_description_description")}
placeholder={t("policies.overview.form.description_placeholder")}
/>
</FormControl>
<FormMessage />
Expand Down
1 change: 1 addition & 0 deletions apps/app/src/locales/core/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ export const common = {
toasts: {
error: "Something went wrong, please try again.",
error_uploading_files: "Cannot upload more than 1 file at a time",
error_uploading_files_multiple: "Cannot upload more files than the maximum allowed",
error_no_files_selected: "No files selected",
error_file_rejected: "File {file} was rejected",
error_failed_to_upload_files: "Failed to upload files",
Expand Down
1 change: 1 addition & 0 deletions apps/app/src/locales/features/people.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export const people = {
title: "People",
details: {
title: "Employee Details",
tasks: "Tasks",
},
description: "Manage your team members and their roles.",
Expand Down
4 changes: 4 additions & 0 deletions apps/app/src/locales/features/policies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ export const policies = {
update_policy_success: "Policy updated successfully",
update_policy_error: "Failed to update policy",
update_policy_title: "Policy Name",
status: "Status",
status_placeholder: "Select status",
description: "Description",
description_placeholder: "Enter policy description",
review_frequency: "Review Frequency",
review_frequency_placeholder: "Select a review frequency",
review_date: "Review Date",
Expand Down
58 changes: 58 additions & 0 deletions apps/app/src/locales/features/risk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,64 @@ export const risk = {
risks: "risks",
overview: "Overview",
create: "Create New Risk",
comments: "Risk Comments",
risk_overview: "Risk Overview",
form: {
update_inherent_risk_success: "Inherent risk updated successfully",
update_inherent_risk_error: "Failed to update inherent risk",
update_residual_risk_success: "Residual risk updated successfully",
update_residual_risk_error: "Failed to update residual risk",
update_risk_success: "Risk updated successfully",
update_risk_error: "Failed to update risk",
create_risk_success: "Risk created successfully",
create_risk_error: "Failed to create risk",
risk_title: "Risk Title",
risk_title_description: "Enter risk title",
risk_details: "Risk Details",
risk_category: "Category",
risk_category_placeholder: "Select risk category",
risk_description: "Description",
risk_description_description: "Enter risk description",
risk_status: "Status",
risk_status_placeholder: "Select status"
},
register: {
title: "Risk Register",
table: {
risk: "Risk"
},
empty: {
create_risk: "Create Risk"
}
},
dashboard: {
title: "Risk Dashboard",
by_department: "Risks by Department",
status: "Risks by Status",
risks_by_assignee: "Risks by Assignee"
},
metrics: {
probability: "Probability",
impact: "Impact"
},
tasks: {
title: "Tasks",
task_overview: "Task Overview",
form: {
title: "Task Details",
task_title: "Task Title",
task_title_description: "Enter task title",
description: "Description",
description_description: "Enter task description",
due_date: "Due Date",
success: "Task created successfully",
error: "Failed to create task",
update_success: "Task updated successfully",
update_error: "Failed to update task",
status: "Status",
status_placeholder: "Select status"
}
},
vendor: {
title: "Vendor Management",
dashboard: {
Expand Down
1 change: 1 addition & 0 deletions apps/app/src/locales/features/tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export const tests = {
failed: "Failed",
severity_distribution: "Test Severity Distribution",
},
test_details: "Test Details",
severity: {
info: "Info",
low: "Low",
Expand Down
1 change: 1 addition & 0 deletions apps/app/src/locales/features/vendors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export const vendors = {
create_new: "Create Vendor",
},
create: "Create Vendor",
vendor_comments: "Vendor Comments",
form: {
vendor_details: "Vendor Details",
vendor_name: "Name",
Expand Down
5 changes: 5 additions & 0 deletions apps/app/src/locales/settings/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export const settings = {
org_delete_alert_title: "Are you absolutely sure?",
org_delete_alert_description:
"This action cannot be undone. This will permanently delete your organization and remove your data from our servers.",
delete_confirm_tip: "Type 'delete' to confirm",
org_delete_error: "Error deleting organization",
org_delete_success: "Organization deleted",
org_name_updated: "Organization name updated",
Expand Down Expand Up @@ -136,6 +137,10 @@ export const settings = {
title: "Invite Team Member",
description:
"Send an invitation to a new team member to join your organization",
error: {
title: "Invitation Error",
description: "There was an error processing your invitation."
},
form: {
email: {
label: "Email",
Expand Down