MohmmedAshraf / laravel-translations

Laravel Translations UI package provides a user-friendly interface for managing translations in your Laravel application. It simplifies tasks such as adding, editing, deleting, and exporting translations. The package also includes a handy search feature and the ability to invite collaborators for easy translation management
MIT License
648 stars 91 forks source link

Add Feature Localization, Add Facade & Rebuild Assets #114

Closed adereksisusanto closed 6 months ago

adereksisusanto commented 6 months ago

Add Feature Localization

1. language default (en)

Language EN

2. language (id)

Language ID

3. language (ar)

Language AR

4. language (other: coming soon...)

Add Facade

use Outhebox\TranslationsUI\Facades\TranslationsUI;

TranslationsUI::getTranslations(string $locale);
TranslationsUI::getLocales();
TranslationsUI::download();
TranslationsUI::export(bool $download = false);
TranslationsUI::getDomain();
TranslationsUI::setDomain(string $domain);
TranslationsUI::getPath();
TranslationsUI::setPath(string $path);
TranslationsUI::getLocale();
TranslationsUI::setLocale(string $locale);
TranslationsUI::getFallback();
TranslationsUI::getMiddleware();
TranslationsUI::setMiddleware(array $middleware);
TranslationsUI::getConnection();
TranslationsUI::setConnection(string $connection);
TranslationsUI::getIncludeFileInKey();
TranslationsUI::setIncludeFileInKey(bool $bool);
TranslationsUI::getSourceLanguage();
TranslationsUI::setSourceLanguage(string $locale);
TranslationsUI::getExcludeFiles();
TranslationsUI::setExcludeFiles(array $files);

Rebuild Assets