Skip to content

Commit 353dc8b

Browse files
Add support for enAu localization (#1337)
1 parent 23def91 commit 353dc8b

3 files changed

Lines changed: 384 additions & 0 deletions

File tree

.changeset/heavy-parks-play.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@godaddy/localizations": patch
3+
"@godaddy/react": patch
4+
---
5+
6+
Add support for enAu localizations

packages/localizations/src/enAu.ts

Lines changed: 377 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,377 @@
1+
export const enAu = {
2+
general: {
3+
optional: 'optional',
4+
notes: 'Notes',
5+
quantity: 'Quantity',
6+
free: 'FREE',
7+
closed: 'Closed',
8+
apply: 'Apply',
9+
checkoutDisabled:
10+
'Checkout is currently disabled. We apologise for the inconvenience.',
11+
godaddyCheckout: 'GoDaddy Checkout',
12+
poweredBy: 'Powered by',
13+
},
14+
contact: {
15+
title: 'Contact',
16+
description: '',
17+
email: 'Email',
18+
},
19+
pickup: {
20+
title: 'Local Pickup',
21+
description:
22+
'All efforts will be made to meet your expected pickup time. Actual pickup times may vary.',
23+
location: 'Pickup Location',
24+
date: 'Pickup Date',
25+
time: 'Preferred Pickup Time',
26+
selectStore: 'Select a store location',
27+
selectDate: 'Select a date',
28+
selectTime: 'Select a pickup time',
29+
storeHours: 'Store Hours',
30+
seeDetails: 'See details',
31+
noTimeSlots:
32+
'No available time slots for the selected date. Please select another date.',
33+
hoursDisplayed: 'Hours displayed in your local timezone.',
34+
storeOperatesIn: 'Store operates in {timezone} timezone.',
35+
asap: 'ASAP',
36+
hour: 'hour',
37+
hours: 'hours',
38+
minutes: 'minutes',
39+
searchCountry: 'Search country...',
40+
noCountryFound: 'No country found.',
41+
},
42+
days: {
43+
sunday: 'Sunday',
44+
monday: 'Monday',
45+
tuesday: 'Tuesday',
46+
wednesday: 'Wednesday',
47+
thursday: 'Thursday',
48+
friday: 'Friday',
49+
saturday: 'Saturday',
50+
},
51+
delivery: {
52+
title: 'Delivery',
53+
method: 'Delivery method',
54+
shipping: 'Shipping',
55+
shipToAddress: 'Ship to your address',
56+
localPickup: 'Local Pickup',
57+
pickupFromStore: 'Pick up from store location',
58+
},
59+
tips: {
60+
title: 'Add a tip',
61+
noTip: 'No Tip',
62+
customAmount: 'Custom Amount',
63+
customTipAmount: 'Custom Tip Amount',
64+
placeholder: '$0.00',
65+
},
66+
shipping: {
67+
title: 'Shipping',
68+
description: 'Shipping address',
69+
method: 'Shipping method',
70+
noShippingMethodAddress:
71+
'Enter your address to see available shipping methods.',
72+
noShippingMethods: 'No shipping methods found.',
73+
phone: 'Phone Number',
74+
country: 'Country',
75+
selectCountry: 'Select country',
76+
searchCountry: 'Search country...',
77+
noCountryFound: 'No country found',
78+
firstName: 'First Name',
79+
lastName: 'Last Name',
80+
address1: 'Address',
81+
address2: 'Apartment, suite, etc. (optional)',
82+
city: 'City',
83+
region: 'State/Territory',
84+
postalCode: 'Postcode',
85+
notesPlaceholder: 'Notes or special instructions',
86+
addressSuggestion: 'Did you mean',
87+
addressSuggestionEnd: '?',
88+
noShippingOriginAddress: 'No shipping origin address provided.',
89+
},
90+
billing: {
91+
title: 'Billing',
92+
description: 'Billing description',
93+
},
94+
payment: {
95+
title: 'Payment',
96+
description: 'All payments are secure and encrypted.',
97+
billingAddress: {
98+
title: 'Billing Address',
99+
description: 'Enter your billing address.',
100+
useShippingAddress: 'Use shipping address as billing address',
101+
},
102+
methods: {
103+
creditCard: 'Credit or Debit Card',
104+
paypal: 'PayPal',
105+
applePay: 'Apple Pay',
106+
googlePay: 'Google Pay',
107+
paze: 'Paze',
108+
offline: 'Offline payments',
109+
mercadopago: 'Mercado Pago',
110+
ccavenue: 'Pay with CCAvenue',
111+
},
112+
descriptions: {
113+
creditCard: '',
114+
paypal: '',
115+
applePay: '',
116+
googlePay: '',
117+
paze: '',
118+
offline: '',
119+
mercadopago:
120+
'Use the MercadoPago form below to complete your purchase securely.',
121+
ccavenue: '',
122+
},
123+
noMethodsAvailable: 'No payment methods available',
124+
cardNumber: 'Card number',
125+
cardNumberPlaceholder: '1234 1234 1234 1234',
126+
expirationDate: 'Expiration date (MM / YY)',
127+
securityCode: 'Security code',
128+
cvvPlaceholder: 'CVV',
129+
nameOnCard: 'Name on card',
130+
payNow: 'Pay now',
131+
standardShipping: 'Standard Shipping',
132+
cardDetails: 'Card details',
133+
payWithApplePay: 'Pay with Apple Pay',
134+
expirationDatePlaceholder: 'MM / YY',
135+
failedToInitializePayment: 'Failed to initialise payment.',
136+
orderTotal: 'Order Total',
137+
subtotal: 'Subtotal',
138+
tax: 'GST',
139+
shipping: 'Shipping',
140+
discount: 'Coupon',
141+
processingPayment: 'Processing payment...',
142+
completingOrder: 'Completing order...',
143+
completeOrder: 'Complete your order',
144+
freePayment: 'Complete your free order',
145+
},
146+
phone: {
147+
placeholder: '+61 2 1234 5678',
148+
searchCountry: 'Search country...',
149+
noCountryFound: 'No country found.',
150+
},
151+
discounts: {
152+
placeholder: 'Coupon code',
153+
enterCode: 'Enter coupon code',
154+
apply: 'Apply',
155+
alreadyApplied: 'This coupon code has already been applied',
156+
failedToApply: 'Failed to apply coupon code',
157+
enterCodeValidation: 'Please enter a coupon code',
158+
},
159+
totals: {
160+
subtotal: 'Subtotal',
161+
discount: 'Discount',
162+
shipping: 'Shipping',
163+
tip: 'Tip',
164+
estimatedTaxes: 'Estimated GST',
165+
totalDue: 'Total Due',
166+
orderSummary: 'Order Summary',
167+
itemCount: 'items',
168+
noItems: 'No items',
169+
},
170+
lineItems: {
171+
note: 'Note:',
172+
},
173+
ui: {
174+
autocomplete: {
175+
addressPlaceholder: 'Address',
176+
suggestions: 'Suggestions',
177+
},
178+
form: {
179+
useFormFieldError: 'useFormField should be used within <FormField>',
180+
},
181+
pagination: {
182+
ariaLabel: 'pagination',
183+
previousPageAriaLabel: 'Go to previous page',
184+
previous: 'Previous',
185+
nextPageAriaLabel: 'Go to next page',
186+
next: 'Next',
187+
morePages: 'More pages',
188+
},
189+
sidebar: {
190+
useSidebarError: 'useSidebar must be used within a SidebarProvider.',
191+
toggleSidebar: 'Toggle Sidebar',
192+
},
193+
accessibility: {
194+
payWithApplePay: 'Pay with Apple Pay',
195+
applePayLogo: 'Apple Pay Logo',
196+
close: 'Close',
197+
additionalTipOptions: 'Additional tip options',
198+
breadcrumb: 'breadcrumb',
199+
more: 'More',
200+
previousSlide: 'Previous slide',
201+
nextSlide: 'Next slide',
202+
},
203+
},
204+
errors: {
205+
failedToGetAccessToken: 'Failed to get access token',
206+
invalidEnvironment: 'Invalid environment',
207+
noPublicAccessToken: 'No public access token provided',
208+
noSessionToken: 'No session token or ID provided',
209+
errorCreatingSession: 'Error creating checkout session:',
210+
orderIdRequired: 'Order ID is required',
211+
errorTrackingEvent: 'Error tracking event',
212+
errorInTrackingSubscriber: 'Error in tracking subscriber',
213+
useTrackingProviderError:
214+
'useTracking must be used within a TrackingProvider',
215+
usePoyntCollectProviderError:
216+
'usePoyntCollect must be used within a PoyntCollectProvider',
217+
useSquareProviderError: 'useSquare must be used within a SquareProvider',
218+
errorProcessingPayment: 'Error processing payment',
219+
stripeConfigMissing:
220+
'Stripe configuration is missing. Please check your setup.',
221+
paymentSuccessful: 'Payment successful',
222+
paymentFailed: 'Payment failed',
223+
paypalConfigMissing:
224+
'PayPal configuration is missing. Please check your setup.',
225+
stripeNotReady: 'Stripe not ready',
226+
cardElementNotFound: 'CardElement not found',
227+
errorProcessingCardPayment: 'Error processing card payment.',
228+
errorProcessingExpressPayment: 'Error processing express payment.',
229+
failedToInitializePayment: 'Failed to initialise payment.',
230+
invalidPhoneNumber: 'invalid phone number',
231+
},
232+
validation: {
233+
phoneRequired: 'Phone number is required',
234+
emailRequired: 'Enter an email',
235+
emailInvalid: 'Enter a valid email',
236+
phoneTooLong: 'Phone number too long',
237+
invalidShippingAddress: 'Invalid shipping address',
238+
invalidBillingAddress: 'Invalid billing address',
239+
selectPaymentMethod: 'Select a payment method',
240+
enterValidBillingPhone: 'Enter a valid billing phone number',
241+
enterValidShippingPhone: 'Enter a valid shipping phone number',
242+
enterFirstName: 'Enter a first name',
243+
enterLastName: 'Enter a last name',
244+
enterAddress: 'Enter an address',
245+
enterCity: 'Enter a city',
246+
enterZipCode: 'Enter a postcode',
247+
enterZipPostalCode: 'Enter a postcode',
248+
selectState: 'Select a state/territory',
249+
selectCountry: 'Select a country',
250+
enterCountry: 'Enter a country',
251+
invalidCardNumber: 'Invalid card number',
252+
invalidExpiry: 'Invalid expiration date',
253+
invalidCvv: 'Invalid security code',
254+
paymentSubmissionFailed: 'Payment submission failed. Please try again.',
255+
},
256+
apiErrors: {
257+
INTERNAL_SERVER_ERROR: 'Server error',
258+
SESSION_NOT_FOUND: 'Session not found',
259+
CHECKOUT_SESSION_RETRIEVAL_FAILED: 'Failed to retrieve checkout session',
260+
CHECKOUT_SESSION_NOT_FOUND: 'Checkout session not found',
261+
CHECKOUT_SESSION_FETCH_ERROR: 'General checkout session fetch error',
262+
DRAFT_ORDER_NOT_FOUND: 'Order not found',
263+
CHECKOUT_SESSION_CREATION_FAILED: 'Failed to create checkout session',
264+
CREATED_SESSION_DATA_NOT_FOUND: 'Created session data not found',
265+
CHECKOUT_SESSION_CREATION_ERROR: 'General checkout session creation error',
266+
CHECKOUT_SESSION_UPDATE_FAILED: 'Failed to update checkout session',
267+
UPDATED_SESSION_NOT_FOUND: 'Updated session not found',
268+
CHECKOUT_SESSION_UPDATE_ERROR: 'General checkout session update error',
269+
ORDER_API_NOT_FOUND: 'Order API data source not found',
270+
DRAFT_ORDER_RETRIEVAL_FAILED: 'Failed to retrieve order',
271+
DATA_SOURCES_NOT_FOUND: 'Data sources not found',
272+
TRANSACTION_API_NOT_FOUND: 'Transaction API data source not found',
273+
TRANSACTION_PROCESSING_FAILED: 'Failed to process transaction',
274+
TRANSACTION_CREATION_FAILED: 'Failed to find or create transaction',
275+
ORDER_OPENING_FAILED: 'Failed to open order',
276+
INVALID_FULFILLMENT_LOCATION: 'Invalid fulfillment location',
277+
NO_VALID_PICKUP_LOCATION: 'No valid pickup location available',
278+
DRAFT_ORDER_FETCH_FAILED: 'Failed to fetch order',
279+
LINE_ITEMS_FETCH_FAILED: 'Failed to fetch line items',
280+
CURRENT_ORDER_FETCH_FAILED: 'Failed to fetch current order',
281+
DRAFT_ORDER_UPDATE_FAILED: 'Failed to update order',
282+
DISCOUNT_APPLICATION_FAILED: 'Failed to apply coupon',
283+
CONTEXT_UNAVAILABLE: 'Session or data sources not available',
284+
SHIPPING_LINES_UPDATE_FAILED: 'Failed to update shipping lines',
285+
ORDER_TOTALS_UPDATE_FAILED: 'Failed to update order totals',
286+
ORDER_TOTAL_CALCULATION_FAILED: 'Failed to calculate order totals',
287+
SHIPPING_METHOD_APPLICATION_FAILED: 'Failed to apply shipping method',
288+
SKU_FETCH_FAILED: 'Failed to fetch SKUs',
289+
SHIPPING_RATES_CALCULATION_FAILED: 'Failed to calculate shipping rates',
290+
SHIPPING_METHOD_NOT_FOUND: 'Shipping method not found',
291+
SHIPPING_METHOD_REMOVAL_FAILED: 'Failed to remove shipping method',
292+
SHIPPING_ADDRESS_REQUIRED: 'Shipping address required',
293+
INVENTORY_VALIDATION_ERROR: 'Inventory validation error',
294+
INSUFFICIENT_INVENTORY: 'Insufficient inventory',
295+
INVALID_ORDER_STATUS: 'Invalid order status',
296+
TRANSACTION_CREATION_ERROR: 'Transaction creation error',
297+
TRANSACTION_PROCESSING_ERROR: 'Transaction processing error',
298+
UNKNOWN_ERROR: 'Unknown error',
299+
FULFILLMENT_CREATION_ERROR: 'Fulfillment creation error',
300+
TAX_CALCULATION_ERROR: 'GST calculation error',
301+
ADDRESS_VERIFICATION_ERROR: 'Address verification error',
302+
ADDRESS_MATCHES_ERROR: 'Address matches error',
303+
SHIPPING_CONFLICT_ERROR: 'Shipping conflict error',
304+
SHIPPING_ERROR: 'General shipping error',
305+
PRICE_ADJUSTMENT_CALCULATION_ERROR: 'Price adjustment calculation error',
306+
ORDER_FETCH_ERROR: 'Order fetch error',
307+
DRAFT_ORDER_UPDATE_ERROR: 'Order update error',
308+
DISCOUNT_APPLICATION_ERROR: 'Coupon application error',
309+
DRAFT_ORDER_OPEN_ERROR: 'Order open error',
310+
ORDER_UPDATE_ERROR: 'Order update error',
311+
CATALOG_FETCH_ERROR: 'Catalogue fetch error',
312+
STORE_ID_NOT_FOUND: 'Store ID not found',
313+
ORDER_NOT_DRAFT: 'Order is not in valid status',
314+
NO_LINE_ITEMS: 'No line items found',
315+
BAD_USER_INPUT: 'Invalid user input',
316+
MISSING_SHIPPING_ADDRESS: 'Shipping address is required',
317+
MISSING_REQUIRED_FIELD: 'Required field is missing',
318+
CATALOG_API_ERROR: 'Catalogue service error',
319+
TAX_SERVICE_UNAVAILABLE: 'GST service is unavailable',
320+
SHIPPING_SERVICE_UNAVAILABLE: 'Shipping service is unavailable',
321+
PRICE_ADJUSTMENTS_SERVICE_UNAVAILABLE:
322+
'Price adjustments service is unavailable',
323+
PRICE_ADJUSTMENTS_CALCULATION_FAILED:
324+
'Failed to calculate price adjustments',
325+
SERVICE_UNAVAILABLE: 'Service is temporarily unavailable',
326+
RATE_LIMITED: 'Too many requests, please try again later',
327+
TIMEOUT: 'Request timed out',
328+
INTERNAL_ERROR: 'Internal server error',
329+
SHIPPING_POSTAL_CODE_REQUIRED: 'Shipping postcode is required',
330+
SHIPPING_COUNTRY_CODE_REQUIRED: 'Shipping country code is required',
331+
SHIPPING_METHOD_REQUIRED: 'Shipping method is required',
332+
SHIPPING_ADDRESS_VERIFICATION_FAILED:
333+
'Shipping address verification failed',
334+
BILLING_ADDRESS_VERIFICATION_FAILED: 'Billing address verification failed',
335+
MISSING_SHIPPING_INFO: 'Shipping address or method failed to apply',
336+
DEPENDENCY_ERROR:
337+
"We're unable to process your order right now. Please wait a moment and try again",
338+
},
339+
storefront: {
340+
product: 'Product',
341+
sale: 'SALE',
342+
noImage: 'No image',
343+
noImageAvailable: 'No image available',
344+
selectOptions: 'Select Options',
345+
adding: 'Adding...',
346+
addToCart: 'Add to Cart',
347+
shoppingCart: 'Shopping Cart',
348+
failedToLoadCart: 'Failed to load cart:',
349+
retry: 'Retry',
350+
yourCartIsEmpty: 'Your cart is empty',
351+
addItemsToGetStarted: 'Add items to get started',
352+
errorLoadingProducts: 'Error loading products:',
353+
errorLoadingProduct: 'Error loading product:',
354+
productNotFound: 'Product not found',
355+
loadingVariantDetails: 'Loading variant details...',
356+
combinationNotAvailable:
357+
'This combination is not available. Please select different options.',
358+
variantsMatch:
359+
'variants match your selection. Select more attributes to narrow down.',
360+
quantity: 'Quantity',
361+
addingToCart: 'Adding to Cart...',
362+
outOfStock: 'Out of Stock',
363+
viewDetails: 'View Details',
364+
productType: 'Product Type:',
365+
productId: 'Product ID:',
366+
selectedSku: 'Selected SKU:',
367+
stockStatus: 'Stock Status:',
368+
lowStock: 'Low Stock',
369+
inStock: 'In Stock',
370+
remove: 'Remove',
371+
removing: 'Removing...',
372+
checkout: 'Checkout',
373+
itemsPerPage: 'Items per page:',
374+
search: 'Search',
375+
searchPlaceholder: 'Search products...',
376+
},
377+
};

packages/localizations/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
export { deDe } from './deDe';
2+
export { enAu } from './enAu';
23
export { enIe } from './enIe';
34
export { enUs } from './enUs';
45
export { esAr } from './esAr';

0 commit comments

Comments
 (0)