From df5d5cb75fb8fd822d37cb0c448221f9b7443357 Mon Sep 17 00:00:00 2001 From: Milos Holba Date: Mon, 22 Mar 2021 20:27:47 +0100 Subject: [PATCH] upgrade of __t function, add save default_language to cache --- .../Controllers/Admin/LanguageController.php | 1 - app/Http/Helpers/helpers.php | 43 ++++++- app/Setting.php | 12 ++ config/language_strings.php | 114 ++++++++++++++---- public/mix-manifest.json | 96 +++++++++++++-- .../components/Others/Forms/SelectInput.vue | 4 +- .../js/views/Admin/Languages/Language.vue | 16 ++- .../views/Admin/Languages/LanguageStrings.vue | 59 +++++++-- resources/js/views/Admin/Users/UserCreate.vue | 8 +- .../views/Admin/Users/UserTabs/UserDetail.vue | 4 +- resources/js/views/Auth/CreateNewPassword.vue | 4 +- resources/js/views/Auth/ForgottenPassword.vue | 2 +- resources/js/views/Auth/SignIn.vue | 4 +- resources/js/views/Auth/SignUp.vue | 10 +- resources/js/views/Shared/SharedPage.vue | 2 +- resources/js/views/User/Settings.vue | 4 +- resources/lang/en/vuefilemanager.php | 90 +++++++------- 17 files changed, 351 insertions(+), 122 deletions(-) diff --git a/app/Http/Controllers/Admin/LanguageController.php b/app/Http/Controllers/Admin/LanguageController.php index 650c4f7a..d71c8113 100644 --- a/app/Http/Controllers/Admin/LanguageController.php +++ b/app/Http/Controllers/Admin/LanguageController.php @@ -121,7 +121,6 @@ class LanguageController extends Controller 'value' => $request->value ]); - Cache::forget('language_strings-' . $language->locale); return response('Done', 204); diff --git a/app/Http/Helpers/helpers.php b/app/Http/Helpers/helpers.php index a690b55c..fc128bb8 100644 --- a/app/Http/Helpers/helpers.php +++ b/app/Http/Helpers/helpers.php @@ -805,22 +805,53 @@ function set_time_by_user_timezone($time) } -function _t($key) +function __t($key, $values = null) { - $locale = get_setting('language'); - - //Check if cash has string + // Check if is in cache save default_language + if (Cache::has('default_language')) { + + $locale = Cache::get('default_language'); + } else { + + $locale = Cache::rememberForever('default_language', function () { + return get_setting('language'); + }); + } + + // Check if cash has string if (Cache::has('language_strings-' . $locale)) { $strings = Cache::get('language_strings-' . $locale) ->languageStrings; // Find the string by key - return $strings->firstWhere('key', $key)->value; + $string = $strings->firstWhere('key', $key)->value; } // If cash dont have string return string from database - return LanguageString::whereLangAndKey($locale, $key) + $string = LanguageString::whereLangAndKey($locale, $key) ->first() ->value; + + if($values) { + return adjust_value($string, $values); + } + + return $string; +} + +function adjust_value($string, $values) +{ + $search = []; + $replace = []; + + if($values) { + foreach($values as $key => $variable) { + array_push($search, ':' . $key); + array_push($replace, $variable); + } + } + + return str_ireplace($search, $replace, $string); + } diff --git a/app/Setting.php b/app/Setting.php index 1984500b..a22d2438 100644 --- a/app/Setting.php +++ b/app/Setting.php @@ -2,6 +2,7 @@ namespace App; +use Illuminate\Support\Facades\Cache; use Illuminate\Database\Eloquent\Model; /** @@ -23,4 +24,15 @@ class Setting extends Model public $timestamps = false; protected $guarded = ['id']; + + protected static function boot() + { + parent::boot(); + + static::updated(function($setting) { + if($setting->name === 'language') { + Cache::forget('default_language'); + } + }); + } } diff --git a/config/language_strings.php b/config/language_strings.php index a2e9f86c..7aaa0ab9 100644 --- a/config/language_strings.php +++ b/config/language_strings.php @@ -315,9 +315,9 @@ return [ "page_contact_us.title" => "Contact Us", "page_create_password.button_update" => "Update Password", "page_create_password.label_confirm_pass" => "Confirm password", - "page_create_password.label_email" => "Email:", + "page_create_password.label_email" => "Email", "page_create_password.label_new_pass" => "New password", - "page_create_password.subtitle" => "Create your new password here:", + "page_create_password.subtitle" => "Create your new password here", "page_create_password.title" => "Only One Step to Log In", "page_forgotten_password.button_get_link" => "Get Link", "page_forgotten_password.pass_reseted_signin" => "Sign In", @@ -327,7 +327,7 @@ return [ "page_forgotten_password.pass_sennded_title" => "Thank you!", "page_forgotten_password.password_remember_button" => "Log In.", "page_forgotten_password.password_remember_text" => "Remember your password?", - "page_forgotten_password.subtitle" => "Get reset link with your email:", + "page_forgotten_password.subtitle" => "Get reset link with your email", "page_forgotten_password.title" => "Forgotten Password?", "page_index.get_started_button" => "Sign Up Now", "page_index.menu.contact_us" => "Contact Us", @@ -341,7 +341,7 @@ return [ "page_login.placeholder_email" => "Type your E-mail", "page_login.registration_button" => "Register account.", "page_login.registration_text" => "Don’t have an account?", - "page_login.subtitle" => "Please type your email to log in:", + "page_login.subtitle" => "Please type your email to log in", "page_login.title" => "Welcome Back!", "page_pricing_tables.description" => "Choose plan witch perfect fit your needs. All plans is billed monthly automatically via your credit card.", "page_pricing_tables.storage_capacity" => "Of Storage Capacity", @@ -350,20 +350,20 @@ return [ "page_registration.agreement" => "By clicking on 'Create Account' button I agree to the {0} and {1}.", "page_registration.button_create_account" => "Create Account", "page_registration.have_an_account" => "Do you have an account?", - "page_registration.label_confirm_pass" => "Confirm password:", - "page_registration.label_email" => "Email:", - "page_registration.label_name" => "Full Name:", - "page_registration.label_pass" => "Create password:", + "page_registration.label_confirm_pass" => "Confirm password", + "page_registration.label_email" => "Email", + "page_registration.label_name" => "Full Name", + "page_registration.label_pass" => "Create password", "page_registration.placeholder_confirm_pass" => "Confirm your new password", "page_registration.placeholder_email" => "Type your E-mail", "page_registration.placeholder_name" => "Type your full name", "page_registration.placeholder_pass" => "New password", - "page_registration.subtitle" => "Please fill registration to create account:", + "page_registration.subtitle" => "Please fill registration to create account", "page_registration.title" => "Create New Account", "page_shared.download_file" => "Download File", "page_shared.placeholder_pass" => "Type password", "page_shared.submit" => "Submit", - "page_shared.subtitle" => "Please type the password to get shared content:", + "page_shared.subtitle" => "Please type the password to get shared content", "page_shared.title" => "Your Share Link is Protected", "page_shared_404.subtitle" => "The content you are finding was probably deleted.", "page_shared_404.title" => "Not Found :(", @@ -371,7 +371,7 @@ return [ "page_sign_in.password_reset_button" => "Reset Password.", "page_sign_in.password_reset_text" => "Forgotten your password?", "page_sign_in.placeholder_password" => "Type your password", - "page_sign_in.subtitle" => "Confirm you by your password:", + "page_sign_in.subtitle" => "Confirm you by your password", "page_sign_in.title" => "Are You {name}?", "page_upgrade_account.change_payment.change_payment" => "change your default payment method", "page_upgrade_account.change_payment.pay_by_new_card" => "pay by new credit card", @@ -415,7 +415,7 @@ return [ "popup_paylod_error.message" => "Sorry, your file is too large and can't be uploaded", "popup_paylod_error.title" => "File is too large", "popup_rename.select_emoji_label" => "Pick Your Emoji Icon", - "popup_rename.color_pick_label" => "Pick Your Color:", + "popup_rename.color_pick_label" => "Pick Your Color", "popup_rename.emoji_list_not_found" => "Not Found", "popup_rename.label" => "Edit Name", "popup_rename.placeholder" => "Type your title", @@ -903,9 +903,9 @@ return [ "page_contact_us.title" => "Contact Us", "page_create_password.button_update" => "Update Password", "page_create_password.label_confirm_pass" => "Confirm password", - "page_create_password.label_email" => "Email:", + "page_create_password.label_email" => "Email", "page_create_password.label_new_pass" => "New password", - "page_create_password.subtitle" => "Create your new password here:", + "page_create_password.subtitle" => "Create your new password here", "page_create_password.title" => "Only One Step to Log In", "page_forgotten_password.button_get_link" => "Get Link", "page_forgotten_password.pass_reseted_signin" => "Sign In", @@ -915,7 +915,7 @@ return [ "page_forgotten_password.pass_sennded_title" => "Thank you!", "page_forgotten_password.password_remember_button" => "Log In.", "page_forgotten_password.password_remember_text" => "Remember your password?", - "page_forgotten_password.subtitle" => "Get reset link with your email:", + "page_forgotten_password.subtitle" => "Get reset link with your email", "page_forgotten_password.title" => "Forgotten Password?", "page_index.get_started_button" => "Sign Up Now", "page_index.menu.contact_us" => "Contact Us", @@ -929,7 +929,7 @@ return [ "page_login.placeholder_email" => "Type your E-mail", "page_login.registration_button" => "Register account.", "page_login.registration_text" => "Don’t have an account?", - "page_login.subtitle" => "Please type your email to log in:", + "page_login.subtitle" => "Please type your email to log in", "page_login.title" => "Welcome Back!", "page_pricing_tables.description" => "Choose plan witch perfect fit your needs. All plans is billed monthly automatically via your credit card.", "page_pricing_tables.storage_capacity" => "Of Storage Capacity", @@ -938,20 +938,20 @@ return [ "page_registration.agreement" => "By clicking on 'Create Account' button I agree to the {0} and {1}.", "page_registration.button_create_account" => "Create Account", "page_registration.have_an_account" => "Do you have an account?", - "page_registration.label_confirm_pass" => "Confirm password:", - "page_registration.label_email" => "Email:", - "page_registration.label_name" => "Full Name:", - "page_registration.label_pass" => "Create password:", + "page_registration.label_confirm_pass" => "Confirm password", + "page_registration.label_email" => "Email", + "page_registration.label_name" => "Full Name", + "page_registration.label_pass" => "Create password", "page_registration.placeholder_confirm_pass" => "Confirm your new password", "page_registration.placeholder_email" => "Type your E-mail", "page_registration.placeholder_name" => "Type your full name", "page_registration.placeholder_pass" => "New password", - "page_registration.subtitle" => "Please fill registration to create account:", + "page_registration.subtitle" => "Please fill registration to create account", "page_registration.title" => "Create New Account", "page_shared.download_file" => "Download File", "page_shared.placeholder_pass" => "Type password", "page_shared.submit" => "Submit", - "page_shared.subtitle" => "Please type the password to get shared content:", + "page_shared.subtitle" => "Please type the password to get shared content", "page_shared.title" => "Your Share Link is Protected", "page_shared_404.subtitle" => "The content you are finding was probably deleted.", "page_shared_404.title" => "Not Found :(", @@ -959,7 +959,7 @@ return [ "page_sign_in.password_reset_button" => "Reset Password.", "page_sign_in.password_reset_text" => "Forgotten your password?", "page_sign_in.placeholder_password" => "Type your password", - "page_sign_in.subtitle" => "Confirm you by your password:", + "page_sign_in.subtitle" => "Confirm you by your password", "page_sign_in.title" => "Are You {name}?", "popup_create_folder.folder_default_name" => "New Folder", "popup_create_folder.label" => "Type Name", @@ -989,7 +989,7 @@ return [ "popup_paylod_error.message" => "Sorry, your file is too large and can't be uploaded", "popup_paylod_error.title" => "File is too large", "popup_rename.select_emoji_label" => "Pick Your Emoji Icon", - "popup_rename.color_pick_label" => "Pick Your Color:", + "popup_rename.color_pick_label" => "Pick Your Color", "popup_rename.emoji_list_not_found" => "Not Found", "popup_rename.label" => "Edit Name", "popup_rename.placeholder" => "Type your title", @@ -1151,6 +1151,70 @@ return [ "user_subscription.status" => "Status", "user_subscription.title" => "Subscription Plan", "validation_errors.incorrect_password" => "Sorry, you passed incorrect password :(", - "validation_errors.wrong_image" => "You may have uploaded the wrong file, try again!" + "validation_errors.wrong_image" => "You may have uploaded the wrong file, try again!", + + // Laravel + 'app_description' => 'Your self-hosted storage cloud software powered by Laravel and Vue', + 'user_not_fount' => 'We can\'t find a user with that e-mail address.', + 'incorrect_password' => 'Sorry, your password is incorrect.', + 'time' => '%d. %B. %Y at %H:%M', + 'home' => 'Home', + + //Shared link email message + 'shared_link_email_subject' => '🙋 :user share some files with you. Look at it!', + 'shared_link_email_greeting' => 'Hello!', + 'shared_link_email_user' => ':user (:email) send you a link to shared files.', + 'shared_link_email_link' => 'Open your files', + 'shared_link_email_salutation' => 'Regards, :app_name', + + // Reset password email + 'reset_password_greeting' => 'Hello!', + 'reset_password_subject' => 'Reset password for your account on ', + 'reset_password_line_1' => 'You are receiving this email because we received a password reset request for your account.', + 'reset_password_line_2' => 'If you did not request a password reset, no further action is required.', + 'reset_password_action' => 'Reset Password', + + 'salutation' => 'Regards', + + // Invoice + 'print_button' => 'Print Document', + + 'vat' => 'VAT', + 'vat_included' => 'incl.', + 'subtotal' => 'Subtotal', + + 'tax_exempted' => 'Tax is exempted', + 'tax_be_paid_reverse' => 'Tax to be paid on reverse charge basis', + + 'invoice_title' => 'Invoice', + 'date' => 'Date', + 'product' => 'Product', + 'subscription' => 'Subscription', + 'invoice_number' => 'Invoice Number', + + 'seller' => 'Seller', + 'client' => 'Client', + + 'seller_vat' => 'VAT number', + 'seller_name' => 'Name', + 'seller_phone' => 'Phone', + + 'name' => 'Name', + 'phone' => 'Phone', + 'address' => 'Address', + 'city' => 'City', + 'state' => 'State', + 'postal_code' => 'Postal code', + 'country' => 'Country', + + 'col_description' => 'Description', + 'col_date' => 'Date', + 'col_amount' => 'Amount', + + 'total' => 'Total', + + // OG Page + 'user_sending' => ':name is sending you this file', + 'protected_file' => 'This link is protected by password', ] ]; \ No newline at end of file diff --git a/public/mix-manifest.json b/public/mix-manifest.json index 761e2869..4a017330 100644 --- a/public/mix-manifest.json +++ b/public/mix-manifest.json @@ -13,7 +13,7 @@ "/chunks/app-billings.js": "/chunks/app-billings.js?id=aac5bd51067578358164", "/chunks/app-email.js": "/chunks/app-email.js?id=9d1631b19f6492b8cae4", "/chunks/app-index.js": "/chunks/app-index.js?id=2dcbe307133d780b6472", - "/chunks/app-language.js": "/chunks/app-language.js?id=62fc50db4f9950730323", + "/chunks/app-language.js": "/chunks/app-language.js?id=bb4fa6e0ca895d1d9fcb", "/chunks/app-others.js": "/chunks/app-others.js?id=44efcfb317747ff3b508", "/chunks/app-payments.js": "/chunks/app-payments.js?id=187ecc16f9f7fbc4ccac", "/chunks/app-settings.js": "/chunks/app-settings.js?id=b6b0eba13665133c0a19", @@ -22,7 +22,7 @@ "/chunks/billings-detail.js": "/chunks/billings-detail.js?id=58b28aa55eff9f41d0db", "/chunks/contact-us.js": "/chunks/contact-us.js?id=cc28795de7e668d5919b", "/chunks/contact-us~chunks/dynamic-page~chunks/landing-page.js": "/chunks/contact-us~chunks/dynamic-page~chunks/landing-page.js?id=a4b8a7017c82de28296b", - "/chunks/create-new-password.js": "/chunks/create-new-password.js?id=108dcc4b5af4c973be56", + "/chunks/create-new-password.js": "/chunks/create-new-password.js?id=7c2f9087003330f9da79", "/chunks/dashboard.js": "/chunks/dashboard.js?id=ee57c44ceca0e7202363", "/chunks/dashboard~chunks/invoices~chunks/pages~chunks/plan-subscribers~chunks/plans~chunks/settings-i~0e2a0654.js": "/chunks/dashboard~chunks/invoices~chunks/pages~chunks/plan-subscribers~chunks/plans~chunks/settings-i~0e2a0654.js?id=cc1b4cbd4aa7f70151f7", "/chunks/database.js": "/chunks/database.js?id=576a280918ee6107d623", @@ -32,7 +32,7 @@ "/chunks/files~chunks/settings-subscription~chunks/shared-files~chunks/shared-page~chunks/user-subscription.js": "/chunks/files~chunks/settings-subscription~chunks/shared-files~chunks/shared-page~chunks/user-subscription.js?id=b646ec02fb9d6a497e74", "/chunks/files~chunks/shared-files~chunks/shared-page.js": "/chunks/files~chunks/shared-files~chunks/shared-page.js?id=6948f858eca208df8919", "/chunks/files~chunks/shared-page.js": "/chunks/files~chunks/shared-page.js?id=47ade53389e84dd64310", - "/chunks/forgotten-password.js": "/chunks/forgotten-password.js?id=d5e39543eeb619cb5513", + "/chunks/forgotten-password.js": "/chunks/forgotten-password.js?id=fc920c85f1dcd41bc9e0", "/chunks/installation-disclaimer.js": "/chunks/installation-disclaimer.js?id=285339a8dd06ace87e96", "/chunks/invoices.js": "/chunks/invoices.js?id=0dddc007dba47ac5785e", "/chunks/landing-page.js": "/chunks/landing-page.js?id=6c1137fd4f4d6e03b685", @@ -45,7 +45,7 @@ "/chunks/plan-settings.js": "/chunks/plan-settings.js?id=e608674e1719be65fe6f", "/chunks/plan-subscribers.js": "/chunks/plan-subscribers.js?id=26fbcc2472b65a745366", "/chunks/plans.js": "/chunks/plans.js?id=d6d92de642403caa999b", - "/chunks/profile.js": "/chunks/profile.js?id=015a2fcbaf2946f7eb11", + "/chunks/profile.js": "/chunks/profile.js?id=f810af87b9500da07485", "/chunks/profile~chunks/settings-password.js": "/chunks/profile~chunks/settings-password.js?id=555e6cf8a4b64b2bf130", "/chunks/purchase-code.js": "/chunks/purchase-code.js?id=9c4a9daae2237285f35b", "/chunks/settings.js": "/chunks/settings.js?id=2638798e697164161f7c", @@ -57,9 +57,9 @@ "/chunks/settings-subscription.js": "/chunks/settings-subscription.js?id=4c5675bec1cb07152692", "/chunks/setup-wizard.js": "/chunks/setup-wizard.js?id=b671f4f3198119b48449", "/chunks/shared-files.js": "/chunks/shared-files.js?id=b13068f12911fbf79f74", - "/chunks/shared-page.js": "/chunks/shared-page.js?id=074f7946e1c99ceadf48", - "/chunks/sign-in.js": "/chunks/sign-in.js?id=7b6565f5df2060b45bc0", - "/chunks/sign-up.js": "/chunks/sign-up.js?id=39de7293c26fb3cef1a3", + "/chunks/shared-page.js": "/chunks/shared-page.js?id=8d1b0e7f1ce06befc7c2", + "/chunks/sign-in.js": "/chunks/sign-in.js?id=2432aeaf7b937f6031a7", + "/chunks/sign-up.js": "/chunks/sign-up.js?id=92cf018091af2b41add6", "/chunks/stripe-credentials.js": "/chunks/stripe-credentials.js?id=402e3abd247572676394", "/chunks/subscription-plans.js": "/chunks/subscription-plans.js?id=2670e3ba48eb3b75c627", "/chunks/subscription-service.js": "/chunks/subscription-service.js?id=7176521fbf0047110ae1", @@ -68,12 +68,88 @@ "/chunks/upgrade-billing~chunks/upgrade-plan.js": "/chunks/upgrade-billing~chunks/upgrade-plan.js?id=a589c99d29f03bc71487", "/chunks/upgrade-plan.js": "/chunks/upgrade-plan.js?id=8bf12e8b93c7eaee4171", "/chunks/user.js": "/chunks/user.js?id=bdb8a51693952859f5e1", - "/chunks/user-create.js": "/chunks/user-create.js?id=499fa0f0dca50c9e4e51", + "/chunks/user-create.js": "/chunks/user-create.js?id=3b1b7fb1874cacf56662", "/chunks/user-delete.js": "/chunks/user-delete.js?id=91d17d44835dd32ec36f", - "/chunks/user-detail.js": "/chunks/user-detail.js?id=b5b474dd8fea7b99c766", + "/chunks/user-detail.js": "/chunks/user-detail.js?id=983b235711d5b20f08fa", "/chunks/user-invoices.js": "/chunks/user-invoices.js?id=04b8c39ed83dc89f739a", "/chunks/user-password.js": "/chunks/user-password.js?id=ac51d17a4aa7ae50bc88", "/chunks/user-storage.js": "/chunks/user-storage.js?id=5cfec8a8f8a8aef24ef2", "/chunks/user-subscription.js": "/chunks/user-subscription.js?id=10b3a108059d62d206c8", - "/chunks/users.js": "/chunks/users.js?id=6e68cb068f69fba3199c" + "/chunks/users.js": "/chunks/users.js?id=6e68cb068f69fba3199c", + "/chunks/app-language.2205bcc7f6ee689b9840.hot-update.js": "/chunks/app-language.2205bcc7f6ee689b9840.hot-update.js", + "/chunks/app-language.3f0bbb740122da0b673d.hot-update.js": "/chunks/app-language.3f0bbb740122da0b673d.hot-update.js", + "/chunks/app-language.57cfd1cb030a9f25601f.hot-update.js": "/chunks/app-language.57cfd1cb030a9f25601f.hot-update.js", + "/chunks/app-language.5ec497e5a9e02a176d12.hot-update.js": "/chunks/app-language.5ec497e5a9e02a176d12.hot-update.js", + "/chunks/app-language.f8943079f90af63054ce.hot-update.js": "/chunks/app-language.f8943079f90af63054ce.hot-update.js", + "/chunks/app-language.54afc673ab0932ef0e92.hot-update.js": "/chunks/app-language.54afc673ab0932ef0e92.hot-update.js", + "/chunks/app-language.f2aee30a97259f4a0506.hot-update.js": "/chunks/app-language.f2aee30a97259f4a0506.hot-update.js", + "/chunks/app-language.3cf39565af4e39a56266.hot-update.js": "/chunks/app-language.3cf39565af4e39a56266.hot-update.js", + "/chunks/app-language.f6f0a1f32980c917c44d.hot-update.js": "/chunks/app-language.f6f0a1f32980c917c44d.hot-update.js", + "/chunks/app-language.76e2368b6bd6fcd4b628.hot-update.js": "/chunks/app-language.76e2368b6bd6fcd4b628.hot-update.js", + "/chunks/app-language.3bc16cb03f9d669326b0.hot-update.js": "/chunks/app-language.3bc16cb03f9d669326b0.hot-update.js", + "/chunks/app-language.91a502fb0ba11520c582.hot-update.js": "/chunks/app-language.91a502fb0ba11520c582.hot-update.js", + "/chunks/app-language.4f4514565e5a3f37ad30.hot-update.js": "/chunks/app-language.4f4514565e5a3f37ad30.hot-update.js", + "/chunks/app-language.80068c2f265991830577.hot-update.js": "/chunks/app-language.80068c2f265991830577.hot-update.js", + "/chunks/app-language.22fd0622fc469111d7a2.hot-update.js": "/chunks/app-language.22fd0622fc469111d7a2.hot-update.js", + "/chunks/app-language.c169bd9688d83d0347f6.hot-update.js": "/chunks/app-language.c169bd9688d83d0347f6.hot-update.js", + "/chunks/app-language.b6f1dc94a36730e0b912.hot-update.js": "/chunks/app-language.b6f1dc94a36730e0b912.hot-update.js", + "/chunks/app-language.9e8710d0c67f398fbddc.hot-update.js": "/chunks/app-language.9e8710d0c67f398fbddc.hot-update.js", + "/chunks/app-language.4a2de5a04857f498d0c6.hot-update.js": "/chunks/app-language.4a2de5a04857f498d0c6.hot-update.js", + "/chunks/app-language.c3b396f18ee1e031755c.hot-update.js": "/chunks/app-language.c3b396f18ee1e031755c.hot-update.js", + "/chunks/app-language.ad8c7fe2060e365fff76.hot-update.js": "/chunks/app-language.ad8c7fe2060e365fff76.hot-update.js", + "/chunks/app-language.181b02cb039f8d8d680f.hot-update.js": "/chunks/app-language.181b02cb039f8d8d680f.hot-update.js", + "/chunks/app-language.fba250e9bda529813adb.hot-update.js": "/chunks/app-language.fba250e9bda529813adb.hot-update.js", + "/chunks/app-language.a6f8cfd33d82fc47b3a7.hot-update.js": "/chunks/app-language.a6f8cfd33d82fc47b3a7.hot-update.js", + "/chunks/app-language.6b7982a0e72461bbec69.hot-update.js": "/chunks/app-language.6b7982a0e72461bbec69.hot-update.js", + "/chunks/app-language.0f3e7cf3cf62de3e2f52.hot-update.js": "/chunks/app-language.0f3e7cf3cf62de3e2f52.hot-update.js", + "/chunks/app-language.b11bd599191a17ae914b.hot-update.js": "/chunks/app-language.b11bd599191a17ae914b.hot-update.js", + "/chunks/app-language.6d406fa3ed031fe4493e.hot-update.js": "/chunks/app-language.6d406fa3ed031fe4493e.hot-update.js", + "/chunks/app-language.6d0ad77a16d2689d8f69.hot-update.js": "/chunks/app-language.6d0ad77a16d2689d8f69.hot-update.js", + "/chunks/app-language.cda3d4412d5bce7cb1e5.hot-update.js": "/chunks/app-language.cda3d4412d5bce7cb1e5.hot-update.js", + "/chunks/app-language.f9514b62a434452ba4c8.hot-update.js": "/chunks/app-language.f9514b62a434452ba4c8.hot-update.js", + "/chunks/sign-up.652484c0dcbfc2f368b7.hot-update.js": "/chunks/sign-up.652484c0dcbfc2f368b7.hot-update.js", + "/chunks/sign-up.7238adafa42f256413f9.hot-update.js": "/chunks/sign-up.7238adafa42f256413f9.hot-update.js", + "/chunks/sign-up.49de17fd0e78616c7ad3.hot-update.js": "/chunks/sign-up.49de17fd0e78616c7ad3.hot-update.js", + "/chunks/user-create.107013b2d9852057ca6a.hot-update.js": "/chunks/user-create.107013b2d9852057ca6a.hot-update.js", + "/chunks/user-create.af162ad0a8d392cc6102.hot-update.js": "/chunks/user-create.af162ad0a8d392cc6102.hot-update.js", + "/chunks/user-detail.afc26c1eb03c0e6c2b37.hot-update.js": "/chunks/user-detail.afc26c1eb03c0e6c2b37.hot-update.js", + "/chunks/sign-up.5aeaffe0d584befaeba0.hot-update.js": "/chunks/sign-up.5aeaffe0d584befaeba0.hot-update.js", + "/chunks/profile.473c0ccfa89be296918c.hot-update.js": "/chunks/profile.473c0ccfa89be296918c.hot-update.js", + "/chunks/create-new-password.1ff6a77b4a7dd20b59e5.hot-update.js": "/chunks/create-new-password.1ff6a77b4a7dd20b59e5.hot-update.js", + "/chunks/user-create.c1aa3883b16d5110491e.hot-update.js": "/chunks/user-create.c1aa3883b16d5110491e.hot-update.js", + "/chunks/sign-up.af86da0f4c0bed397ea1.hot-update.js": "/chunks/sign-up.af86da0f4c0bed397ea1.hot-update.js", + "/chunks/sign-in.dcf8598e640acdbef02e.hot-update.js": "/chunks/sign-in.dcf8598e640acdbef02e.hot-update.js", + "/chunks/forgotten-password.6c5c9b747a5409c94ff3.hot-update.js": "/chunks/forgotten-password.6c5c9b747a5409c94ff3.hot-update.js", + "/chunks/create-new-password.76929662b5bf96dd6c05.hot-update.js": "/chunks/create-new-password.76929662b5bf96dd6c05.hot-update.js", + "/chunks/user-create.f31bc5fc0d846f4174bc.hot-update.js": "/chunks/user-create.f31bc5fc0d846f4174bc.hot-update.js", + "/chunks/user-detail.2d6f82d9b4ea01330cf2.hot-update.js": "/chunks/user-detail.2d6f82d9b4ea01330cf2.hot-update.js", + "/chunks/sign-up.36388d71c581430cfcbf.hot-update.js": "/chunks/sign-up.36388d71c581430cfcbf.hot-update.js", + "/chunks/profile.2113c6bf0a753609e311.hot-update.js": "/chunks/profile.2113c6bf0a753609e311.hot-update.js", + "/chunks/sign-in.45800c22490d5e34b2d1.hot-update.js": "/chunks/sign-in.45800c22490d5e34b2d1.hot-update.js", + "/chunks/shared-page.068fd94c60e7498f916d.hot-update.js": "/chunks/shared-page.068fd94c60e7498f916d.hot-update.js", + "/chunks/app-language.06d0786ce0d5c89e1c67.hot-update.js": "/chunks/app-language.06d0786ce0d5c89e1c67.hot-update.js", + "/chunks/app-language.50084d3425306c5b53ca.hot-update.js": "/chunks/app-language.50084d3425306c5b53ca.hot-update.js", + "/chunks/app-language.c7c541a5afa81eef13fd.hot-update.js": "/chunks/app-language.c7c541a5afa81eef13fd.hot-update.js", + "/chunks/app-language.07d42f6154bddb307d4c.hot-update.js": "/chunks/app-language.07d42f6154bddb307d4c.hot-update.js", + "/chunks/app-language.e9dc6e486602bd6edbc2.hot-update.js": "/chunks/app-language.e9dc6e486602bd6edbc2.hot-update.js", + "/chunks/app-language.cdff6c952adaab4a9235.hot-update.js": "/chunks/app-language.cdff6c952adaab4a9235.hot-update.js", + "/chunks/app-language.46408825f1c8ec423335.hot-update.js": "/chunks/app-language.46408825f1c8ec423335.hot-update.js", + "/chunks/app-language.6c6c0c461b1c389c4b79.hot-update.js": "/chunks/app-language.6c6c0c461b1c389c4b79.hot-update.js", + "/chunks/app-language.3d6b65041812f1b857a5.hot-update.js": "/chunks/app-language.3d6b65041812f1b857a5.hot-update.js", + "/chunks/app-language.b3e44cfb1ed4e064260b.hot-update.js": "/chunks/app-language.b3e44cfb1ed4e064260b.hot-update.js", + "/chunks/app-language.48ee61555d1d541aa5fe.hot-update.js": "/chunks/app-language.48ee61555d1d541aa5fe.hot-update.js", + "/chunks/app-language.c95b4e370a4a99517aa7.hot-update.js": "/chunks/app-language.c95b4e370a4a99517aa7.hot-update.js", + "/chunks/app-language.6d3e3fa2ad4e91fb5e6a.hot-update.js": "/chunks/app-language.6d3e3fa2ad4e91fb5e6a.hot-update.js", + "/chunks/app-language.cedbb795171698a62c32.hot-update.js": "/chunks/app-language.cedbb795171698a62c32.hot-update.js", + "/chunks/app-language.35c7442e55abbad5fc9b.hot-update.js": "/chunks/app-language.35c7442e55abbad5fc9b.hot-update.js", + "/chunks/app-language.0b860a62ccb27c8092d7.hot-update.js": "/chunks/app-language.0b860a62ccb27c8092d7.hot-update.js", + "/chunks/app-language.b05a3da3f91372228cf3.hot-update.js": "/chunks/app-language.b05a3da3f91372228cf3.hot-update.js", + "/chunks/app-language.7f0ca7b7af97f1160ce7.hot-update.js": "/chunks/app-language.7f0ca7b7af97f1160ce7.hot-update.js", + "/chunks/app-language.45fcc4e5a62eefb00e83.hot-update.js": "/chunks/app-language.45fcc4e5a62eefb00e83.hot-update.js", + "/chunks/app-language.da2401d2a9dd5113e3c7.hot-update.js": "/chunks/app-language.da2401d2a9dd5113e3c7.hot-update.js", + "/chunks/app-language.d689d0ac3fdc1de9a820.hot-update.js": "/chunks/app-language.d689d0ac3fdc1de9a820.hot-update.js", + "/chunks/app-language.f83ba6a70c9be6cf565d.hot-update.js": "/chunks/app-language.f83ba6a70c9be6cf565d.hot-update.js", + "/chunks/app-language.c85708a51bfe8b11c687.hot-update.js": "/chunks/app-language.c85708a51bfe8b11c687.hot-update.js", + "/chunks/app-language.f5031115ac662c846871.hot-update.js": "/chunks/app-language.f5031115ac662c846871.hot-update.js", + "/js/main.c2b409e3f934234e6d50.hot-update.js": "/js/main.c2b409e3f934234e6d50.hot-update.js" } diff --git a/resources/js/components/Others/Forms/SelectInput.vue b/resources/js/components/Others/Forms/SelectInput.vue index 1a8d0636..7709510a 100644 --- a/resources/js/components/Others/Forms/SelectInput.vue +++ b/resources/js/components/Others/Forms/SelectInput.vue @@ -10,7 +10,7 @@ - {{ $t(`${selected.label}`) }} + {{ selected.label }} @@ -29,7 +29,7 @@ - {{ $t(`${option.label}`) }} + {{ option.label }} diff --git a/resources/js/views/Admin/Languages/Language.vue b/resources/js/views/Admin/Languages/Language.vue index 18069abe..c9847762 100644 --- a/resources/js/views/Admin/Languages/Language.vue +++ b/resources/js/views/Admin/Languages/Language.vue @@ -182,7 +182,7 @@ export default { margin-bottom: 5px; .language-label { - color: $text-muted; + color: $light_text; font-weight: 700; @include font-size(12); margin-top: 20px; @@ -203,7 +203,7 @@ export default { } .name { - color: $theme; + color: $theme !important; } } @@ -239,4 +239,16 @@ export default { // display: none; // } // } + + @media (prefers-color-scheme: dark) { + + .language{ + .name { + color: $dark_mode_text_primary !important; + } + } + .language-label { + color: $dark_mode_text_secondary !important; + } +} diff --git a/resources/js/views/Admin/Languages/LanguageStrings.vue b/resources/js/views/Admin/Languages/LanguageStrings.vue index 45416e05..2815fcd2 100644 --- a/resources/js/views/Admin/Languages/LanguageStrings.vue +++ b/resources/js/views/Admin/Languages/LanguageStrings.vue @@ -1,6 +1,6 @@