Easy Multi Language GitLab
A full Javascript multi language WordPress plugin.
by Raphaël Meier · gitlab.com/raphael.meier/easy-multi-language
★ 0stars
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://gitlab.com/raphael.meier/easy-multi-language/-/archive/master/easy-multi-language-master.zipIt is a Multi Language WordPress plugin. Do not use it, it is just a POC.
The point is to do the translation entirely in Javascript once the page is loaded. There is some major issues.
The user can have two languages for now: english and french.
How to use it
Every where you want a translation write the key inside the translation tag: {{KEY}}.
The json files are like this
{
"FIRST_KEY": "KEY1FR",
"SECOND_KEY": "KEY2FR",
"THIRD_KEY": "KEY3FR"
}
TODO
- When dictionary is empty (or not find), switch back on the default dictionary
- Verify the impact on the SEO.
- Maybe switch to a PHP translator.