You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**adhocore/cli** also supports internationalisation. This is particularly useful if you are not very comfortable with English or if you are creating a framework or CLI application that could be used by people from a variety of backgrounds.
834
+
835
+
By default, all the texts generated by our system are in English. But you can easily modify them by defining your translations as follows
836
+
837
+
```php
838
+
\Ahc\Application::addLocale('fr', [
839
+
'Only last argument can be variadic' => 'Seul le dernier argument peut être variadique',
840
+
], true);
841
+
```
842
+
843
+
You can also change the default English text to make the description more explicit if you wish.
844
+
845
+
```php
846
+
\Ahc\Application::addLocale('en', [
847
+
'Show help' => 'Shows helpful information about a command',
848
+
]);
849
+
```
850
+
851
+
vous pouvez trouver toutes les clés de traduction supportées par le paquet dans cette gist : https://gist.github.com/dimtrovich/1597c16d5c74334e68eef15a4e7ba3fd
852
+
853
+
## Autocompletion
832
854
833
855
Any console applications that are built on top of **adhocore/cli** can entertain autocomplete of commands and options in zsh shell with oh-my-zsh.
0 commit comments