What I don't understand is why the user should choose the category, could be several categories in the same generated file (and the generator should know wich category choose).
Example in the same file:

```php
// let's say category app (default)
<?= "<?= " ?>Html::a(<?= $generator->generateString('Update') ?>, ['update', <?= $urlParams ?>], ['class' => 'btn btn-primary']) ?>
``` 

```php
// now, category is different, need to pass as parameter
...
'data' => [
    'confirm' => <?= $generator->generateString('Are you sure you want to delete this item?', [], 'yii') ?>,
    'method' => 'post',
],
...
```