Comparing version 0.3.15 to 0.3.16
{ | ||
"google-date-is-out-of-range": "Date is out of range", | ||
"twilio-phone-number-invalid": "Invalid user phone", | ||
"twilio-phone-number-required": "Invalid user phone", | ||
"stripe-already-has-account": "Stripe account already exists", | ||
"stripe-should-has-account": "Stripe account is not exists", | ||
"stripe-bad-request": "Bad request", | ||
"stripe-user-should-accept-tos": "User should accept tos" | ||
"stripe-user-should-accept-tos": "User should accept tos", | ||
"twilio-phone-number-invalid": "Invalid user phone", | ||
"twilio-phone-number-required": "Invalid user phone" | ||
} |
{ | ||
"no-param": "Required parameter not found", | ||
"invalid-param": "Param is invalid", | ||
"X-ABL-Date": "X-ABL-Date must always be greater than the value in the previous request", | ||
@@ -19,6 +17,14 @@ "X-ABL-Signature": "Authentication required", | ||
"not-available-in-api": "Resource is not available for API", | ||
"message-default-template-not-found": "default template not found!", | ||
"param-is-required": "Required parameter (${name}) not found", | ||
"param-is-invalid": "Parameter (${name}) is invalid", | ||
"payment-unrecognized-currency": "Can't determine currency", | ||
"payment-declined": "Payment declined", | ||
"unrecognized-currency": "Can't determine currency", | ||
"payment-below-minimum": "This charge amount is below the minimum allowed to pay by credit card.", | ||
"payment-amount-gt-total": "Payment amount is greater than charge sum", | ||
"refund-amount-gt-total": "Refund amount is greater than payment sum", | ||
"refund-is-not-full": "Due to server error, only ${refunded} of ${amount} was successfully refunded, please try again to refund the remaining amount.", | ||
"user-is-not-verified": "Please verify your email", | ||
@@ -25,0 +31,0 @@ "user-is-not-active": "Your account is not active, please wait until we activate your account.", |
{ | ||
"name": "abl-lang", | ||
"title": "ABL - lang", | ||
"version": "0.3.15", | ||
"version": "0.3.16", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "description": "description", |
@@ -14,3 +14,3 @@ "use strict"; | ||
fs.readdirSync(path.join(__dirname, bundle, lang)).forEach(file => { | ||
languages[lang][file.slice(0, -5)] = require(path.join(__dirname, bundle, lang, file)) | ||
languages[lang][file.slice(0, -5)] = require(path.join(__dirname, bundle, lang, file)); | ||
}); | ||
@@ -29,3 +29,3 @@ }); | ||
export function getLanguage(user) { | ||
return languages[user && user.language || getDefaultLanguage()]; | ||
return languages[user && user.lang || getDefaultLanguage()]; | ||
} | ||
@@ -32,0 +32,0 @@ |
15684
12
258