Skip to content

Commit 8c5ded3

Browse files
committed
feat: add localize option
1 parent b3fd6d2 commit 8c5ded3

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

.github/workflows/pint.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,8 @@ jobs:
1010
with:
1111
preset: laravel
1212
verboseMode: true
13-
testMode: true
14-
# configPath: "vendor/my-company/coding-style/pint.json"
13+
- name: Commit changes
14+
uses: stefanzweifel/git-auto-commit-action@v4
15+
with:
16+
commit_message: 'style: formatting'
17+
skip_fetch: true

src/NotFound/Layout/Elements/AbstractLayout.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,21 @@ public function type(): string
1919
return $this->type;
2020
}
2121

22+
/**
23+
* setLocalize
24+
*
25+
* This option will mark the element as translatable.
26+
* Currently this will not affect the frontend at all.
27+
*
28+
* @return self
29+
*/
30+
public function setLocalize(): self
31+
{
32+
$this->properties->localize = true;
33+
34+
return $this;
35+
}
36+
2237
public function build(): object
2338
{
2439
return (object) [

0 commit comments

Comments
 (0)