Skip to content

Commit

Permalink
Update script app/packages.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Helldar committed Jun 1, 2021
1 parent cd4f43a commit 7e54ef7
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/main/Processors/Packages.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ public function run(): void

$content = $this->map($items);

$this->sort($content);
$this->sort($content, false);

$this->store($path, $content);
}
}

protected function map(array $items): array
{
return Arr::renameKeys($items, static fn ($key, $value) => $value);
return Arr::values($items);
}

protected function files(string $package): array
Expand Down
6 changes: 4 additions & 2 deletions app/main/Processors/Processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,11 @@ protected function filter(array $first, array $second): array
return Arr::only($first, $keys);
}

protected function sort(array &$array): void
protected function sort(array &$array, bool $key = true): void
{
$array = Arr::ksort($array);
$array = $key
? Arr::ksort($array)
: Arr::sort($array);
}

protected function load(string $path): array
Expand Down
17 changes: 16 additions & 1 deletion source/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,37 @@
"Go Home",
"Go to page :page",
"Hello!",
"If you did not create an account, no further action is required.",
"If you did not request a password reset, no further action is required.",
"If you’re having trouble clicking the \":actionText\" button, copy and paste the URL below\ninto your web browser:",
"Login",
"Logout",
"Not Found",
"of",
"Oh no",
"Page Expired",
"Pagination Navigation",
"Please click the button below to verify your email address.",
"Regards",
"Register",
"Reset Password Notification",
"Reset Password",
"results",
"Server Error",
"Service Unavailable",
"Showing",
"The :attribute must contain at least one letter.",
"The :attribute must contain at least one number.",
"The :attribute must contain at least one symbol.",
"The :attribute must contain at least one uppercase and one lowercase letter.",
"The given :attribute has appeared in a data leak. Please choose a different :attribute.",
"This action is unauthorized.",
"This password reset link will expire in :count minutes.",
"to",
"Toggle navigation",
"Too Many Requests",
"Unauthorized",
"Whoops!"
"Verify Email Address",
"Whoops!",
"You are receiving this email because we received a password reset request for your account."
]
22 changes: 22 additions & 0 deletions source/packages/breeze.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[
"A new verification link has been sent to the email address you provided during registration.",
"Already registered?",
"Confirm",
"Confirm Password",
"Dashboard",
"Email",
"Email Password Reset Link",
"Forgot your password?",
"Forgot your password? No problem. Just let us know your email address and we will email you a password reset link that will allow you to choose a new one.",
"Log in",
"Log Out",
"Name",
"Password",
"Register",
"Remember me",
"Resend Verification Email",
"Reset Password",
"Thanks for signing up! Before getting started, could you verify your email address by clicking on the link we just emailed to you? If you didn't receive the email, we will gladly send you another.",
"This is a secure area of the application. Please confirm your password before continuing.",
"Whoops! Something went wrong."
]

0 comments on commit 7e54ef7

Please sign in to comment.