=== Translation Helper ===
Contributors: asthashah
Tags: translation, language switcher, google translate, multilingual, API integration
Requires PHP: 7.4
Tested up to: 6.7
Stable tag: 1.2
License: GPL2
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Plugin URI: https://changeinc0.wordpress.com/
Author URI: https://github.com/aasthashah310899

Easily translate WordPress websites with Google Translate API integration for multilingual content.

== Description ==
Translation Helper is a simple and lightweight WordPress plugin that allows you to translate your website content seamlessly using the Google Translate API. This plugin provides an easy-to-use settings page for configuring your API key and includes a shortcode for adding a customizable language switcher anywhere on your site.

**Features:**
- Google Translate API integration for seamless translations.
- Easy-to-use language switcher via shortcode `[thpl_language_switcher]`.
- Customizable list of available languages.
- API key configuration through the WordPress admin panel.
- Lightweight, fast, and beginner-friendly.

**Benefits:**
- Translate your WordPress website into multiple languages effortlessly.
- Allow users to select their preferred language via a simple dropdown.

== Installation ==
1. Upload the `translation-helper` directory to the `/wp-content/plugins/` directory or install via the WordPress plugin installer.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Navigate to **Settings** > **Translation Plugin** to configure the plugin.
   - Enter your Google Translate API key.
   - Add desired languages in the available languages field.
4. Place the `[thpl_language_switcher]` shortcode wherever you want to display the language switcher.

== Frequently Asked Questions ==

= How do I get a Google API key? =
1. Visit the [Google Cloud Console](https://console.cloud.google.com/).
2. Create a new project and enable the "Google Translate API."
3. Go to "Credentials" and generate an API key.
4. Copy and paste the API key into the plugin settings page under **Settings > Translation Plugin**.

= How can I add or remove languages? =
- Go to **Settings > Translation Plugin** in the WordPress admin panel.
- Use the **Available Languages** field to add or remove languages in the format `language_code:Language Name`.
  Example: `en:English, es:Español, fr:Français`.

= Does this plugin support custom styles? =
Yes, the plugin adds a body class for the selected language (`lang-en`, `lang-es`, etc.). You can use these classes for custom styling in your theme's CSS.

= Is this plugin compatible with WordPress multisite? =
Yes, Translation Helper supports WordPress multisite installations.

== Screenshots ==
1. **Plugin Settings Page**: Configure the API key and available languages.
2. **Language Switcher**: Display the language switcher on the frontend of your website.

== Changelog ==

= 1.1 =
* Added support for customizable language options.
* Improved security with nonce verification for language switching.
* Optimized code for performance.

= 1.0 =
* Initial release of Translation Helper.

== Arbitrary section ==
Translation Helper is developed with simplicity and performance in mind, ensuring a smooth translation experience for WordPress users. Contributions and suggestions are always welcome via GitHub.
