Reset locale when changes are made - added to translation file
This commit is contained in:
parent
d89c394ba5
commit
301dc99431
2 changed files with 28 additions and 7 deletions
|
@ -5,6 +5,7 @@ namespace App\Classes\Settings;
|
|||
use App\Models\Settings;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
use Illuminate\Support\Facades\Session;
|
||||
|
||||
class LanguageSettingsC
|
||||
{
|
||||
|
@ -32,6 +33,7 @@ class LanguageSettingsC
|
|||
foreach ($values as $key => $value) {
|
||||
Settings::where('key', $key)->update(['value' => $request->get($value)]);
|
||||
Cache::forget("setting" . ':' . $key);
|
||||
Session::remove("locale");
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -4,11 +4,12 @@
|
|||
"api key has been removed!": "api key has been removed!",
|
||||
"Edit": "Edit",
|
||||
"Delete": "Delete",
|
||||
"configuration has been updated!": "configuration has been updated!",
|
||||
"Store item has been created!": "Store item has been created!",
|
||||
"Store item has been updated!": "Store item has been updated!",
|
||||
"Product has been updated!": "Product has been updated!",
|
||||
"Store item has been removed!": "Store item has been removed!",
|
||||
"Created at": "Created at",
|
||||
"Error!": "Error!",
|
||||
"unknown": "unknown",
|
||||
"Pterodactyl synced": "Pterodactyl synced",
|
||||
"Your credit balance has been increased!": "Your credit balance has been increased!",
|
||||
|
@ -16,6 +17,7 @@
|
|||
"Your payment has been canceled!": "Your payment has been canceled!",
|
||||
"Payment method": "Payment method",
|
||||
"Invoice": "Invoice",
|
||||
"Download": "Download",
|
||||
"Product has been created!": "Product has been created!",
|
||||
"Product has been removed!": "Product has been removed!",
|
||||
"Show": "Show",
|
||||
|
@ -26,6 +28,7 @@
|
|||
"Unsuspend": "Unsuspend",
|
||||
"Suspend": "Suspend",
|
||||
"Icons updated!": "Icons updated!",
|
||||
"configuration has been updated!": "configuration has been updated!",
|
||||
"link has been created!": "link has been created!",
|
||||
"link has been updated!": "link has been updated!",
|
||||
"product has been removed!": "product has been removed!",
|
||||
|
@ -80,7 +83,6 @@
|
|||
"Check the docs for it here": "Check the docs for it here",
|
||||
"Causer": "Causer",
|
||||
"Description": "Description",
|
||||
"Created at": "Created at",
|
||||
"Application API": "Application API",
|
||||
"Create": "Create",
|
||||
"Memo": "Memo",
|
||||
|
@ -111,6 +113,7 @@
|
|||
"Locations": "Locations",
|
||||
"Eggs": "Eggs",
|
||||
"Last updated :date": "Last updated :date",
|
||||
"Download all Invoices": "Download all Invoices",
|
||||
"Product Price": "Product Price",
|
||||
"Tax Value": "Tax Value",
|
||||
"Tax Percentage": "Tax Percentage",
|
||||
|
@ -153,7 +156,6 @@
|
|||
"Select panel icon": "Select panel icon",
|
||||
"Select panel favicon": "Select panel favicon",
|
||||
"Images and Icons may be cached, reload without cache to see your changes appear": "Images and Icons may be cached, reload without cache to see your changes appear",
|
||||
"Download all Invoices": "Download all Invoices",
|
||||
"Enter your companys name": "Enter your companys name",
|
||||
"Enter your companys address": "Enter your companys address",
|
||||
"Enter your companys phone number": "Enter your companys phone number",
|
||||
|
@ -163,6 +165,15 @@
|
|||
"Enter your custom invoice prefix": "Enter your custom invoice prefix",
|
||||
"Logo": "Logo",
|
||||
"Select Invoice Logo": "Select Invoice Logo",
|
||||
"Available languages": "Available languages",
|
||||
"Default language": "Default language",
|
||||
"The fallback Language, if something goes wrong": "The fallback Language, if something goes wrong",
|
||||
"Datable language": "Datable language",
|
||||
"The Language of the Datatables. Grab the Language-Codes from here": "The Language of the Datatables. Grab the Language-Codes from here",
|
||||
"Auto-translate": "Auto-translate",
|
||||
"If this is checked, the Dashboard will translate itself to the Clients language, if available": "If this is checked, the Dashboard will translate itself to the Clients language, if available",
|
||||
"Let the Client change the Language": "Let the Client change the Language",
|
||||
"If this is checked, Clients will have the ability to manually change their Dashboard language": "If this is checked, Clients will have the ability to manually change their Dashboard language",
|
||||
"Store": "Store",
|
||||
"Currency code": "Currency code",
|
||||
"Checkout the paypal docs to select the appropriate code": "Checkout the paypal docs to select the appropriate code",
|
||||
|
@ -240,7 +251,7 @@
|
|||
"per month": "per month",
|
||||
"Out of Credits in": "Out of Credits in",
|
||||
"Home": "Home",
|
||||
"Languages": "Languages",
|
||||
"Language": "Language",
|
||||
"See all Notifications": "See all Notifications",
|
||||
"Redeem code": "Redeem code",
|
||||
"Profile": "Profile",
|
||||
|
@ -278,7 +289,6 @@
|
|||
"Re-Sync Discord": "Re-Sync Discord",
|
||||
"Save Changes": "Save Changes",
|
||||
"Server configuration": "Server configuration",
|
||||
"Error!": "Error!",
|
||||
"Make sure to link your products to nodes and eggs.": "Make sure to link your products to nodes and eggs.",
|
||||
"There has to be at least 1 valid product for server creation": "There has to be at least 1 valid product for server creation",
|
||||
"No products available!": "No products available!",
|
||||
|
@ -344,5 +354,14 @@
|
|||
"Total amount": "Total amount",
|
||||
"Notes": "Notes",
|
||||
"Amount in words": "Amount in words",
|
||||
"Please pay until": "Please pay until"
|
||||
}
|
||||
"Please pay until": "Please pay until",
|
||||
"fr": "French",
|
||||
"cs": "Czech",
|
||||
"en": "English",
|
||||
"es": "Spanish",
|
||||
"de": "German",
|
||||
"hi": "Hindi",
|
||||
"it": "Italian",
|
||||
"pl": "Polish",
|
||||
"zh": "Chinese"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue