Skip to content
This repository has been archived by the owner on Aug 23, 2024. It is now read-only.

Commit

Permalink
chore: translation
Browse files Browse the repository at this point in the history
  • Loading branch information
NotHydra committed Feb 21, 2024
1 parent ecdb9de commit 0296e3a
Show file tree
Hide file tree
Showing 8 changed files with 198 additions and 158 deletions.
3 changes: 2 additions & 1 deletion apps/app/src/components/operator-tabs.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Redirect, Route } from "react-router-dom";
import { t } from "i18next";
import { IonRouterOutlet, IonTabs, IonTabBar, IonTabButton, IonLabel } from "@ionic/react";
import { Icons, OperatorContext } from "@trashtrack/ui";

Expand Down Expand Up @@ -34,7 +35,7 @@ const OperatorTabs: React.FC = () => {
</IonTabButton>
<IonTabButton tab="trashbinTab" href="/trash-bin/tabs/trashbin">
<Icons.trash strokeWidth={1} className="pt-2 w-[32px] h-[30px]" />
<IonLabel className="pt-2 pb-2">Trashbin</IonLabel>
<IonLabel className="pt-2 pb-2">{t("tabs.trashbin")}</IonLabel>
</IonTabButton>
{/* {isAdmin && (
<IonTabButton tab="userOperatorTab" href="/operator/tabs/user">
Expand Down
2 changes: 1 addition & 1 deletion apps/app/src/components/trashbin-tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const TrashbinTabs: React.FC = () => {
</IonTabButton>
<IonTabButton tab="trashbinTabs" href="/trash-bin/tabs/trashbin">
<Icons.trash strokeWidth={1} className="pt-2 w-[32px] h-[30px]" />
<IonLabel className="pt-2 pb-2">Trashbin</IonLabel>
<IonLabel className="pt-2 pb-2">{t("tabs.trashbin")}</IonLabel>
</IonTabButton>
{/* <IonTabButton tab="subTrashbinTabs" href="/trash-bin/tabs/sub-trashbin">
<Icons.subTrashbin strokeWidth={1} className="pt-2 w-[32px] h-[30px]" />
Expand Down
174 changes: 96 additions & 78 deletions apps/app/src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"preferences": "Preferences",
"laporkan": "Report",
"riwayat": "History",
"trashbin": "Trash Bin",
"report": "Report",
"back": "Back"
},
Expand Down Expand Up @@ -54,6 +55,19 @@
"report": "Report"
}
}
},
"history": {
"for" : "Report for:",
"notResponded": "Not Responded",
"accepted": "Accepted",
"rejected": "Rejected",
"completed": "Completed"
},
"feedback": {
"subtitle": "Feedback",
"back": "Back",
"noFeedback": "No feedbacks",
"createdAt": "Created:"
}
},
"operator": {
Expand All @@ -69,73 +83,17 @@
}
}
},
"reports": {
"subtitle": "Reports",
"search": "Search Trashbin",
"from": "Report from: ",
"for": "For: ",
"notResponded": "Not Responded",
"accepted": "Accepted",
"rejected": "Rejected",
"completed": "Completed",
"no_reports": "No reports found.",
"detailed": {
"subtitle": "detailed view of the report.",
"input": {
"reporter": "Reporter Identity",
"name": "Reporter",
"no": "Telephone Number",
"info": "Report Information",
"description": "Report Description",
"status": "Report Status",
"photo": "Report Photo",
"submitFeedback": "Submit Feedback",
"actions": {
"title": "Report Actions",
"loading": "Loading...",
"accept": "Accept",
"reject": "Reject",
"cancel": "Cancel",
"complete": "Complete"
}
}
},
"feedback": {
"delete": {
"warning": {
"title": "Are you sure you want to delete this feedback?",
"subtitle": "This action is irreversible.",
"pending": "Pending...",
"delete": "Delete",
"cancel": "Cancel"
},
"subtitle": "Feedback",
"create": "Create a new feedback",
"back": "Back",
"noResults": "No feedback found for this report.",
"created": "Created: ",
"delete": "Delete",
"createFeedback": {
"subtitle": "Create Feedback",
"title": "Title",
"description": "Description",
"submit": "Submit Feedback",
"cancel": "Cancel",
"validation": {
"title": "Title must be at least 8 characters long.",
"subtitle": "Description must be at least 8 characters long."
}
}
}
}
"dashboard": {
"login": "Back to Login",
"home": "Back to Home"
},
"trashbin": {
"subtitle": "Trashbins",
"create": "Create a new trashbin",
"search": "Search Trashbin",
"noResults": "No trashbin found for the search.",
"view_trashbin": "View Trashbin",
"view_subtrashbin": "View Subtrashbin",
"subtitle": "Trash Bin",
"create": "Create a new trash bin",
"search": "Search Trash Bin",
"noResults": "No trash bin found for the search.",
"view_trashbin": "View Trash Bin",
"view_subtrashbin": "View Sub Trash Bin",
"detailed": {
"name": "Name",
"description": "Description",
Expand All @@ -152,12 +110,12 @@
}
},
"create_trashbin": {
"subtitle": "Create Trashbin",
"subtitle": "Create Trash Bin",
"name": "Name",
"description": "Description",
"latitude": "Latitude",
"longitude": "Longitude",
"submit": "Create Trashbin",
"submit": "Create Trash Bin",
"back": "Back",
"validation": {
"name": "Name must be at least 8 characters long.",
Expand All @@ -173,12 +131,12 @@
}
},
"change_trashbin": {
"subtitle": "Change Trashbin",
"subtitle": "Change Trash Bin",
"name": "Name",
"description": "Description",
"latitude": "Latitude",
"longitude": "Longitude",
"submit": "Update Trashbin",
"submit": "Update Trash Bin",
"back": "Back",
"validation": {
"name": "Name must be at least 8 characters long.",
Expand All @@ -195,12 +153,12 @@
}
},
"subtrashbin": {
"subtitle": "Sub trashbins",
"create": "Create a new sub trashbin",
"search": "Search sub trashbin",
"subtitle": "Sub Trash Bin",
"create": "Create a new sub trash bin",
"search": "Search sub trash bin",
"back": "Back",
"noResults": "No sub trashbin found for the search.",
"view_subtrashbin": "View Subtrashbin",
"noResults": "No sub trash bin found for the search.",
"view_subtrashbin": "View Sub Trash Bin",
"view_trash": "View Trash",
"view_history": "View History",
"trash": {
Expand Down Expand Up @@ -230,23 +188,83 @@
}
},
"create_subtrashbin": {
"subtitle": "Create Sub trashbin",
"subtitle": "Create Sub Trash Bin",
"name": "Name",
"submit": "Create Sub trashbin",
"submit": "Create Sub Trash Bin",
"back": "Back",
"validation": {
"name": "Name must be at least 8 characters long."
}
},
"update_subtrashbin": {
"subtitle": "Update Sub trashbin",
"subtitle": "Update Sub Trash Bin",
"name": "Name",
"submit": "Update Sub trashbin",
"submit": "Update Sub Trash Bin",
"back": "Back",
"validation": {
"name": "Name must be at least 8 characters long."
}
}
},
"reports": {
"subtitle": "Reports",
"search": "Search Trash Bin",
"from": "Report from: ",
"for": "For: ",
"notResponded": "Not Responded",
"accepted": "Accepted",
"rejected": "Rejected",
"completed": "Completed",
"no_reports": "No reports found.",
"detailed": {
"subtitle": "Detailed view of the report.",
"input": {
"reporter": "Reporter Identity",
"name": "Reporter",
"no": "Telephone Number",
"info": "Report Information",
"description": "Report Description",
"status": "Report Status",
"photo": "Report Photo",
"submitFeedback": "Submit Feedback",
"actions": {
"title": "Report Actions",
"loading": "Loading...",
"accept": "Accept",
"reject": "Reject",
"cancel": "Cancel",
"complete": "Complete"
}
}
},
"feedback": {
"delete": {
"warning": {
"title": "Are you sure you want to delete this feedback?",
"subtitle": "This action is irreversible.",
"pending": "Pending...",
"delete": "Delete",
"cancel": "Cancel"
},
"subtitle": "Feedback",
"create": "Create a new feedback",
"back": "Back",
"noResults": "No feedback found for this report.",
"created": "Created: ",
"delete": "Delete",
"createFeedback": {
"subtitle": "Create Feedback",
"title": "Title",
"description": "Description",
"submit": "Submit Feedback",
"cancel": "Cancel",
"validation": {
"title": "Title must be at least 8 characters long.",
"subtitle": "Description must be at least 8 characters long."
}
}
}
}
}
}
}
Expand Down
Loading

0 comments on commit 0296e3a

Please sign in to comment.