WordPress plugin to perform automatic translations by integrating Lingo.dev PHP SDK
To install this plugin, simply navigate to your WordPress plugin directory (wordpress/wp-content/plugins by default) and clone this repo into it.
Alternatively, you can download this repo as a zip file and upload the extracted content to the same location as above.
After completing the above step, navigate to the folder and install the Lingo.dev PHP SDK with Composer:
$ cd lingo-wp-translator
$ composer require lingodotdev/sdk-
After installation, navigate to the plugin section in your WordPress admin panel to find
Lingo WP Translatorand activate it. -
In the WP admin, navigate to settings>Lingo Translation Settings
-
Add your Lingo.dev API key in the API key section
-
Next, add a source language and the target languages you wish to translate to.
-
Find the Test String Translation in the Lingo Translation Settings page to test if your configuration works. Simply put in your desired text, select a target language and click on Translate String to see the result.
NOTE: You can optionally select the fast mode to make translations faster, at the expense of accuracy.
This plugin allows you to translate posts and pages in WordPress. Follow these steps to learn how to use it:
- In your WordPress admin page, create a new page or post.
- Next, in your edit screen, add this shortcode:
This will provide a simple language switcher to allow users switch between languages they prefer.
[lingo_language_switcher] - Next write your preferred content.
- On the right pane, you will find a meta box called Lingo Translation. Scroll to find the Translate This Post section.
- Select your target language and click the Translate Post button.
- Once your post is translated, you will see a link to view the translation and edit it if you want to.
NOTE: You still need to publish your translated content for users to find it on your wordpress site.
