Skip to content

Commit

Permalink
Fix translations (#258)
Browse files Browse the repository at this point in the history
* Update store translations

* Fix translations on setting components and views

* fix code formatting

---------

Co-authored-by: mckenziearts <[email protected]>
  • Loading branch information
mckenziearts and mckenziearts authored Apr 30, 2024
1 parent 92bafff commit 051abef
Show file tree
Hide file tree
Showing 187 changed files with 1,089 additions and 1,390 deletions.
14 changes: 6 additions & 8 deletions packages/admin/config/features.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,11 @@
|
*/

'brand' => FeatureState::ENABLED,
'category' => FeatureState::ENABLED,
'customer' => FeatureState::ENABLED,
'collection' => FeatureState::ENABLED,
'discount' => FeatureState::ENABLED,
'order' => FeatureState::ENABLED,
'product' => FeatureState::ENABLED,
'review' => FeatureState::ENABLED,
'attribute' => FeatureState::Enabled,
'brand' => FeatureState::Enabled,
'category' => FeatureState::Enabled,
'collection' => FeatureState::Enabled,
'discount' => FeatureState::Enabled,
'review' => FeatureState::Enabled,

];
12 changes: 0 additions & 12 deletions packages/admin/public/shopper.css
Original file line number Diff line number Diff line change
Expand Up @@ -4342,10 +4342,6 @@ html {
width: 100vw;
}

.w-1\/4 {
width: 25%;
}

.min-w-0 {
min-width: 0px;
}
Expand Down Expand Up @@ -5152,10 +5148,6 @@ html {
overflow-y: hidden;
}

.overflow-x-scroll {
overflow-x: scroll;
}

.overflow-y-scroll {
overflow-y: scroll;
}
Expand Down Expand Up @@ -11262,10 +11254,6 @@ html.dark .shiki span {
padding: 1.25rem;
}

.lg\:p-6 {
padding: 1.5rem;
}

.lg\:px-0 {
padding-left: 0px;
padding-right: 0px;
Expand Down
2 changes: 1 addition & 1 deletion packages/admin/resources/js/components/panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const SlideOverPanel = () => {
},
focusables() {
let selector =
"a, button, input:not([type='hidden'], textarea, select, details, [tabindex]:not([tabindex='-1'])"
"a, button, input:not([type='hidden']), textarea, select, details, [tabindex]:not([tabindex='-1'])"

return [...this.$el.querySelectorAll(selector)].filter((el) => !el.hasAttribute('disabled'))
},
Expand Down
39 changes: 0 additions & 39 deletions packages/admin/resources/lang/en/components.php

This file was deleted.

22 changes: 7 additions & 15 deletions packages/admin/resources/lang/en/forms.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,6 @@
'role' => 'Role',
'access' => 'Access',
'content' => 'Content',
'sender_name' => 'Sender name',
'sender_email' => 'Sender email',
'username' => 'Username',
'mail_method' => 'Mail method',
'mail_host' => 'Mail host',
'mail_port' => 'Mail port',
'encryption_protocol' => 'Encryption protocol',
'markdown' => 'Markdown',
'force' => 'Force',
'template' => 'Template',
'ga_tracking_id' => 'Google Analytics Tracking ID',
Expand All @@ -136,6 +128,7 @@
'select' => 'Select',
'select_inventory' => 'Select inventory',
'choose_currency' => 'Choose currency',
'select_currencies' => 'Choose currencies',
'select_country' => 'Choose a Country',
'select_countries' => 'Choose countries',
'search_by' => 'Search by :label',
Expand All @@ -153,13 +146,10 @@
'clear' => 'Clear',
'close' => 'Close',
'delete' => 'Delete',
'deleted' => 'Deleted',
'disabled' => 'Disabled',
'disable' => 'Disable',
'edit' => 'Edit',
'view' => 'View',
'enable' => 'Enable',
'enabled' => 'Enabled',
'export' => 'Export',
'nevermind' => 'Nevermind',
'update' => 'Update',
Expand All @@ -168,27 +158,29 @@
'remove' => 'Remove',
'remove_all' => 'Remove All',
'enabled_two_factor' => 'Enable Two Factor',
'regenerate' => 'Regenerate Recovery Codes',
'regenerate_code' => 'Regenerate Recovery Codes',
'show_recovery_code' => 'Show Recovery Codes',
'archive' => 'Archive',
'archived' => 'Archived',
'more_actions' => 'More actions',
'mark_paid' => 'Mark as paid',
'mark_complete' => 'Mark complete',
'cancel_order' => 'Cancel Order',
'send' => 'Send',
'logout_session' => 'Logout other browser sessions',
'approve' => 'Approve',
'approved' => 'Approved',
'disapprove' => 'Disapprove',
'disapproved' => 'Disapproved',
'create' => 'Create',
'upload' => 'Upload',
'verified' => 'Verified',
'apply' => 'Apply',
'next' => 'Next',
'back' => 'Back',
'theme_switcher' => 'Enable :label theme',

'add_label' => 'New :label',
'edit_label' => 'Edit :label',
'delete_label' => 'Delete :label',
'show_label' => 'View :label',
],

