You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/Localizer.php
+48-16
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,54 @@ class Localizer
40
40
protectedarray$translators = [];
41
41
42
42
/**
43
-
* Retrieves the lost of loaded translators.
43
+
* Retrieves the root path.
44
+
*/
45
+
publicfunctiongetPath(): string
46
+
{
47
+
return$this->path;
48
+
}
49
+
50
+
/**
51
+
* Retrieves the current language code.
52
+
*/
53
+
publicfunctiongetCode(): string
54
+
{
55
+
return$this->code;
56
+
}
57
+
58
+
/**
59
+
* Changes the localization code.
60
+
* @param string $code New code.
61
+
* @param bool $refresh Optional. After changing the code, should it reload the loaded translators or remove all of them from the loaded state? Default false.
@@ -137,21 +184,6 @@ public function unload(string $translator = self::DEFAULT_TRANSLATOR): bool
137
184
returnfalse;
138
185
}
139
186
140
-
/**
141
-
* Changes the localization code.
142
-
* @param string $code New code.
143
-
* @param bool $refresh Optional. After changing the code, should it reload the loaded translators or remove all of them from the loaded state? Default false.
0 commit comments