blob: b08418d1366552d992717017c0a5c727c5c84c05 [file] [log] [blame]
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +02001<?php
2
3namespace Illuminate\Contracts\Translation;
4
5interface Loader
6{
7 /**
8 * Load the messages for the given locale.
9 *
10 * @param string $locale
11 * @param string $group
12 * @param string|null $namespace
13 * @return array
14 */
15 public function load($locale, $group, $namespace = null);
16
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 /**
27 * Add a new JSON path to the loader.
28 *
29 * @param string $path
30 * @return void
31 */
32 public function addJsonPath($path);
33
34 /**
35 * Get an array of all the registered namespaces.
36 *
37 * @return array
38 */
39 public function namespaces();
40}