feat(localization): Update English and Spanish translations for shift details and breaks
This commit is contained in:
@@ -999,9 +999,14 @@
|
||||
"est_total": "Est. Total",
|
||||
"hours_label": "$count hours",
|
||||
"location": "LOCATION",
|
||||
"break": "BREAK",
|
||||
"tbd": "TBD",
|
||||
"get_direction": "Get direction",
|
||||
"break_title": "BREAK",
|
||||
"paid": "Paid",
|
||||
"unpaid": "Unpaid",
|
||||
"min": "min",
|
||||
"hourly_rate": "Hourly Rate",
|
||||
"hours": "Hours",
|
||||
"open_in_maps": "Open in Maps",
|
||||
"job_description": "JOB DESCRIPTION",
|
||||
"cancel_shift": "CANCEL SHIFT",
|
||||
|
||||
@@ -999,9 +999,14 @@
|
||||
"est_total": "Total est.",
|
||||
"hours_label": "$count horas",
|
||||
"location": "UBICACIÓN",
|
||||
"break": "DESCANSO",
|
||||
"tbd": "TBD",
|
||||
"get_direction": "Obtener dirección",
|
||||
"break_title": "DESCANSO",
|
||||
"paid": "Pagado",
|
||||
"unpaid": "No pagado",
|
||||
"min": "min",
|
||||
"hourly_rate": "Tarifa por hora",
|
||||
"hours": "Horas",
|
||||
"open_in_maps": "Abrir en Mapas",
|
||||
"job_description": "DESCRIPCIÓN DEL TRABAJO",
|
||||
"cancel_shift": "CANCELAR TURNO",
|
||||
|
||||
@@ -249,7 +249,7 @@ class _ShiftDetailsPageState extends State<ShiftDetailsPage> {
|
||||
child: _buildStatCard(
|
||||
UiIcons.dollar,
|
||||
"\$${estimatedTotal.toStringAsFixed(0)}",
|
||||
"Total",
|
||||
i18n.est_total,
|
||||
),
|
||||
),
|
||||
const SizedBox(width: UiConstants.space4),
|
||||
@@ -257,7 +257,7 @@ class _ShiftDetailsPageState extends State<ShiftDetailsPage> {
|
||||
child: _buildStatCard(
|
||||
UiIcons.dollar,
|
||||
"\$${displayShift.hourlyRate.toStringAsFixed(0)}",
|
||||
"Hourly Rate",
|
||||
i18n.hourly_rate,
|
||||
),
|
||||
),
|
||||
const SizedBox(width: UiConstants.space4),
|
||||
@@ -265,7 +265,7 @@ class _ShiftDetailsPageState extends State<ShiftDetailsPage> {
|
||||
child: _buildStatCard(
|
||||
UiIcons.clock,
|
||||
duration.toStringAsFixed(1),
|
||||
"Hours",
|
||||
i18n.hours,
|
||||
),
|
||||
),
|
||||
],
|
||||
@@ -307,14 +307,14 @@ class _ShiftDetailsPageState extends State<ShiftDetailsPage> {
|
||||
children: [
|
||||
Expanded(
|
||||
child: _buildTimeBox(
|
||||
"CLOCK IN TIME",
|
||||
i18n.start_time,
|
||||
displayShift.startTime,
|
||||
),
|
||||
),
|
||||
const SizedBox(width: UiConstants.space4),
|
||||
Expanded(
|
||||
child: _buildTimeBox(
|
||||
"CLOCK OUT TIME",
|
||||
i18n.end_time,
|
||||
displayShift.endTime,
|
||||
),
|
||||
),
|
||||
@@ -336,7 +336,7 @@ class _ShiftDetailsPageState extends State<ShiftDetailsPage> {
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
"BREAK",
|
||||
i18n.break_title,
|
||||
style: UiTypography.titleUppercase4b
|
||||
.textSecondary,
|
||||
),
|
||||
@@ -350,7 +350,7 @@ class _ShiftDetailsPageState extends State<ShiftDetailsPage> {
|
||||
),
|
||||
const SizedBox(width: UiConstants.space2),
|
||||
Text(
|
||||
"${displayShift.breakInfo!.duration.minutes} min (${displayShift.breakInfo!.isBreakPaid ? 'Paid' : 'Unpaid'})",
|
||||
"${displayShift.breakInfo!.duration.minutes} ${i18n.min} (${displayShift.breakInfo!.isBreakPaid ? i18n.paid : i18n.unpaid})",
|
||||
style:
|
||||
UiTypography.headline5m.textPrimary,
|
||||
),
|
||||
@@ -369,7 +369,7 @@ class _ShiftDetailsPageState extends State<ShiftDetailsPage> {
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
"LOCATION",
|
||||
i18n.location,
|
||||
style: UiTypography
|
||||
.titleUppercase4b
|
||||
.textSecondary,
|
||||
@@ -381,7 +381,7 @@ class _ShiftDetailsPageState extends State<ShiftDetailsPage> {
|
||||
Expanded(
|
||||
child: Text(
|
||||
displayShift.location.isEmpty
|
||||
? "TBD"
|
||||
? i18n.tbd
|
||||
: displayShift.location,
|
||||
style: UiTypography.title1m.textPrimary,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
@@ -411,7 +411,7 @@ class _ShiftDetailsPageState extends State<ShiftDetailsPage> {
|
||||
UiIcons.navigation,
|
||||
size: UiConstants.iconXs,
|
||||
),
|
||||
label: const Text("Get direction"),
|
||||
label: Text(i18n.get_direction),
|
||||
style: OutlinedButton.styleFrom(
|
||||
foregroundColor: UiColors.textPrimary,
|
||||
side: const BorderSide(
|
||||
|
||||
Reference in New Issue
Block a user