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

[5.5] allow loading JSON translations for packages #20599

Merged
merged 3 commits into from
Aug 16, 2017
Merged

[5.5] allow loading JSON translations for packages #20599

merged 3 commits into from
Aug 16, 2017

Conversation

themsaid
Copy link
Member

In a package service provider the developer would use:

$this->loadJSONTranslationsFrom(__DIR__.'/translations');

Translations in the main json file will override package translation, otherwise package maintainers and users can use translation lines that exist in the package translation file __('Re-run job').

@taylorotwell
Copy link
Member

use addJsonPath instead of capitalizing JSON in method names.

@themsaid
Copy link
Member Author

@taylorotwell done

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

Successfully merging this pull request may close these issues.

None yet

2 participants