Translation Added
This commit is contained in:
parent
5388dc04dc
commit
d5b478fb84
|
|
@ -15,6 +15,8 @@ class PaypalServiceProvider extends ServiceProvider
|
|||
{
|
||||
include __DIR__ . '/../Http/routes.php';
|
||||
|
||||
$this->loadTranslationsFrom(__DIR__ . '/../Resources/lang', 'paypal');
|
||||
|
||||
$this->loadViewsFrom(__DIR__ . '/../Resources/views', 'paypal');
|
||||
|
||||
$this->app->register(EventServiceProvider::class);
|
||||
|
|
@ -29,7 +31,7 @@ class PaypalServiceProvider extends ServiceProvider
|
|||
{
|
||||
$this->registerConfig();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Register package config.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -0,0 +1,9 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
'error' => [
|
||||
'universal-error' => 'Something went wrong!',
|
||||
'sdk-validation-error' => 'Client ID not recognized for either production or sandbox!',
|
||||
'authorization-error' => 'Client ID and Client Secret should be valid!'
|
||||
]
|
||||
];
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
'error' => [
|
||||
'universal-error' => 'Something went wrong!',
|
||||
'sdk-validation-error' => 'Client ID not recognized for either production or sandbox!',
|
||||
'authorization-error' => 'Client ID and Client Secret should be valid!'
|
||||
]
|
||||
];
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
'error' => [
|
||||
'universal-error' => 'Something went wrong!',
|
||||
'sdk-validation-error' => 'Client ID not recognized for either production or sandbox!',
|
||||
'authorization-error' => 'Client ID and Client Secret should be valid!'
|
||||
]
|
||||
];
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
'error' => [
|
||||
'universal-error' => 'Something went wrong!',
|
||||
'sdk-validation-error' => 'Client ID not recognized for either production or sandbox!',
|
||||
'authorization-error' => 'Client ID and Client Secret should be valid!'
|
||||
]
|
||||
];
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
'error' => [
|
||||
'universal-error' => 'Something went wrong!',
|
||||
'sdk-validation-error' => 'Client ID not recognized for either production or sandbox!',
|
||||
'authorization-error' => 'Client ID and Client Secret should be valid!'
|
||||
]
|
||||
];
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
'error' => [
|
||||
'universal-error' => 'Something went wrong!',
|
||||
'sdk-validation-error' => 'Client ID not recognized for either production or sandbox!',
|
||||
'authorization-error' => 'Client ID and Client Secret should be valid!'
|
||||
]
|
||||
];
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
'error' => [
|
||||
'universal-error' => 'Something went wrong!',
|
||||
'sdk-validation-error' => 'Client ID not recognized for either production or sandbox!',
|
||||
'authorization-error' => 'Client ID and Client Secret should be valid!'
|
||||
]
|
||||
];
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
'error' => [
|
||||
'universal-error' => 'Something went wrong!',
|
||||
'sdk-validation-error' => 'Client ID not recognized for either production or sandbox!',
|
||||
'authorization-error' => 'Client ID and Client Secret should be valid!'
|
||||
]
|
||||
];
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
'error' => [
|
||||
'universal-error' => 'Something went wrong!',
|
||||
'sdk-validation-error' => 'Client ID not recognized for either production or sandbox!',
|
||||
'authorization-error' => 'Client ID and Client Secret should be valid!'
|
||||
]
|
||||
];
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
'error' => [
|
||||
'universal-error' => 'Something went wrong!',
|
||||
'sdk-validation-error' => 'Client ID not recognized for either production or sandbox!',
|
||||
'authorization-error' => 'Client ID and Client Secret should be valid!'
|
||||
]
|
||||
];
|
||||
|
|
@ -15,9 +15,9 @@
|
|||
|
||||
<script>
|
||||
let messages = {
|
||||
universalError: "Something went wrong!",
|
||||
sdkValidationError: "SDK Validation Error: 'Client ID not recognized for either production or sandbox: {{ core()->getConfigData('sales.paymentmethods.paypal_smart_button.client_id') }}'",
|
||||
authorizationError: "Client ID and Client Secret should be valid!"
|
||||
universalError: "{{ __('paypal::app.error.universal-error') }}",
|
||||
sdkValidationError: "{{ __('paypal::app.error.sdk-validation-error') }}",
|
||||
authorizationError: "{{ __('paypal::app.error.authorization-error') }}"
|
||||
};
|
||||
|
||||
window.onload = (function() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue