Skip to content

Commit

Permalink
changed translation domain name, added translation domain to config
Browse files Browse the repository at this point in the history
  • Loading branch information
Corepex committed Mar 12, 2024
1 parent 083bd06 commit 8fd3c5a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
7 changes: 6 additions & 1 deletion config/pimcore/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,9 @@ api_platform:
api_keys:
access_token:
name: 'Authorization'
type: 'header'
type: 'header'

pimcore:
translations:
domains:
- studio_ui
8 changes: 6 additions & 2 deletions src/Installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,22 @@
use Doctrine\DBAL\Schema\Comparator;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\DBAL\Schema\SchemaException;
use Pimcore\Extension\Bundle\Installer\Exception\InstallationException;
use Pimcore\Extension\Bundle\Installer\SettingsStoreAwareInstaller;
use Symfony\Component\HttpKernel\Bundle\BundleInterface;

/**
* @internal
*/
final class Installer extends SettingsStoreAwareInstaller
{
public const TRANSLATION_DOMAIN = 'studioUi';
public const TRANSLATION_DOMAIN = 'studio_ui';

public function __construct(
private readonly Connection $db
private readonly Connection $db,
BundleInterface $bundle,
){
parent::__construct($bundle);
}

/**
Expand Down

0 comments on commit 8fd3c5a

Please sign in to comment.