Skip to content

Commit

Permalink
[5.x] Fix issue with localization files named like handles (#11482)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianPraiss authored Feb 21, 2025
1 parent afd32e8 commit b9b0fe8
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Auth/CorePermissions.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
use Statamic\Facades\Taxonomy;
use Statamic\Facades\Utility;

use function Statamic\trans as __;

class CorePermissions
{
public function boot()
Expand Down
2 changes: 2 additions & 0 deletions src/Auth/Permission.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

use Statamic\Support\Traits\FluentlyGetsAndSets;

use function Statamic\trans as __;

class Permission
{
use FluentlyGetsAndSets;
Expand Down
2 changes: 2 additions & 0 deletions src/Fields/Blueprint.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
use Statamic\Support\Arr;
use Statamic\Support\Str;

use function Statamic\trans as __;

class Blueprint implements Arrayable, ArrayAccess, Augmentable, QueryableValue
{
use ExistsAsFile, HasAugmentedData;
Expand Down
2 changes: 2 additions & 0 deletions src/Fields/Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
use Statamic\Support\Arr;
use Statamic\Support\Str;

use function Statamic\trans as __;

class Field implements Arrayable
{
protected $handle;
Expand Down
2 changes: 2 additions & 0 deletions src/Fields/Fieldtype.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
use Statamic\Statamic;
use Statamic\Support\Str;

use function Statamic\trans as __;

abstract class Fieldtype implements Arrayable
{
use HasHandle, RegistersItself {
Expand Down
2 changes: 2 additions & 0 deletions src/Fields/Tab.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
use Statamic\Support\Arr;
use Statamic\Support\Str;

use function Statamic\trans as __;

class Tab
{
protected $handle;
Expand Down

0 comments on commit b9b0fe8

Please sign in to comment.