Skip to content

Commit

Permalink
L10 support
Browse files Browse the repository at this point in the history
  • Loading branch information
luisdalmolin committed Oct 29, 2024
1 parent 9a2d2a7 commit 04455eb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Commands/GenerateEnumsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,13 @@ protected function enums(): Collection

protected function builder(): EnumBuilder
{
/** @var string */
$generateAs = config('paragon.generate-as');

$builder = match (true) {
$this->option('javascript') => EnumJsBuilder::class,
$this->option('typescript') => EnumTsBuilder::class,
default => GenerateAs::from(config()->string('paragon.generate-as'))->builder()
default => GenerateAs::from($generateAs)->builder()
};

return app($builder);
Expand Down

0 comments on commit 04455eb

Please sign in to comment.