Strata Polyglot archived
Works hand in hand with Strata to bring localization of dynamic Wordpress objects.
by Francois Faubert · github.com/francoisfaubert/strata-polyglot · website
★ 0stars
4.1kcomposer installs
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/francoisfaubert/strata-polyglot/archive/refs/heads/master.zipAlso on Packagist as francoisfaubert/strata-polyglot:
composer require francoisfaubert/strata-polyglotFrom the readme
Polyglot
Configuration
Declare your application locales under ~/config/strata.php. You can specify the url key as well as the locale code. It is important that the locale code follows ISO standards. It must have either two characters (en) or be the complete version containing the country information (enUS).
~~~ php
array(),
"custom-post-types" = array(),
"i18n" = array(
"textdomain" = "mywebsite",
"defaultlocalefallback" = true,
"locales" = array(
"enCA" = array("nativeLabel" = "English", "default" = true),
"frCA" = array("nativeLabel" = "Français", "url" = "francais"),
"pi" = array("nativeLabel" = "Pirate"),
)
)
);
return $strata;
?
~~~
Read the full README on GitHub →
Releases
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.