• ResolvedPlugin Author Juan Girini

    (@juangirini)


    If you see that the front-end translator button is not displaying the text “Select language” in your language and instead it is displayed in a foreign language, and you are using a minification plugin such as WPRocket, Autoptimize, LiteSpeed, W3 Total Cache or similar, then you might want to tune its settings.

    The easiest thing is to not minify any JS files at all, but that could impact your website performance. Then the best thing to do is to only exclude the files that are conflicting.
    What you want to do is to exclude the file https://translate.google.com/translate_a/element.js from being minified.

    This is how you do it on WPRocket, but it works similarly in other plugins.
    You go to the WPRocket settings, then open the File Optimization tab and scroll until you find the Excluded JavaScript Files section. In there you exclude the file translate.google.com/translate_a/element.js and save your settings.

    See this screenshot.

    That’s it, happy Translating!

  • The topic ‘My translator button is displayed in a foreign language’ is closed to new replies.