--- title: 'Configuration Guide' description: 'Configure lang_path, output_lang directory, ignored translation groups, and locale export settings for Laravel Lang Sync Inertia.' head: - - meta - name: robots content: 'index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1' - - meta - name: googlebot content: 'index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1' - - meta - name: bingbot content: 'index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1' --- # Config After publishing, adjust `config/inertia-lang.php` if required: ## Default config ```php return [ /* |-------------------------------------------------------------------------- | Language Files Base Path |-------------------------------------------------------------------------- | The directory where your PHP language files are stored. */ 'lang_path' => base_path('lang'), /* |-------------------------------------------------------------------------- | Output Path |-------------------------------------------------------------------------- | Where generated JSON files will be written by the Artisan export command. */ 'output_lang' => resource_path('js/lang'), ]; ``` ## `lang_path` Use `lang_path` to tell the package where your Laravel translation files live. Default: ```php 'lang_path' => base_path('lang'), ``` This is the directory used when `syncLangFiles()` reads translation files such as: ```text lang/en/auth.php lang/hi/auth.php lang/en/admin/auth.php lang/hi/admin/auth.php ``` Nested files can be loaded with dot notation: ```php syncLangFiles('admin.auth'); ``` ## `output_lang` Use `output_lang` to define where exported JSON translation files should be generated. Default: ```php 'output_lang' => resource_path('js/lang'), ``` This path is used by the export command when generating frontend-ready JSON files. ## Example customization ```php return [ 'lang_path' => resource_path('lang'), 'output_lang' => resource_path('js/translations'), ]; ``` If you need an option that is not listed here, open an issue as described in [Contributing](./contributing.html).