Client - add missing translations on chart + message when no workouts

This commit is contained in:
Sam
2021-09-21 08:51:07 +02:00
parent 795599ad46
commit 5dadbee29c
12 changed files with 117 additions and 43 deletions

View File

@ -4,6 +4,7 @@ import ButtonsTranslations from './buttons.json'
import CommonTranslations from './common.json'
import DashboardTranslations from './dashboard.json'
import ErrorTranslations from './error.json'
import SportsTranslations from './sports.json'
import StatisticsTranslations from './statistics.json'
import UserTranslations from './user.json'
import WorkoutsTranslations from './workouts.json'
@ -15,6 +16,7 @@ export default {
common: CommonTranslations,
dashboard: DashboardTranslations,
error: ErrorTranslations,
sports: SportsTranslations,
statistics: StatisticsTranslations,
user: UserTranslations,
workouts: WorkoutsTranslations,

View File

@ -0,0 +1,20 @@
{
"Cycling (Sport)": {
"LABEL": "Cycling (Sport)"
},
"Cycling (Transport)": {
"LABEL": "Cycling (Transport)"
},
"Hiking": {
"LABEL": "Hiking"
},
"Mountain Biking": {
"LABEL": "Mountain Biking"
},
"Running": {
"LABEL": "Running"
},
"Walking": {
"LABEL": "Walking"
}
}

View File

@ -1,3 +1,4 @@
{
"STATISTICS": "Statistics"
"STATISTICS": "Statistics",
"TOTAL": "Total"
}

View File

@ -3,6 +3,7 @@
"DISTANCE": "distance",
"DURATION": "duration",
"KM": "km",
"NO_WORKOUTS": "No workouts.",
"RECORD_AS": "Ave. speed",
"RECORD_FD": "Farest distance",
"RECORD_LD": "Longest duration",

View File

@ -4,6 +4,7 @@ import ButtonsTranslations from './buttons.json'
import CommonTranslations from './common.json'
import DashboardTranslations from './dashboard.json'
import ErrorTranslations from './error.json'
import SportsTranslations from './sports.json'
import StatisticsTranslations from './statistics.json'
import UserTranslations from './user.json'
import WorkoutsTranslations from './workouts.json'
@ -15,6 +16,7 @@ export default {
common: CommonTranslations,
dashboard: DashboardTranslations,
error: ErrorTranslations,
sports: SportsTranslations,
statistics: StatisticsTranslations,
user: UserTranslations,
workouts: WorkoutsTranslations,

View File

@ -0,0 +1,20 @@
{
"Cycling (Sport)": {
"LABEL": "Vélo (Sport)"
},
"Cycling (Transport)": {
"LABEL": "Vélo (Transport)"
},
"Hiking": {
"LABEL": "Randonnée"
},
"Mountain Biking": {
"LABEL": "VTT"
},
"Running": {
"LABEL": "Course"
},
"Walking": {
"LABEL": "Marche"
}
}

View File

@ -1,3 +1,4 @@
{
"STATISTICS": "Statistiques"
"STATISTICS": "Statistiques",
"TOTAL": "Total"
}

View File

@ -3,6 +3,7 @@
"DISTANCE": "distance",
"DURATION": "durée",
"KM": "km",
"NO_WORKOUTS": "Pas de séances.",
"RECORD_AS": "Vitesse moy.",
"RECORD_FD": "Distance la + longue",
"RECORD_LD": "Durée la + longue",