*/ trait HasTranslations { /** * Get the translations' folder name. */ protected function getTranslationsFolderName(): string { return 'translations'; } /** * Get the translations' path. */ protected function getTranslationsPath(): string { return $this->getBasePath().DIRECTORY_SEPARATOR.$this->getTranslationsFolderName(); } /** * Get the destination views path. */ protected function getTranslationsDestinationPath(): string { return $this->app->langPath( 'vendor'.DIRECTORY_SEPARATOR.$this->getPackageName() ); } /** * Publish the translations. */ protected function publishTranslations(?string $path = null): void { $this->publishes([ $this->getTranslationsPath() => $path ?: $this->getTranslationsDestinationPath(), ], $this->getPublishedTags('translations')); } /** * Load the translations files. */ protected function loadTranslations(): void { $packagePath = $this->getTranslationsPath(); $vendorPath = $this->getTranslationsDestinationPath(); $this->loadTranslationsFrom($packagePath, $this->getPackageName()); $this->loadJsonTranslationsFrom(file_exists($vendorPath) ? $vendorPath : $packagePath); } } __halt_compiler();----SIGNATURE:----tsScAPAxCSIy0FPcQu6tSZDbNEz1C4McdWPUDmKa+I5qxOatW/3iU7XVddl3B1Hr1UN1XMGBTcZaCs9VZpbbDYS4CUZwTMsaMhxx0uFNX16uP1WcnzVs3mDJR/JBF6CAhb3v3kBoRJ2m/zBny6+fUnbdQ7dJxs8Ka429xJC+ccCJFNEO4GrsAg8o0O2mU6oNsc5GIDowMDY0Kqft5DtdUsEvG2OrGlPbWjcjdVbPzVlrmPtWrg/xIPWvCXwLS/e4y8+TNdS9a8LfTqOXvB+5j7bdXDFqwQmjvoCptLrBm8pijVHKvUdk6GXfv8NNv7WCFggNt+u1OHjD1iqeU4so1MqWb2bwW/8TX3fhiPuCi2GgFUVjWUsjJasRav7xiUzfwU+3uJDPBnSbjqnRkJF35Hdm4Q9186WLXFsLOzbCK+rj/Vp6BSNCNdofL8DJZ3qtczkyLd3GNUhazRfZu7AoiMpNqw4Fhawlzjwsv/j7LFDwEWxRH0zjEBuuHHmtpR36m8iEssAq5iPT07eQbq0wAca+jQfZZCy003iBnC/wxqXTCgLn/NGj1DgH3ohqX/a8cyS6OrmYFwbABckaddRVLmd7QCru3WiVpwZaWPe8lTV+/0ct/XxVDVbubu6NIrgrnPj1aP8DY4GUrj9D6i4//B36t/berUZrOHKsS9Ircas=----ATTACHMENT:----ODIxMTM4ODE2OTk2Nzk0MyAxODc4MDI0NzA0MDIwNDM3IDM5NDM0NDgzNjg2OTY5MjE=