Skip to content

Commit

Permalink
feat: add localize option
Browse files Browse the repository at this point in the history
  • Loading branch information
64knl committed Apr 6, 2023
1 parent b3fd6d2 commit 8c5ded3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/pint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@ jobs:
with:
preset: laravel
verboseMode: true
testMode: true
# configPath: "vendor/my-company/coding-style/pint.json"
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: 'style: formatting'
skip_fetch: true
15 changes: 15 additions & 0 deletions src/NotFound/Layout/Elements/AbstractLayout.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,21 @@ public function type(): string
return $this->type;
}

/**
* setLocalize
*
* This option will mark the element as translatable.
* Currently this will not affect the frontend at all.
*
* @return self
*/
public function setLocalize(): self
{
$this->properties->localize = true;

return $this;
}

public function build(): object
{
return (object) [
Expand Down

0 comments on commit 8c5ded3

Please sign in to comment.