Skip to content

Commit 6ab4722

Browse files
[source]: Added Laravel Nova Dusk Suite
1 parent 4ac8e14 commit 6ab4722

File tree

6 files changed

+103
-0
lines changed

6 files changed

+103
-0
lines changed

.github/workflows/download.yml

+16
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,22 @@ jobs:
139139
--project=nova/log-viewer \
140140
--ver=${{ matrix.version }}
141141
142+
nova_dusk_suite:
143+
uses: Laravel-Lang/.github/.github/workflows/download.yml@main
144+
strategy:
145+
fail-fast: true
146+
matrix:
147+
version: [ "master" ]
148+
with:
149+
project: Laravel Nova Dusk Suite ${{ matrix.version }}
150+
paths: source/nova/dusk-suite/${{ matrix.version }}/*
151+
commands: |
152+
vendor/bin/lang download \
153+
--url=https://github.com/laravel/nova-dusk-suite/archive/refs/heads/${{ matrix.version }}.zip \
154+
--project=nova/dusk-suite \
155+
--ver=${{ matrix.version }} \
156+
--copy=lang
157+
142158
spark_aurelius:
143159
uses: Laravel-Lang/.github/.github/workflows/download.yml@main
144160
strategy:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"30 Days": "30 Days",
3+
"365 Days": "365 Days",
4+
"60 Days": "60 Days",
5+
"90 Days": "90 Days",
6+
"A new verification link has been sent to the email address you provided during registration.": "A new verification link has been sent to the email address you provided during registration.",
7+
"Already registered?": "Already registered?",
8+
"Attendance": "Attendance",
9+
"Choose a project": "Choose a project",
10+
"Close": "Close",
11+
"Confirm": "Confirm",
12+
"Confirm Password": "Confirm Password",
13+
"Dashboard": "Dashboard",
14+
"Do you really want to leave? You have unsaved changes.": "Do you really want to leave? You have unsaved changes.",
15+
"Email": "Email",
16+
"Email Password Reset Link": "Email Password Reset Link",
17+
"Employee": "Employee",
18+
"Forgot your password?": "Forgot your password?",
19+
"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.": "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.",
20+
"ID": "ID",
21+
"Log in": "Log in",
22+
"Log out": "Log out",
23+
"Month To Date": "Month To Date",
24+
"Name": "Name",
25+
"Nova": "Nova",
26+
"Password": "Password",
27+
"Person": "Person",
28+
"Quarter To Date": "Quarter To Date",
29+
"Register": "Register",
30+
"Remember me": "Remember me",
31+
"Resend Verification Email": "Resend Verification Email",
32+
"Reset Password": "Reset Password",
33+
"SKU": "SKU",
34+
"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.": "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.",
35+
"This is a secure area of the application. Please confirm your password before continuing.": "This is a secure area of the application. Please confirm your password before continuing.",
36+
"Today": "Today",
37+
"Whoops! Something went wrong.": "Whoops! Something went wrong.",
38+
"Year To Date": "Year To Date"
39+
}

source/nova/dusk-suite/master/en.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"The :attribute must contain at least one letter.": "The :attribute must contain at least one letter.",
3+
"The :attribute must contain at least one number.": "The :attribute must contain at least one number.",
4+
"The :attribute must contain at least one symbol.": "The :attribute must contain at least one symbol.",
5+
"The :attribute must contain at least one uppercase and one lowercase letter.": "The :attribute must contain at least one uppercase and one lowercase letter.",
6+
"The given :attribute has appeared in a data leak. Please choose a different :attribute.": "The given :attribute has appeared in a data leak. Please choose a different :attribute."
7+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
3+
return [
4+
5+
/*
6+
|--------------------------------------------------------------------------
7+
| Validation Language Lines
8+
|--------------------------------------------------------------------------
9+
|
10+
| The following language lines contain the default error messages used by
11+
| the validator class. Some of these rules have multiple versions such
12+
| as the size rules. Feel free to tweak each of these messages here.
13+
|
14+
*/
15+
16+
'attached' => 'This :attribute is already attached.',
17+
'relatable' => 'This :attribute may not be associated with this resource.',
18+
19+
];

src/Plugin.php

+2
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ class Plugin extends Provider
4141
Plugins\Nova\V3::class,
4242
Plugins\Nova\V4::class,
4343

44+
Plugins\Nova\DuskSuite\Main::class,
45+
4446
Plugins\Spark\Paddle::class,
4547
Plugins\Spark\Stripe::class,
4648

src/Plugins/Nova/DuskSuite/Main.php

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace LaravelLang\Lang\Plugins\Nova\DuskSuite;
6+
7+
use LaravelLang\Publisher\Plugins\Plugin;
8+
9+
class Main extends Plugin
10+
{
11+
protected ?string $vendor = 'laravel/nova-dusk-suite';
12+
13+
public function files(): array
14+
{
15+
return [
16+
'nova/dusk-suite/master/dusk-suite.json' => '{locale}.json',
17+
'nova/dusk-suite/master/en.json' => '{locale}.json',
18+
];
19+
}
20+
}

0 commit comments

Comments
 (0)