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