Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/solumdesignum/package-translator-loader
Laravel Package Translator Loader is translations loader that will help to translation your package fully Finally about time, I would say.
https://github.com/solumdesignum/package-translator-loader
development githunt laravel laravel-package laravel-package-translator-loader opensource opensourcedevelopment package package-translator-loader packages php solumdesignum
Last synced: 1 day ago
JSON representation
Laravel Package Translator Loader is translations loader that will help to translation your package fully Finally about time, I would say.
- Host: GitHub
- URL: https://github.com/solumdesignum/package-translator-loader
- Owner: SolumDeSignum
- License: mit
- Created: 2021-01-13T23:00:14.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-09-13T15:58:27.000Z (2 months ago)
- Last Synced: 2024-09-14T06:52:44.281Z (2 months ago)
- Topics: development, githunt, laravel, laravel-package, laravel-package-translator-loader, opensource, opensourcedevelopment, package, package-translator-loader, packages, php, solumdesignum
- Language: PHP
- Homepage: https://solum-designum.eu/
- Size: 28.3 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
[![StyleCI](https://github.styleci.io/repos/329452333/shield?branch=master)](https://github.styleci.io/repos/329452333)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/solumdesignum/package-translator-loader/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/solumdesignum/package-translator-loader/?branch=master)
[![Total Downloads](https://poser.pugx.org/solumdesignum/package-translator-loader/downloads)](https://packagist.org/packages/solumdesignum/package-translator-loader)
[![Latest Stable Version](https://poser.pugx.org/solumdesignum/package-translator-loader/v/stable)](https://packagist.org/packages/solumdesignum/package-translator-loader)
[![Latest Unstable Version](https://poser.pugx.org/solumdesignum/package-translator-loader/v/unstable)](https://packagist.org/packages/solumdesignum/package-translator-loader)
[![MIT Licensed](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)## Introduction
Laravel Package Translator Loader is translations loader that will help to
translation your package fully (Finally about time, I would say!!!).## Installation
To get started, install Package Translator Loader using the Composer package manager:
```shell
composer require solumdesignum/package-translator-loader
```### Features
The configuration file contains configurations.
```php
1
];
````# Usage
```php
packageTranslatorLoader = new PackageTranslatorLoader(
$this->app,
[
'translator' => 'theme-manager.translator',
'nameSpace' => 'solumdesignum/theme-manager',
'packageRootPath' => __DIR__ . '/..',
'loadLangPath' => '/../resources/lang',
'loaderLangPath' => '/resources/lang',
]
);
}
}
````# Usage: Accessing Translations
```php
packageTranslatorLoader->trans()
->get('theme-manager.invalid_argument_exception');
/**
* Helper: can be used in Blade, Controllers, Models, Services and etc...
* Inside first key must pass name of translator
* Inside second key must pass package name with translation key (package.translation-key)
*/
translator(
'theme-manager.translator',
'theme-manager.invalid_argument_exception'
);
````## Contributing
Thank you for considering contributing to the Laravel Package Translator Loader.
You can read the contribution guidelines [here](contributing.md)## Security
If you discover any security-related issues, please email to [Solum DeSignum](mailto:[email protected]).## Author
- [Oskars Germovs](https://github.com/Faks)## About
[Solum DeSignum](https://solum-designum.eu) is a web design agency based in Latvia, Riga.## License
Laravel Package Translator Loader is open-sourced software licensed under the [MIT license](license.md)