Skip to content

Commit

Permalink
fix: fixed some duplications and missing translations
Browse files Browse the repository at this point in the history
  • Loading branch information
Corsico committed Aug 6, 2021
1 parent b233c23 commit 1fa1124
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 17 deletions.
6 changes: 1 addition & 5 deletions components/records/empty-timesheet.vue
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
<i18n lang="yaml">
en:
noHours: "There are no hours registered for this week."
projectHint: "Or use 'n' to add project"
addProject: "Add a project"
copyPrevious: "Copy previous week"
nl:
noHours: "#required"
projectHint: "#required"
addProject: "#required"
copyPrevious: "#required"
</i18n>

<template>
<div class="empty-timesheet">
<p>{{$t("noHours")}}</p>
<p>{{$t("noHoursThisWeek")}}</p>

<template>
<b-button
Expand Down
2 changes: 0 additions & 2 deletions components/records/select-project-dialog.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
<i18n lang="yaml">
en:
addProject: "Add project"
name: "Name"
nameError: "Please choose a project from the list"
nl:
addProject: "#required"
name: "#required"
nameError: "#required"
</i18n>

Expand Down
1 change: 1 addition & 0 deletions lang/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,5 @@ export default {
nonBillable: 'Non-billable',
kilometers: 'Kilometers',
hours: 'Hours',
availableAll: 'Available to all employeees',
};
1 change: 1 addition & 0 deletions lang/nl.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,5 @@ export default {
nonBillable: '#required',
kilometers: '#required',
hours: '#required',
availableAll: '#required',
};
6 changes: 1 addition & 5 deletions pages/customers/_customer_id.vue
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
<i18n lang="yaml">
en:
notFound: "Customer not found"
archived: "This customer archived at {time}"
enterName: "Enter name"
onlyReports: "Only visible in reports"
enterDebtor: "Enter debtor"
availableAll: "Available to all employeees"
nl:
notFound: "#required"
archived: "#required {time}"
enterName: "#required"
onlyReports: "#required"
enterDebtor: "#required"
availableAll: "#required"
</i18n>

<template>
Expand All @@ -32,7 +28,7 @@
@change="hasUnsavedChanges = true"
>
<b-alert :show="form.archived" variant="info">
{{$t('archived', { time: formatDate(form.archivedDate) })}}
{{$t('archivedCustomer', { time: formatDate(form.archivedDate) })}}
</b-alert>
<b-form-group
id="input-group-name"
Expand Down
2 changes: 0 additions & 2 deletions pages/customers/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
yes: "Yes"
no: "No"
debtorReportOnly: "Debtor (only visible in reports)"
availableAll: "Available to all employeees"
debtors: "Debtors"
archived: "Archived"
actions: "Actions"
Expand All @@ -27,7 +26,6 @@
yes: "#required"
no: "#required"
debtorReportOnly: "#required"
availableAll: "#required"
debtors: "#required"
archived: "#required"
actions: "#required"
Expand Down
2 changes: 0 additions & 2 deletions pages/employees/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
noEmployeeFound: "No employee found"
inactive: "Inactive"
manageEmployee: "Manage employee"
customerName: "Customer name"
addEmployee: "Add an employee"
nl:
searchEmployeeByName: "#required"
Expand All @@ -17,7 +16,6 @@
noEmployeeFound: "#required"
inactive: "#required"
manageEmployee: "#required"
customerName: "#required"
addEmployee: "#required"
</i18n>

Expand Down
3 changes: 2 additions & 1 deletion pages/month.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<i18n lang="yaml">
en:
customer: "Customer"
backToWeek: "Back to week view"
print: "Print"
totalBillableHours: "Total billable hours"
Expand All @@ -10,6 +11,7 @@
date: "Date"
selectProjects: "Select projects"
nl:
customer: "#required"
backToWeek: "#required"
print: "#required"
totalBillableHours: "#required"
Expand All @@ -18,7 +20,6 @@
noResultsMonth: "#required"
approvedBy: "#required"
date: "#required"
debtor: "#required"
selectProjects: "#required"
</i18n>

Expand Down

0 comments on commit 1fa1124

Please sign in to comment.