Added the ability to automatically translate simple text.

This commit is contained in:
2025-02-13 22:43:39 +05:00
parent 90aa909b7f
commit 41a7343338
20 changed files with 693 additions and 1 deletions

View File

@@ -0,0 +1,25 @@
<?php declare(strict_types=1);
namespace App\Dto\Service\ProjectTranslationServiceTextHash;
final class Codes
{
private array $codes = [];
public function add(string $code, string $value): self
{
$this->codes[$code] = $value;
return $this;
}
public function getCodes(): array
{
return $this->codes;
}
public function getCodeNames(): array
{
return \array_keys($this->codes);
}
}