langswitch
This commit is contained in:
parent
ad42e73126
commit
8d91d0e7a8
14 changed files with 792 additions and 76 deletions
13
app/Helpers/utils.php
Normal file
13
app/Helpers/utils.php
Normal file
|
@ -0,0 +1,13 @@
|
|||
<?php
|
||||
/**
|
||||
* Get an associative array with localeCodes as keys and translated URLs of current page as value
|
||||
*/
|
||||
function getLocalizedURLArray()
|
||||
{
|
||||
$localesOrdered = LaravelLocalization::getLocalesOrder();
|
||||
$localizedURLs = array();
|
||||
foreach ($localesOrdered as $localeCode => $properties) {
|
||||
$localizedURLs[$localeCode] = LaravelLocalization::getLocalizedURL($localeCode, null, [], true);
|
||||
}
|
||||
return $localizedURLs;
|
||||
}
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue