Title: Translation problem
Last modified: June 15, 2020

---

# Translation problem

 *  Resolved [nurokeser](https://wordpress.org/support/users/nurokeser/)
 * (@nurokeser)
 * [6 years ago](https://wordpress.org/support/topic/translation-problem-144/)
 * I looked at other topics but I don’t know how to edit it.
 *  <div id=’fb-root’></div>
    <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(
   s)[0]; js = d.createElement(s); js.id = id; js.src = ‘[https://connect.facebook.net/&#8221](https://connect.facebook.net/&#8221);.
   get_option( ‘fbmcc_locale’ ).”/sdk/xfbml.customerchat.js#xfbml=1&version=v6.0&
   autoLogAppEvents=1′; fjs.parentNode.insertBefore(js, fjs); }(document, ‘script’,‘
   facebook-jssdk’));</script> <div class=’fb-customerchat’ attribution=’wordpress’
   page_id=”.get_option( ‘fbmcc_pageID’ ).” > </div>

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [hymenoby](https://wordpress.org/support/users/hymenoby/)
 * (@hymenoby)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/translation-problem-144/#post-12994850)
 * Hello, i hand the same problem, this is how i solved it :
 * in my function.php i added a hook to change the return of the “get_option(‘fbmcc_pageID’)”
   i work with wpml but i this this can help you
 *     ```
       add_filter( 'option_fbmcc_locale', function($fbmcc_locale){
           if(ICL_LANGUAGE_CODE == 'fr') {
           	$fbmcc_locale = 'fr_FR';
           } else if(ICL_LANGUAGE_CODE == 'en') {
           	$fbmcc_locale = 'en_EN';
           }
           return $fbmcc_locale;
       });
       ```
   
 *  [itsmiltene](https://wordpress.org/support/users/itsmiltene/)
 * (@itsmiltene)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/translation-problem-144/#post-13592290)
 * Thanks [@hymenoby](https://wordpress.org/support/users/hymenoby/) Your code helped
   with language.
    But how we can get more languages with is not in the list …. ?
 *  [David Ruiz](https://wordpress.org/support/users/statuspym/)
 * (@statuspym)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/translation-problem-144/#post-14056814)
 * Genial [@hymenoby](https://wordpress.org/support/users/hymenoby/) i have probed
   your function and this running fine. THNAK YOU!!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Translation problem’ is closed to new replies.

 * ![](https://ps.w.org/facebook-messenger-customer-chat/assets/icon-256x256.png?
   rev=2398892)
 * [Facebook Chat Plugin - Live Chat Plugin for WordPress](https://wordpress.org/plugins/facebook-messenger-customer-chat/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/facebook-messenger-customer-chat/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/facebook-messenger-customer-chat/)
 * [Active Topics](https://wordpress.org/support/plugin/facebook-messenger-customer-chat/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/facebook-messenger-customer-chat/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/facebook-messenger-customer-chat/reviews/)

 * 3 replies
 * 4 participants
 * Last reply from: [David Ruiz](https://wordpress.org/support/users/statuspym/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/translation-problem-144/#post-14056814)
 * Status: resolved