BACK TO DIRECTORY

Just Translate

by Akah Subarkah

0.0
(0 ratings)

Just Translate is a lightweight plugin that enables you to manage translations of your WordPress website easily from the admin panel. It automatically detects and stores any string that appears on your website and supports language prefixes in URLs (like /en/, /id/, etc.).

Features:

  • Automatically capture and store untranslated strings
  • Define multiple supported languages
  • Friendly admin UI for translation management
  • Filter translated/untranslated strings
  • Bulk delete strings
  • Frontend-based translation (theme-agnostic)
  • SEO friendly

Shortcode

[wpjt_language_switcher]

Parameters:

  • hide_flag – Hide language flag icon (default: false)
  • show_name – Show language name (default: false)
  • display_name – Define the type of name to display when show_name=true
    Options:

    • locale: e.g., id-ID
    • lang: e.g., id
    • name: e.g., Indonesian (Indonesia)
    • native_name: e.g., Indonesia (Indonesia)
    • english_name: e.g., Indonesian (Indonesia)
    • lang_name: e.g., Indonesian
    • lang_native_name: e.g., Indonesia
    • lang_english_name: e.g., Indonesian

Example usage:

[wpjt_language_switcher show_name=true display_name=lang_native_name]

Hooks

1. wpjt_locale_slug
Filter the URL slug for a given locale.

add_filter('wpjt_locale_slug', function($slug, $locale) {
    $slugs = [
        'ja-JP' => 'japanese',
        'id-ID' => 'my-slug',
        'en-US' => 'en',
    ];
    return $slugs[$locale] ?? $slug;
}, 10, 2);

2. wpjt_setting_locales
Add or remove locale codes in the settings panel.

add_filter('wpjt_setting_locales', function($locales) {
    $locales[] = 'jv-ID';
    $locales[] = 'su-ID';
    return $locales;
});

3. wpjt_should_skip_string
Skip specific strings from being translated.

add_filter('wpjt_should_skip_string', function($skip, $string) {
    if (trim($string) === 'WordPress') {
        $skip = true;
    }
    return $skip;
}, 10, 2);

Plugin Details

Active Installs
0
Total Downloads
758
Version
0.0.10
Requires WP
6.5
Requires PHP
8.1
Tested Up To
6.8.8
Added
2025-07-12
Last Updated
2025-09-12 10:18am GMT

Ratings

5
0
4
0
3
0
2
0
1
0