@@ -26,28 +26,29 @@ Easily manage all your Laravel translation strings with powerful features:
2626# Table of Contents
2727
28281 . [ Installation] ( #installation )
29- 2 . [ Configuring the Driver] ( #configuring-the-driver )
30- 3 . [ Sorting and Formatting] ( #sorting-and-formatting )
29+ 1 . [ Configuring the Driver] ( #configuring-the-driver )
30+ 1 . [ Configuring the Locales] ( #configuring-the-locales )
31+ 1 . [ Sorting and Formatting] ( #sorting-and-formatting )
3132 - [ CLI Commands] ( #cli-commands )
3233 - [ Using Code] ( #using-code )
33- 4 . [ Automatic Translation] ( #automatic-translation )
34+ 1 . [ Automatic Translation] ( #automatic-translation )
3435 - [ Configuring OpenAI] ( #configuring-openai )
3536 - [ Configuring DeepL] ( #configuring-deepl )
3637 - [ CLI Translation] ( #cli-translation )
3738 - [ Programmatic Translation] ( #programmatic-translation )
38- 5 . [ Proofreading Translations] ( #proofreading-translations )
39+ 1 . [ Proofreading Translations] ( #proofreading-translations )
3940 - [ CLI Proofreading] ( #cli-proofreading )
4041 - [ Programmatic Proofreading] ( #programmatic-proofreading )
41- 6 . [ Identifying Untranslated Translations] ( #identifying-untranslated-translations )
42+ 1 . [ Identifying Untranslated Translations] ( #identifying-untranslated-translations )
4243 - [ CLI Usage] ( #cli-usage )
4344 - [ Programmatic Usage] ( #programmatic-usage )
44- 7 . [ Detecting Missing Translations] ( #detecting-missing-translations )
45+ 1 . [ Detecting Missing Translations] ( #detecting-missing-translations )
4546 - [ CLI Usage] ( #cli-usage-1 )
4647 - [ Programmatic Usage] ( #programmatic-usage-1 )
47- 8 . [ Detecting Dead Translations] ( #detecting-dead-translations )
48+ 1 . [ Detecting Dead Translations] ( #detecting-dead-translations )
4849 - [ CLI Usage] ( #cli-usage-2 )
4950 - [ Programmatic Usage] ( #programmatic-usage-2 )
50- 9 . [ Code Scanner Configuration] ( #code-scanner-configuration )
51+ 1 . [ Code Scanner Configuration] ( #code-scanner-configuration )
5152 - [ Included Paths] ( #included-paths )
5253 - [ Excluded Paths] ( #excluded-paths )
5354 - [ Ignored Translation Keys] ( #ignored-translation-keys )
@@ -94,6 +95,22 @@ return [
9495];
9596```
9697
98+ ## Configuring the Locales
99+
100+ By default, this package will attempt to determine the locales defined in your application by scanning your ` lang ` directory.
101+
102+ To set the locales manually, use the following configuration:
103+
104+ ```` php
105+ return [
106+ // ...
107+
108+ 'locales' => ['en', 'fr', 'es'],
109+
110+ // ...
111+ ];
112+
113+
97114---
98115
99116## Sorting and Formatting
@@ -104,7 +121,7 @@ Sort translations with the default driver:
104121
105122```bash
106123php artisan translator:sort
107- ```
124+ ````
108125
109126Specify a driver for sorting:
110127
0 commit comments