Skip to content

Commit

Permalink
Added: static text in locales file(#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
ymaheshwari1 committed Jul 18, 2023
1 parent 3a083ba commit a86c882
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/components/CustomFieldModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@
<ion-icon slot="icon-only" :icon="closeOutline" />
</ion-button>
</ion-buttons>
<ion-title>{{ $t("Add Custom Field") }}</ion-title>
<ion-title>{{ $t("Add custom field") }}</ion-title>
</ion-toolbar>
</ion-header>

<ion-content>
<ion-list>
<ion-item lines="full">
<ion-label position="fixed">{{ $t("Key") }}</ion-label>
<ion-input name="key" v-model="key" id="key" type="text" required />
<ion-input :placeholder="$t('Enter key')" name="key" v-model="key" id="key" type="text" required />
</ion-item>
<ion-item>
<ion-label position="fixed">{{ $t("Value") }}</ion-label>
<ion-input name="value" v-model="value" id="value" type="text" required />
<ion-input :placeholder="$t('Enter value')" name="value" v-model="value" id="value" type="text" required />
</ion-item>
</ion-list>

Expand Down
7 changes: 7 additions & 0 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
" doesn't have any orders in progress right now.": " doesn't have any orders in progress right now.",
" doesn't have any outstanding orders right now.": " doesn't have any outstanding orders right now.",
"Add Box": "Add Box",
"Add custom field": "Add custom field",
"Are you sure you want to change the time zone to?": "Are you sure you want to change the time zone to?",
"Are you sure you want perform this action?": "Are you sure you want perform this action?",
"Are you sure you want to recycle outstanding order(s)?": "Are you sure you want to recycle { ordersCount } outstanding order(s)?",
Expand All @@ -28,14 +29,18 @@
"Download packed orders": "Download packed orders",
"eCom Store": "eCom Store",
"Edit packaging": "Edit packaging",
"Enter key": "Enter key",
"Enter value": "Enter value",
"EXIM": "EXIM",
"Facility ID": "Facility ID",
"Facility updated successfully": "Facility updated successfully",
"Failed to add box": "Failed to add box",
"Failed to create picklist for orders": "Failed to create picklist for orders",
"Failed to generate shipping label": "Failed to generate shipping label",
"Failed to get packed orders information": "Failed to get packed orders information",
"Failed to pack order": "Failed to pack order",
"Failed to pack orders": "Failed to pack orders",
"Failed to parse the data": "Failed to parse the data",
"Failed to print shipping label and packing slip": "Failed to print shipping label and packing slip",
"Failed to ship order": "Failed to ship order",
"Failed to recycle in progress orders": "Failed to recycle in progress orders",
Expand All @@ -52,6 +57,7 @@
"Import shipped order details from an external system based on tracking codes. Orders that have tracking codes will automatically be shipped at the end of the day.": "Import shipped order details from an external system based on tracking codes. Orders that have tracking codes will automatically be shipped at the end of the day.",
"Import shipped orders": "Import shipped orders",
"In Progress": "In Progress",
"Key": "Key",
"Last brokered": "Last brokered",
"Loading": "Loading",
"Login": "Login",
Expand Down Expand Up @@ -162,6 +168,7 @@
"Unpacking this order will send it back to 'In progress' and it will have to be repacked.": "Unpacking this order will send it back to 'In progress' and it will have to be repacked.",
"Upload": "Upload",
"Username": "Username",
"Value": "Value",
"Worn Display": "Worn Display",
"Yes": "Yes",
"You are packing an order. Select additional documents that you would like to print.": "You are packing an order. Select additional documents that you would like to print.",
Expand Down
7 changes: 7 additions & 0 deletions src/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
" doesn't have any orders in progress right now.": " no tiene ningún pedido en curso en este momento.",
" doesn't have any outstanding orders right now.": " no tiene ningún pedido pendiente en este momento.",
"Add Box": "Agregar caja",
"Add custom field": "Add custom field",
"Are you sure you want to change the time zone to?": "¿Estás seguro de que quieres cambiar la zona horaria a?",
"Are you sure you want perform this action?": "¿Estás segura de que quieres realizar esta acción?",
"Are you sure you want to recycle outstanding order(s)?": "¿Está seguro de que desea reciclar # pedido(s) pendiente(s)?",
Expand All @@ -28,14 +29,18 @@
"Download packed orders": "Download packed orders",
"eCom Store": "Tienda electrónica",
"Edit packaging": "Edit packaging",
"Enter key": "Enter key",
"Enter value": "Enter value",
"EXIM": "EXIM",
"Facility ID": "Facility ID",
"Facility updated successfully": "Facility updated successfully",
"Failed to add box": "Failed to add box",
"Failed to create picklist for orders": "Failed to create picklist for orders",
"Failed to generate shipping label": "Failed to generate shipping label",
"Failed to get packed orders information": "Failed to get packed orders information",
"Failed to pack order": "Failed to pack order",
"Failed to pack orders": "Failed to pack orders",
"Failed to parse the data": "Failed to parse the data",
"Failed to print shipping label and packing slip": "Failed to print shipping label and packing slip",
"Failed to ship order": "Failed to ship order",
"Failed to recycle in progress orders": "Failed to recycle in progress orders",
Expand All @@ -52,6 +57,7 @@
"Import shipped order details from an external system based on tracking codes. Orders that have tracking codes will automatically be shipped at the end of the day.": "Import shipped order details from an external system based on tracking codes. Orders that have tracking codes will automatically be shipped at the end of the day.",
"Import shipped orders": "Import shipped orders",
"In Progress": "En curso",
"Key": "Key",
"Last brokered": "Última intermediación",
"Loading": "Loading",
"Login": "Acceso",
Expand Down Expand Up @@ -162,6 +168,7 @@
"Unpacking this order will send it back to 'In progress' and it will have to be repacked.": "Al desbloquear este pedido, se enviará de nuevo a 'En curso' y tendrá que volver a empacarse.",
"Upload": "Upload",
"Username": "Username",
"Value": "Value",
"Worn Display": "Worn Display",
"Yes": "",
"You are packing an order. Select additional documents that you would like to print.": "You are packing an order. Select additional documents that you would like to print.",
Expand Down
2 changes: 1 addition & 1 deletion src/views/DownloadPackedOrders.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</ion-list>

<ion-list>
<ion-button fill="clear" @click="addCustomField()" :disabled="!Object.keys(fieldMapping).length">{{ $t('Add custom fields') }}</ion-button>
<ion-button fill="clear" @click="addCustomField()" :disabled="!Object.keys(fieldMapping).length">{{ $t('Add custom field') }}</ion-button>

<ion-item :key="key" v-for="(value, key) in customFields">
<ion-label>{{ key }}</ion-label>
Expand Down

0 comments on commit a86c882

Please sign in to comment.