Loader.php
39 lines
| 1 | <?php |
| 2 | |
| 3 | namespace IAWPSCOPED\Illuminate\Contracts\Translation; |
| 4 | |
| 5 | /** @internal */ |
| 6 | interface Loader |
| 7 | { |
| 8 | /** |
| 9 | * Load the messages for the given locale. |
| 10 | * |
| 11 | * @param string $locale |
| 12 | * @param string $group |
| 13 | * @param string|null $namespace |
| 14 | * @return array |
| 15 | */ |
| 16 | public function load($locale, $group, $namespace = null); |
| 17 | /** |
| 18 | * Add a new namespace to the loader. |
| 19 | * |
| 20 | * @param string $namespace |
| 21 | * @param string $hint |
| 22 | * @return void |
| 23 | */ |
| 24 | public function addNamespace($namespace, $hint); |
| 25 | /** |
| 26 | * Add a new JSON path to the loader. |
| 27 | * |
| 28 | * @param string $path |
| 29 | * @return void |
| 30 | */ |
| 31 | public function addJsonPath($path); |
| 32 | /** |
| 33 | * Get an array of all the registered namespaces. |
| 34 | * |
| 35 | * @return array |
| 36 | */ |
| 37 | public function namespaces(); |
| 38 | } |
| 39 |