Skip to content

Commit

Permalink
chore: add translations + update keys
Browse files Browse the repository at this point in the history
  • Loading branch information
riqwan committed May 23, 2024
1 parent 19b8f07 commit d1b1fd8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
16 changes: 15 additions & 1 deletion packages/admin-next/dashboard/src/i18n/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -936,6 +936,9 @@
},
"promotions": {
"domain": "Promotions",
"sections": {
"details": "Promotion Details"
},
"fields": {
"method": "Method",
"type": "Type",
Expand All @@ -945,6 +948,9 @@
"allocation": "Allocation",
"addCondition": "Add condition",
"clearAll": "Clear all",
"amount": {
"tooltip": "Select the currency code to enable setting the amount"
},
"conditions": {
"rules": {
"title": "Who can use this code?",
Expand Down Expand Up @@ -979,6 +985,9 @@
"addToCampaign": {
"title": "Add Promotion To Campaign"
},
"campaign_currency": {
"tooltip": "Currency is carried over from the promotion. Change it on the promotions tab."
},
"form": {
"required": "Required",
"and": "AND",
Expand Down Expand Up @@ -1085,7 +1094,10 @@
"end_date": "End date",
"total_spend": "Budget spent",
"total_used": "Budget used",
"budget_limit": "Budget limit"
"budget_limit": "Budget limit",
"campaign_id": {
"hint": "A list of campaigns with the same currency code as the promotion"
}
},
"budget": {
"create": {
Expand Down Expand Up @@ -1116,6 +1128,8 @@
"description": "You are about to remove {{count}} promotion(s) from the campaign. This action cannot be undone."
},
"alreadyAdded": "This promotion has already been added to the campaign.",
"alreadyAddedDiffCampaign": "This promotion has already been added to a different campaign ({{name}}).",
"currencyMismatch": "Currency of the promotion and campaign doesn't match",
"toast": {
"success": "Successfully added {{count}} promotion(s) to campaign"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const ruleAttributes = [
},
{
id: "customer_group",
value: "customer_group.id",
value: "customer.groups.id",
label: "Customer Group",
required: false,
field_type: "multiselect",
Expand All @@ -49,7 +49,7 @@ const ruleAttributes = [
},
{
id: "sales_channel",
value: "sales_channel.id",
value: "sales_channel_id",
label: "Sales Channel",
required: false,
field_type: "multiselect",
Expand Down

0 comments on commit d1b1fd8

Please sign in to comment.