[go: up one dir, main page]

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

Not issue possible config settings #23

Open
jouniikaheimo opened this issue Mar 10, 2021 · 1 comment
Open

Not issue possible config settings #23

jouniikaheimo opened this issue Mar 10, 2021 · 1 comment

Comments

@jouniikaheimo
Copy link

Hi.

How systems can scan resources/lang/vendor folder too to translated ?

@MichaelHoste
Copy link
Member

I'm sorry but we don't support overriding package language files yet.

I'd be interested to know if you use that feature a lot. For what vendor?

It could be possible to implement it by loading several paths here: https://github.com/translation/laravel/blob/master/src/TranslationExtractor.php#L43-L71

And re-creating the translated files in the target paths here: https://github.com/translation/laravel/blob/master/src/TranslationSaver.php#L41-L55

The hard part is that we will need to create another internal key structure to be able to know in which vendor path a file should be written (like the existing subfolder/key1.key2... that is supported by Laravel for subdirectories in the locale).

vendor|subfolder/key1.key2... could be an idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants