diff --git a/server/db/enums.go b/server/db/enums.go index 296d06e..723e721 100644 --- a/server/db/enums.go +++ b/server/db/enums.go @@ -59,24 +59,24 @@ type EnumDetail struct { var FuelUnitDetails map[FuelUnit]EnumDetail = map[FuelUnit]EnumDetail{ LITRE: { Short: "Lt", - Long: "Litre", + Long: "litre", }, GALLON: { Short: "Gal", - Long: "Gallon", + Long: "gallon", }, KILOGRAM: { Short: "Kg", - Long: "Kilogram", + Long: "kilogram", }, KILOWATT_HOUR: { Short: "KwH", - Long: "Kilowatt Hour", + Long: "kilowatthour", }, US_GALLON: { Short: "US Gal", - Long: "US Gallon", + Long: "usgallon", }, MINUTE: { Short: "Mins", - Long: "Minutes", + Long: "minutes", }, } diff --git a/ui/package.json b/ui/package.json index b246e38..d10ea64 100644 --- a/ui/package.json +++ b/ui/package.json @@ -41,10 +41,12 @@ "currency-formatter": "^1.5.7", "date-fns": "2.10.0", "lodash": "^4.17.21", + "node-gyp": "^9.3.1", "normalize.css": "8.0.1", "nprogress": "0.2.0", "vue": "2.6.11", "vue-chartjs": "^3.5.1", + "vue-i18n": "^8.28.2", "vue-meta": "2.3.3", "vue-router": "3.1.6", "vuex": "3.1.2" diff --git a/ui/src/components/createQuickEntry.vue b/ui/src/components/createQuickEntry.vue index fe8dc72..d535ebc 100644 --- a/ui/src/components/createQuickEntry.vue +++ b/ui/src/components/createQuickEntry.vue @@ -20,7 +20,7 @@ export default { } } else { if (this.file == null) { - return 'Upload Photo' + return this.$t('uploadphoto') } else { return '' } @@ -39,7 +39,7 @@ export default { .post(`/api/quickEntries`, formData) .then((data) => { this.$buefy.toast.open({ - message: 'Quick Entry Created Successfully', + message: this.$t('quickentrycreatedsuccessfully'), type: 'is-success', duration: 3000, }) @@ -68,9 +68,9 @@ export default {
Quick Entry
+{{ $tc('quickentry',1) }}
Take a pic of the invoice or the fuel pump display to make an entry later.
{{ $t('quickentrydesc') }}
diff --git a/ui/src/components/shareVehicle.vue b/ui/src/components/shareVehicle.vue
index d324b50..35ed5b1 100644
--- a/ui/src/components/shareVehicle.vue
+++ b/ui/src/components/shareVehicle.vue
@@ -55,7 +55,7 @@ export default {
return
}
this.$buefy.dialog.confirm({
- title: 'Transfer Vehicle',
+ title: this.$t('transfervehicle'),
message: 'Are you sure you want to do this? You will lose ownership and all editing rights if you confirm.',
cancelText: 'Cancel',
confirmText: 'Go Ahead',
@@ -90,7 +90,7 @@ export default {
Share {{ vehicle.nickname }}
+ {{ $t('share') }} {{ vehicle.nickname }}