We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cc4425 commit 63d2d6bCopy full SHA for 63d2d6b
classes/Visualizer/Module/Frontend.php
@@ -307,7 +307,7 @@ public function renderChart( $atts ) {
307
308
if ( Visualizer_Module::is_pro() && function_exists( 'icl_get_languages' ) ) {
309
global $sitepress;
310
- $locale = get_locale();
+ $locale = icl_get_current_language();
311
$locale = strtolower( str_replace( '_', '-', $locale ) );
312
$trid = $sitepress->get_element_trid( $atts['id'], 'post_' . Visualizer_Plugin::CPT_VISUALIZER );
313
$translations = $sitepress->get_element_translations( $trid );
0 commit comments