'error' => 'Your submission contains errors. Please try again',
Expand Down
19 changes: 4 additions & 15 deletions packages/admin/resources/lang/en/layout.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,22 @@
return [

'sidebar' => [
'dashboard' => 'Dashboard',
'orders' => 'Orders',
'brands' => 'Brands',
'categories' => 'Categories',
'collections' => 'Collections',
'customers' => 'Customers',
'reviews' => 'Reviews',
'discounts' => 'Discounts',
'products' => 'Products',
'catalog' => 'Catalog',
'shop' => 'Shop',
'sales' => 'Sales',
],

'back' => 'Back',
'view_site' => 'View Site',
'meta_title' => 'Shopper Administration',

'account_dropdown' => [
'sign_in' => 'Signed in with',
'add_product' => 'Add product',
'personal_account' => 'Personal Account',
'manage_users' => 'Manage Users',
'settings' => 'Settings',
'sign_out' => 'Sign out',
],

'back' => 'Back',
'view_site' => 'View Site',
'meta_title' => 'Shopper Administration',

'status' => [
'delete' => 'Delete',
'success' => 'Success',
Expand Down
1 change: 1 addition & 0 deletions packages/admin/resources/lang/en/modals.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
declare(strict_types=1);

return [

'permissions' => [
'new' => 'New permission',
'new_description' => 'Add a new permission and directly assign to this role',
Expand Down
22 changes: 10 additions & 12 deletions packages/admin/resources/lang/en/notifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,16 @@

return [

'actions' => [
'save' => ':item successfully save',
'create' => ':item successfully added',
'update' => ':item successfully updated',
'remove' => ':item successfully removed',
],

'attributes' => [
'remove' => 'The attribute has successfully removed',
'enable' => 'The attribute has successfully enabled',
'disable' => 'The attribute has successfully disabled',
],
'save' => ':item successfully save',
'create' => ':item successfully created',
'update' => ':item successfully updated',
'delete' => ':item successfully deleted',
'enabled' => ':item has successfully enabled',
'disabled' => ':item has successfully disabled',
'verified' => ':item has successfully verified',
'approved' => ':item has successfully approved',
'disapproved' => ':item has successfully disapproved',
'visibility' => ':item has successfully updated visibility',

'auth' => [
'password' => 'This password does not match our records.',
Expand Down
7 changes: 0 additions & 7 deletions packages/admin/resources/lang/en/pages/account.php

This file was deleted.

3 changes: 3 additions & 0 deletions packages/admin/resources/lang/en/pages/attributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
declare(strict_types=1);

return [

'menu' => 'Attributes',
'single' => 'attribute',
'title' => 'Manage Attributes',
'content' => 'Add custom attributes to your product to display for informations',
'add' => 'Add attribute',
Expand Down
3 changes: 2 additions & 1 deletion packages/admin/resources/lang/en/pages/brands.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@

return [

'menu' => 'Brands',
'single' => 'brand',
'title' => 'Organize your products into brands',
'content' => 'Create brands and organize your products to make it easier for users to find products.',

'empty_brand' => 'No brand',

];
3 changes: 2 additions & 1 deletion packages/admin/resources/lang/en/pages/categories.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@

return [

'menu' => 'Categories',
'single' => 'category',
'title' => 'Organize your products into categories',
'content' => 'Create and manage all your store categories to help your customers easily find products.',
'empty_selector' => '--- No category ---',
'empty_parent' => 'No parent category',
'parent' => 'in :parent',

Expand Down
2 changes: 2 additions & 0 deletions packages/admin/resources/lang/en/pages/collections.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

return [

'menu' => 'Collections',
'single' => 'collection',
'title' => 'Organize your products into various collections',
'content' => 'Create and manage all your collections to help your customers easily find groups or types of products.',
'automatic' => 'Automatic',
Expand Down
2 changes: 2 additions & 0 deletions packages/admin/resources/lang/en/pages/customers.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

return [

'menu' => 'Customers',
'single' => 'customer',
'title' => 'Manage customer orders & details',
'content' => 'This is where you can manage your customer information and view their purchase history.',

Expand Down
1 change: 1 addition & 0 deletions packages/admin/resources/lang/en/pages/dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

return [

'menu' => 'Dashboard',
'welcome_message' => 'Welcome to Shopper Dashboard',
'header' => 'Start with the basic for your online store',
'description' => 'To begin building your new store with Laravel Shopper, we recommend starting with these steps. The framework allows you to create
Expand Down
7 changes: 2 additions & 5 deletions packages/admin/resources/lang/en/pages/discounts.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,11 @@

return [

'menu' => 'Discounts',
'single' => 'discount',
'title' => 'Manage discounts and promotions',
'description' => 'Create & Manage discount and promotions codes that apply at checkout or customers orders.',

'actions' => [
'create' => 'Create discount',
'update' => 'Update code :code',
],

'empty_message' => 'No discount found...',
'search' => 'Search discount code',
'name_helptext' => 'Customers will enter this discount code at checkout.',
Expand Down
3 changes: 3 additions & 0 deletions packages/admin/resources/lang/en/pages/orders.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
declare(strict_types=1);

return [

'menu' => 'Orders',
'single' => 'order',
'title' => 'Manage customers orders',
'show_title' => 'Detail Order ~ :number',
'content' => 'When customers place orders, this is where all the processing will be done, the management of refunds and the tracking of their order.',
Expand Down
Loading

0 comments on commit 051abef

Please sign in to comment.