Skip to content

Commit 63d2d6b

Browse files
Fix auto render another language chart #731
1 parent 0cc4425 commit 63d2d6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/Visualizer/Module/Frontend.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ public function renderChart( $atts ) {
307307

308308
if ( Visualizer_Module::is_pro() && function_exists( 'icl_get_languages' ) ) {
309309
global $sitepress;
310-
$locale = get_locale();
310+
$locale = icl_get_current_language();
311311
$locale = strtolower( str_replace( '_', '-', $locale ) );
312312
$trid = $sitepress->get_element_trid( $atts['id'], 'post_' . Visualizer_Plugin::CPT_VISUALIZER );
313313
$translations = $sitepress->get_element_translations( $trid );

0 commit comments

Comments
 (0)