PHP code example of francoisfaubert / strata-polyglot

1. Go to this page and download the library: Download francoisfaubert/strata-polyglot library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

francoisfaubert / strata-polyglot example snippets


$strata = array(
    "routes" => array(),
    "custom-post-types" => array(),

    "i18n" => array(
        "textdomain" => "my_website",
        "default_locale_fallback" => true,
        "locales" => array(
            "en_CA" => array("nativeLabel" => "English", "default" => true),
            "fr_CA" => array("nativeLabel" => "Français", "url" => "francais"),
            "pi" => array("nativeLabel" => "Pirate"),
         )
    )
);

return $strata;