What is Polylang?
Polylang allows you to create bilingual or multilingual WordPress sites. You create posts and pages as usual, set up categories and post tags, and define a language for each. Translating posts is optional, regardless of whether they are in the default language. — Polylang — WordPress plugin | WordPress.org
A. Installation and Setup
- Launch WordPress and log in to the WordPress dashboard.
- Launch WordPress from the Shifter dashboard.
- Click the [Dashboard] button to log in to the WordPress dashboard.
- Go to the Plugins menu and click [Add New].
- Search for “Polylang” and click the [Install Now] button.
- Activate it.
B. Configuring the Polylang Plugin
- Click [Settings].
- Complete the initial setup.
- Install Japanese as a secondary language.
- Media
- In this example, we’ll set English as the primary language and Japanese as the secondary language.
- You’re almost ready.
- Scroll to the bottom of the page and click [Return to the Dashboard].
- Verify the installed languages.
- Verify the URL changes. Go to the [Settings] menu. Click [URL modifications] under [Settings]. URL Modifications: Leave all settings at their defaults.
- Set up the language switcher as a theme widget. Go to [Widgets] under [Appearance]. Verify that the language switcher has been added to your blog’s sidebar.
C. Create and Publish a Post
- Add a post in both languages.
- Stop WordPress, regenerate the artifacts, and verify that the “Language Switcher” is working.
That’s it.