Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for "Overriding Package Language Files" #28

Open
Lukasss93 opened this issue Sep 6, 2022 · 0 comments
Open

Add support for "Overriding Package Language Files" #28

Lukasss93 opened this issue Sep 6, 2022 · 0 comments

Comments

@Lukasss93
Copy link
Owner

https://laravel.com/docs/9.x/localization#overriding-package-language-files

Which path to take?

A) Create another localization.csv for every package inside /lang/vendor/. Example:

  • /lang/vendor/packageA/localization.csv
  • /lang/vendor/packageB/localization.csv

B) Use the default localization.csv file using an alias prefix in the larex.php config

// <project-root>/config/larex.php

'vendor' => [
    'enabled' => false,
    'prefix' => 'vendor',
    'alias' => [
        'packageA' => 'a',
        'packageB' => 'b',
    ]
]
group key en it
vendor.a.app car Car Auto
vendor.b.common hello Hello Ciao
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

1 participant