99
1010/**
1111 * @param mixed $page
12- * @param string $text
1312 * @param ?string $current_locale
1413 * @return string The translated text if found, else returns the same given $text
1514 */
@@ -44,7 +43,7 @@ function current_path_locale($page): string
4443
4544/**
4645 * @param mixed $page
47- * @param ?string $target_locale set to the default locale if null
46+ * @param ?string $target_locale set to the default locale if null
4847 * @return string Places $target_locale code in the current path
4948 */
5049function translate_path ($ page , ?string $ target_locale = null ): string
@@ -66,7 +65,7 @@ function translate_path($page, ?string $target_locale = null): string
6665
6766/**
6867 * @param mixed $page
69- * @param ?string $target_locale set to the default locale if null
68+ * @param ?string $target_locale set to the default locale if null
7069 * @return string Places $target_locale code in the current url
7170 */
7271function translate_url ($ page , ?string $ target_locale = null ): string
@@ -76,8 +75,8 @@ function translate_url($page, ?string $target_locale = null): string
7675
7776/**
7877 * @param mixed $page
79- * @param string $partial_path A path without the language prefix
80- * @param ?string $target_locale uses the default locale if null
78+ * @param string $partial_path A path without the language prefix
79+ * @param ?string $target_locale uses the default locale if null
8180 * @return string A path on the target locale
8281 */
8382function locale_path ($ page , string $ partial_path , ?string $ target_locale = null ): string
@@ -94,8 +93,8 @@ function locale_path($page, string $partial_path, ?string $target_locale = null)
9493
9594/**
9695 * @param mixed $page
97- * @param string $partial_path A path without the language prefix
98- * @param ?string $target_locale uses the default locale if null
96+ * @param string $partial_path A path without the language prefix
97+ * @param ?string $target_locale uses the default locale if null
9998 * @return string A URL on the target locale
10099 */
101100function locale_url ($ page , string $ partial_path , ?string $ target_locale = null ): string
0 commit comments